<%@ control language="VB" autoeventwireup="false" inherits="RCC_OCS_CC_Retention, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/OCS/CC/AddEditWorkflow.ascx" TagName="AddEditWorkflow" TagPrefix="EM" %>
<%@ Register Src="~/RCC/OCS/CC/BusinessHours.ascx" TagName="BusinessHours" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<script type="text/javascript">

    function CompareTime(sDate, sTime, eDate, eTime, cTime, currentDate) {
        var startDate = document.getElementById(sDate);
        var startTime = document.getElementById(sTime);

        var endDate = document.getElementById(eDate);
        var endTime = document.getElementById(eTime);
        var CVTime;
        if (cTime != 'null')
            CVTime = document.getElementById(cTime);    // compare validator
        //alert(end + "|" + start);
        var finalStartTime = new Date(startDate.value + ' ' + startTime.value);
        var finalEndTime = new Date(endDate.value + ' ' + endTime.value);
        //To match as integer
        //starttime = starttime.replace(":", "");
        //endtime = endtime.replace(":", "");

        if (finalEndTime > finalStartTime) {
            if (cTime != 'null')
                ValidatorEnable(CVTime, false);
        }
        else {
            alert('Invalid Holiday Date/Time');
            if (cTime != 'null')
                ValidatorEnable(CVTime, true);
            startDate.value = currentDate;
            endDate.value = currentDate;
            startTime.value = "00:00";
            endTime.value = "23:59";
            endTime.focus();
        }

    }

</script>
<div class="row">
    <div class="col-xs-12">
        <div class="products-step">
            <span id="div_Groups" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_Groups" runat="server" Text='<%$ Resources:Content, Lync026 %>' />
            </span>
            <span id="div_Queue" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Queue" runat="server" Text='<%$ Resources:Content, Lync101 %>' />
            </span>
            <span id="div_WorkFlow" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="LB_WorkFlow" runat="server" Text='<%$ Resources:Content, Lync102 %>' />
            </span>
            <!-- Following div does nothing but only used to display the last button before it correctly -->
            <span id="div1" runat="server" nowrap="true" class="productStepButtonOff ProductStepButton-Div">
                <asp:LinkButton ID="lb_Advanced1" runat="server" Text='' />
            </span>
        </div>
    </div>
</div>

<div id="Pnl_Groups" runat="server">
    <div id="Pnl_GroupListing" runat="server">

        <div class="card Div_OpsRow" id="Div_OpsRow" runat="server">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001320%>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddGroups" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DGN1110024 %>" />
                    </div>
                </div>
            </div>
        </div>
        <div class="row">&nbsp;</div>
        <div class="row">
            <div class="col-xs-12">
                <EM:MPGridView ID="GV_Groups" AllowSorting="true" AllowPaging="true" runat="server" CssClass="table table-bordered table-striped table-hover" DataKeyNames="Identity"
                    AutoGenerateColumns="false" CurrentSortExpression="GroupName" CurrentSortDirection="Asc" EmptyDataText="<%$ Resources:Content,GN00001375%>" Width="100%">
                    <Columns>
                        <asp:TemplateField SortExpression="GroupName" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4" HeaderText="<%$ Resources:Content, GN000165 %>">
                            <ItemTemplate>
                                <asp:Label ID="Lbl_GroupName" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="GroupName" SortExpression="GroupName" HeaderStyle-ForeColor="White" HeaderText='<%$ Resources:Content, GN000165 %>' />--%>
                        <asp:BoundField DataField="ParticipationPolicy" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="ParticipationPolicy" HeaderStyle-ForeColor="White" HeaderText='<%$ Resources:Content, Lync103 %>' />
                        <asp:BoundField DataField="RoutingMethod" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="RoutingMethod" HeaderStyle-ForeColor="White" HeaderText='<%$ Resources:Content, Lync104 %>' />
                        <asp:BoundField DataField="Description" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" SortExpression="Description" HeaderStyle-ForeColor="White" HeaderText='<%$ Resources:Content, GN0000597 %>' />
                        <asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                            <ItemTemplate>
                                <ul class="option-menu">
                                    <li class="dropdown">
                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                            <i class="material-icons">menu</i>
                                        </a>
                                        <ul class="dropdown-menu pull-right">
                                            <li>
                                                <asp:LinkButton ID="Lb_Manage" Text="<%$ Resources:Content,GN0000276%>" SkinID="linkButtonEdit"
                                                    runat="server" CommandName="EditRow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                            </li>
                                            <li>
                                                <asp:LinkButton ID="LB_Delete" CssClass="btnAction" Text='<%$ Resources:Content,GN0000278%>' SkinID="linkButtonDelete"
                                                    CommandName="DeleteRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                    TargetControlID="LB_Delete" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>


                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <%--PagerTemplate Start--%>
                    <PagerTemplate>
                        <EM:Pager ID="Pager" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </EM:MPGridView>
            </div>
        </div>

    </div>
    <div id="Pnl_AddEdit" runat="server" visible="false">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Ltl_AddEditGroup" runat="server" Text="<%$ Resources:Content,DGN1110024%>" EnableViewState="false" /></h2>
                </div>
                <asp:LinkButton ID="Lb_GoBackGroups" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN000165%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_GroupName" runat="server" />
                                <asp:RequiredFieldValidator ID="RFV_TxBx_GroupName" runat="server" ControlToValidate="TxBx_GroupName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="addGroup"></asp:RequiredFieldValidator>
                                <asp:HiddenField ID="Hf_GroupId" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox ID="TxBx_Description" runat="server" Height="100px" Width="100%" MaxLength="150" TextMode="MultiLine" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,Lync103%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_ParticipationPolicy" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content,Lync106 %>" Value="1" />
                                <asp:ListItem Text="<%$ Resources:Content,Lync105 %>" Value="2" />
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,Lync107%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_AlertTime" Text="20" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,SMI690%>" EnableViewState="false" />
                        <asp:RequiredFieldValidator ID="RFV_TxBx_AlertTime" runat="server" ControlToValidate="TxBx_AlertTime"
                            Display="None" SetFocusOnError="True" ValidationGroup="addGroup"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="REV_TxBx_AlertTime" runat="server" ControlToValidate="TxBx_AlertTime" SetFocusOnError="true"
                            ErrorMessage="Enter Numbers Only" ValidationExpression="[0-9]*" ValidationGroup="addGroup"></asp:RegularExpressionValidator>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,Lync104%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_RoutingMethod" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content,Lync108 %>" Value="LongestIdle" />
                                <asp:ListItem Text="<%$ Resources:Content,Lync109 %>" Value="Parallel" />
                                <asp:ListItem Text="<%$ Resources:Content,Lync110 %>" Value="RoundRobin" />
                                <asp:ListItem Text="<%$ Resources:Content,Lync111 %>" Value="Serial" />
                                <asp:ListItem Text="<%$ Resources:Content,Lync112 %>" Value="Attendant" />
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,Lync113%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Agents" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content,Lync114 %>" Value="1" />
                                <asp:ListItem Text="<%$ Resources:Content,Lync115 %>" Value="2" />
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>

                <div class="row" id="TR_CustomGroup" runat="server">
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCAgents" runat="server" />
                    </div>
                </div>

                <div class="row" id="TR_ExistingEmailDL" runat="server" style="display: none;">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,Lync118%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:DropDownList ID="DDL_DLAddress" runat="server" />
                        <asp:Literal ID="Ltr_DLInfo" runat="server"></asp:Literal>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Button ID="Btn_SaveGroup" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281 %>" ValidationGroup="addGroup" />
                        <asp:Button ID="Btn_Cancel" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572 %>" CausesValidation="false" />
                        <asp:ValidationSummary ID="VS_addGroup" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="addGroup" HeaderText="<%$ Resources:Content,EM000001%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="Pnl_Queue" runat="server" visible="false">
    <div id="Pnl_QueueListing" runat="server">
        <div class="card Div_OpsRow" id="Div_OpsRow2" runat="server">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001320%>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddQueue" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Lync121 %>" />
                    </div>
                </div>
            </div>
        </div>
        <div class="row">&nbsp;</div>

        <div class="row">
            <div class="col-xs-12">
                <EM:MPGridView ID="GV_Queue" AllowSorting="true" runat="server" CssClass="table table-bordered table-striped table-hover" AllowPaging="true"
                    CurrentSortExpression="QueueName" CurrentSortDirection="Asc"
                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>" Width="100%">
                    <AlternatingRowStyle CssClass="altRow" />
                    <Columns>
                        <asp:TemplateField SortExpression="QueueName" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5" HeaderText="<%$ Resources:Content, Lync122 %>">
                            <ItemTemplate>
                                <asp:Label ID="Lbl_QueueName" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="QueueName" HeaderStyle-ForeColor="white" SortExpression="QueueName" HeaderText='<%$ Resources:Content, Lync122 %>' />--%>
                        <asp:BoundField DataField="Description" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5" SortExpression="Description" HeaderText='<%$ Resources:Content, GN0000597 %>' />
                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                            <ItemTemplate>
                                <ul class="option-menu">
                                    <li class="dropdown">
                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                            <i class="material-icons">menu</i>
                                        </a>
                                        <ul class="dropdown-menu pull-right">
                                            <li>
                                                <asp:LinkButton ID="Lb_Manage" Text="<%$ Resources:Content,GN0000276%>" SkinID="linkButtonEdit"
                                                    runat="server" CommandName="EditRow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                            </li>
                                            <li>
                                                <asp:LinkButton ID="LB_Delete" CssClass="btnAction" Text='<%$ Resources:Content,GN0000278%>' SkinID="linkButtonDelete"
                                                    CommandName="DeleteRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                    TargetControlID="LB_Delete" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <%--PagerTemplate Start--%>
                    <PagerTemplate>
                        <EM:Pager ID="Pager" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </EM:MPGridView>
            </div>
        </div>
    </div>
    <div id="Pnl_AddEditQ" runat="server" visible="false">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Ltl_AddEditQ" runat="server" Text="<%$ Resources:Content,Lync121%>" EnableViewState="false" /></h2>
                </div>
                <asp:LinkButton ID="Lb_GoBackQueues" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,Lync122%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_QName" runat="server" />
                                <asp:RequiredFieldValidator ID="RFV_TxBx_QName" runat="server" ControlToValidate="TxBx_QName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="addQ"></asp:RequiredFieldValidator>
                                <asp:HiddenField ID="Hf_QueueId" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox ID="TxBx_QDescription" Width="100%" runat="server" TextMode="MultiLine" MaxLength="150" Height="100px" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,Lync026%>" EnableViewState="false" />:
                    </div>
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCGroups" runat="server" />
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,Lync130%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:CheckBox ID="ChBx_EnableQTimeout" Text="&nbsp;" runat="server" />
                    </div>
                </div>

                <div id="Div_QTimeoutOptions" runat="server" style="display: none;">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,Lync131%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_TimeOutPeriod" runat="server" Text="10" />
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <asp:Literal ID="Literal24" runat="server" Text="<%$ Resources:Content,SMI691%>" EnableViewState="false" />
                            <asp:RequiredFieldValidator ID="RFV_TxBx_TimeOutPeriod" runat="server" ControlToValidate="TxBx_TimeOutPeriod"
                                Display="None" SetFocusOnError="True" ValidationGroup="addQ" Enabled="false"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RE_TxBx_TimeOutPeriod" runat="server" ControlToValidate="TxBx_TimeOutPeriod" SetFocusOnError="true"
                                ErrorMessage="Enter Numbers Only" ValidationExpression="[0-9]*" ValidationGroup="addQ" Enabled="false"></asp:RegularExpressionValidator>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal28" runat="server" Text="<%$ Resources:Content,GN0000368%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_TimeOutOptions" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Content,Lync132 %>" Value="1" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync134 %>" Value="2" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync135 %>" Value="3" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync136 %>" Value="4" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync137 %>" Value="5" />
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>

                    <div class="row" id="TR_SIPDOmain" runat="server" style="display: none">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,Lync133%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_SIPDomain" runat="server" />
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <asp:Label ID="Lbl_Format" runat="server"></asp:Label>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_SIPDomain" runat="server" ControlToValidate="TxBx_SIPDomain"
                                Display="None" SetFocusOnError="True" ValidationGroup="addQ" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                    </div>

                    <div class="row" id="TR_ForwardTOQ" runat="server" style="display: none">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,Lync138%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_ForwardToQ" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,Lync139%>" EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_EnableQOverflow" Text="&nbsp;" runat="server" />
                        </div>
                    </div>
                </div>

                <div id="Div_QOverflowOptions" runat="server" style="display: none;">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal20" runat="server" Text="<%$ Resources:Content,Lync265%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MaxCalls" runat="server" Text="0" />
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <asp:Literal ID="Literal25" runat="server" Text="<%$ Resources:Content,SMI692%>" EnableViewState="false" />
                            <asp:RequiredFieldValidator ID="RFV_TxBx_MaxCalls" runat="server" ControlToValidate="TxBx_MaxCalls"
                                Display="None" SetFocusOnError="True" ValidationGroup="addQ" Enabled="false"></asp:RequiredFieldValidator>
                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender21" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789" TargetControlID="TxBx_MaxCalls" />
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal29" runat="server" Text="<%$ Resources:Content,Lync266%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_ForwardTheCall" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Content,Lync140 %>" Value="NewestCall" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync141 %>" Value="OldestCall" />
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal37" runat="server" Text="<%$ Resources:Content,Lync267%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_CallActions" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Content,Lync132 %>" Value="1" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync134 %>" Value="2" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync135 %>" Value="3" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync136 %>" Value="4" />
                                    <asp:ListItem Text="<%$ Resources:Content,Lync137 %>" Value="5" />
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>

                    <div class="row" id="TR_SIPDOmainOF" runat="server" style="display: none">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Literal21" runat="server" Text="<%$ Resources:Content,Lync133%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_SIPDomainOF" runat="server" />
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <asp:Label ID="Lbl_FormatOF" runat="server"></asp:Label>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_SIPDomainOF" runat="server" ControlToValidate="TxBx_SIPDomainOF"
                                Display="None" SetFocusOnError="True" ValidationGroup="addQ" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                    </div>

                    <div class="row" id="TR_ForwardTOQOF" runat="server" style="display: none">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,Lync138%>" EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_ForwardToQOF" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Button ID="Btn_SaveQueue" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281 %>" ValidationGroup="addQ" />
                        <asp:Button ID="Btn_CancelQueue" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572 %>" CausesValidation="false" />
                        <asp:ValidationSummary ID="VS_addQ" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="addQ" HeaderText="<%$ Resources:Content,EM000001%>" />
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

<div id="Pnl_WorkFlow" runat="server" visible="false">
    <div id="Pnl_WorkflowListing" runat="server">
        <div class="card Div_OpsRow" id="Div_OpsRow3" runat="server">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001320%>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddWorkflow" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Lync142 %>" />
                        <asp:Button ID="Btn_ManageHolidaySet" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Lync241 %>" />
                        <asp:Button ID="Btn_ManageBusinessHours" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Lync289 %>" />
                    </div>
                </div>
            </div>
        </div>
        <div class="row">&nbsp;</div>
        <div class="row">
            <div class="col-xs-12">
                <EM:MPGridView ID="GV_WorkFlow" AllowSorting="true" AllowPaging="true" runat="server" CssClass="table table-bordered table-striped table-hover"
                    CurrentSortExpression="WorkflowName" CurrentSortDirection="Asc"
                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>" Width="100%">
                    <Columns>
                        <asp:TemplateField SortExpression="WorkflowName" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderText="<%$ Resources:Content, Lync143 %>">
                            <ItemTemplate>
                                <asp:Label ID="Lbl_WorkflowName" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="WorkflowName" SortExpression="WorkflowName" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, Lync143 %>' />--%>
                        <asp:BoundField DataField="Active" SortExpression="Active" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, GN0000222 %>' />
                        <asp:BoundField DataField="Template" SortExpression="Template" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, Lync144 %>' />
                        <asp:BoundField DataField="PrimaryUri" SortExpression="PrimaryUri" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, GN00001493 %>' />
                        <asp:BoundField DataField="Language" SortExpression="Language" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, GN00003000 %>' />
                        <asp:BoundField DataField="IsManaged" SortExpression="IsManaged" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync145 %>' />
                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                            <ItemTemplate>
                                <ul class="option-menu">
                                    <li class="dropdown">
                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                            <i class="material-icons">menu</i>
                                        </a>
                                        <ul class="dropdown-menu pull-right">
                                            <li>
                                                <asp:LinkButton ID="Lb_Manage" Text="<%$ Resources:Content,GN0000276%>" SkinID="linkButtonEdit"
                                                    runat="server" CommandName="EditRow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                            </li>
                                            <li>
                                                <asp:LinkButton ID="LB_Delete" CssClass="btnAction" Text='<%$ Resources:Content,GN0000278%>' SkinID="linkButtonDelete"
                                                    CommandName="DeleteRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,Lync237%>"
                                                    TargetControlID="LB_Delete" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <%--PagerTemplate Start--%>
                    <PagerTemplate>
                        <EM:Pager ID="Pager" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </EM:MPGridView>
            </div>
        </div>

    </div>

    <div id="Pnl_addEditWF" runat="server" visible="false">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Lt_Workflow" Text="<%$ Resources:Content,Lync142%>" runat="server"></asp:Literal></h2>
                </div>
                <asp:LinkButton ID="lb_GoBackWF" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <EM:AddEditWorkflow ID="AddEditWorkflow1" runat="server" OnWorkflowSaved="FillWorkflows" />
            </div>
        </div>
    </div>

    <ajax:UpdatePanel ID="UP_Holidays" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="Pnl_HolidaySetsListing" runat="server" visible="false">
                <div class="card">
                    <!-- Go Back section -->
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,Lync241%>" EnableViewState="false" /></h2>
                        </div>
                        <asp:LinkButton ID="lb_GoBackHS" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                            CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
                    </div>
                    <div class="body">
                        <!-- Operations -->
                        <div class="card">
                            <div class="header">
                                <h2>
                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" /></h2>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_AddHolidaySet" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Lync800 %>" />
                                <%--<asp:Button ID="Btn_DeleteHolidaySet" CausesValidation="false" runat="server" CssClass="btn btn-primary waves-effect" Visible="false" Text="<%$ Resources:Content,Lync246 %>" />
                                <EM:ConfirmButtonExtender ID="CBE_RemoveSet" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                    TargetControlID="Btn_DeleteHolidaySet" runat="server">
                                </EM:ConfirmButtonExtender>--%>
                                <asp:HiddenField ID="HF_CDate" runat="server" />
                            </div>
                        </div>
                        <div class="row">&nbsp;</div>
                        <div class="row">
                            <div class="col-xs-12">
                                <EM:MPGridView ID="GV_HolidaySets" AllowSorting="true" AllowPaging="true" runat="server" CssClass="table table-bordered table-striped table-hover"
                                    CurrentSortExpression="Name" CurrentSortDirection="Asc"
                                    AutoGenerateColumns="false" DataKeyNames="Name, Identity" EmptyDataText="<%$ Resources:Content,GN00001375%>" Width="100%">
                                    <Columns>
                                        <asp:BoundField DataField="Name" SortExpression="Name" HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10" HeaderText='<%$ Resources:Content, Lync803 %>' />

                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Edit" Text='<%$ Resources:Content,GN0000276%>' CssClass="btn btn-primary waves-effect"
                                                    CommandName="EditRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000278%>' CssClass="btn btn-primary waves-effect btnAction"
                                                    CommandName="DeleteRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                    TargetControlID="LB_Delete" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </EM:MPGridView>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
            <div id="Pnl_EditHolidaySet" runat="server" visible="false">
                <div class="card">
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,EditHolidaySet%>' EnableViewState="false" />
                                &nbsp; &#39;<asp:Label ID="Lbl_EditHolidaySetLabel" runat="server" CssClass="row-label"></asp:Label>&#39;
                            <asp:HiddenField ID="Hf_HolidaySetId" runat="server" />
                            </h2>
                        </div>
                        <asp:LinkButton ID="Btn_CancelEditHolidaySet" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                            class="btn btn-primary waves-effect pull-right m-t--4px" />
                    </div>
                    <div class="body">

                        <div class="row">
                            <div class="col-xs-12">
                                <EM:MPGridView ID="GV_Holidays" AllowSorting="true" AllowPaging="true" runat="server" CssClass="table table-bordered table-striped table-hover"
                                    CurrentSortExpression="Name" CurrentSortDirection="Asc"
                                    AutoGenerateColumns="false" DataKeyNames="Name" EmptyDataText="<%$ Resources:Content,GN00001375%>" Width="100%">
                                    <Columns>
                                        <asp:BoundField DataField="Name" SortExpression="Name" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5" HeaderText='<%$ Resources:Content, Lync801 %>' />
                                        <asp:BoundField DataField="StartDate" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" SortExpression="StartDate" HeaderText='<%$ Resources:Content, ExchOO03 %>' />
                                        <asp:BoundField DataField="EndDate" SortExpression="EndDate" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, ExchOO04 %>' />
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000278%>' CssClass="btn btn-primary waves-effect btnAction"
                                                    CommandName="DeleteRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID")%>' />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                    TargetControlID="LB_Delete" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </EM:MPGridView>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h2><%= Resources.Content.Lync802 %></h2>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_HolidayName" runat="server" />
                                                        <asp:RequiredFieldValidator ID="Rfv_HolidayName" SetFocusOnError="true" Display="None" ValidationGroup="AddHoliday" ErrorMessage="Holiday Name required." runat="server" ControlToValidate="TxBx_HolidayName"></asp:RequiredFieldValidator>
                                                        <asp:Label ID="Literal34" runat="server" CssClass="form-label" Text='<%$ Resources:Content,Lync801%>' EnableViewState="false" />
                                                    </div>
                                                </div>
                                            </div>

                                            <%-- Start Date/Time --%>
                                            <div class="col-sm-4 col-xs-12">
                                                <label class="font-bold">
                                                    <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN00001547%>" EnableViewState="false" />:
                                                </label>
                                                <div class="form-group display-date-input">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_StartDate" Enabled="false" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <i runat="server" id="A_StartDate" class="material-icons icon-calendar col-calendar"></i>
                                                <EM:CalendarExtender ID="CE_StartDate" runat="server" TargetControlID="TxBx_StartDate"
                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                    PopupButtonID="A_StartDate" CssClass="date__calendar">
                                                </EM:CalendarExtender>
                                                <div class="form-group display-time-input">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_StartTime" runat="server" Text="00:00" />
                                                    </div>
                                                </div>
                                                <br />
                                                <asp:RegularExpressionValidator ID="Rev_StartTime" runat="server" ErrorMessage="Invalid Time" ControlToValidate="TxBx_StartTime" ValidationExpression="^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$"
                                                    ValidationGroup="AddHoliday"></asp:RegularExpressionValidator>
                                            </div>

                                            <%-- End Date/Time --%>
                                            <div class="col-sm-4 col-xs-12">
                                                <label class="font-bold">
                                                    <asp:Literal ID="Literal26" runat="server" Text="<%$ Resources:Content,DGN1119986%>" EnableViewState="false" />:
                                                </label>
                                                <div class="form-group display-date-input">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_EndDate" Enabled="false" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <i runat="server" id="A_EndDate" class="material-icons icon-calendar col-calendar"></i>
                                                <EM:CalendarExtender ID="CE_EndDate" runat="server" TargetControlID="TxBx_EndDate"
                                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                    PopupButtonID="A_EndDate" CssClass="date__calendar">
                                                </EM:CalendarExtender>
                                                <div class="form-group display-time-input">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_EndTime" runat="server" Text="23:59" />
                                                    </div>
                                                </div>
                                                <br />
                                                <asp:RegularExpressionValidator ID="Rev_EndTime" runat="server" ErrorMessage="Invalid Time" ControlToValidate="TxBx_EndTime" ValidationExpression="^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$"
                                                    ValidationGroup="AddHoliday"></asp:RegularExpressionValidator>
                                            </div>

                                            <div class="col-sm-1 col-xs-12">
                                                <asp:Button ID="Btn_SaveHoliday" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                    ValidationGroup="AddHoliday" />
                                                <asp:ValidationSummary ID="ValidationSummary21" runat="server" HeaderText="<%$ Resources:Content,EM000001%>"
                                                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="AddHoliday" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div id="Pnl_AddHolidaySet" runat="server" visible="false">
                <div class="card">
                    <div class="header">
                        <h2>
                            <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,Lync800%>" EnableViewState="false" /></h2>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                *<asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,Lync803%>" EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_HolidaySetName" runat="server" />
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_HolidaySetName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="AddHolidaySet"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <asp:Repeater ID="Rep_Holidays" runat="server">
                            <ItemTemplate>

                                <div class="row">
                                    <div class="col-sm-2 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox runat="server" ID="TxBx_HolidayNameHS" Text='<%#DataBinder.Eval(Container.DataItem, "Name")%>'></asp:TextBox>
                                                <asp:Label ID="Literal40" runat="server" Text="<%$ Resources:Content,Lync801%>" CssClass="form-label" EnableViewState="false" />
                                                <asp:RequiredFieldValidator ID="Rfv_HolidayNameHS" runat="server" ControlToValidate="TxBx_HolidayNameHS"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="AddHolidaySet"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>

                                    <%-- Start Date/Time --%>
                                    <div class="col-sm-4 col-xs-12">
                                        <label class="font-bold">
                                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN00001547%>" EnableViewState="false" />:
                                        </label>
                                        <div class="form-group display-date-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_StartDateHS" Enabled="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "SDate")%>'></asp:TextBox>
                                            </div>
                                        </div>
                                        <i runat="server" id="A_StartDateHS" class="material-icons icon-calendar col-calendar"></i>
                                        <EM:CalendarExtender ID="CE_StartDateHS" runat="server" TargetControlID="TxBx_StartDateHS"
                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                            PopupButtonID="A_StartDateHS" CssClass="date__calendar">
                                        </EM:CalendarExtender>
                                        <div class="form-group display-time-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_StartTimeHS" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "STime")%>' />
                                            </div>
                                        </div>
                                        <asp:RegularExpressionValidator Display="Dynamic" ID="Rev_StartTime" runat="server" ErrorMessage="Invalid Time" ControlToValidate="TxBx_StartTimeHS" ValidationExpression="^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$"
                                            ValidationGroup="AddHolidaySet"></asp:RegularExpressionValidator>
                                    </div>

                                    <%-- End Date/Time --%>
                                    <div class="col-sm-4 col-xs-12">
                                        <label class="font-bold">
                                            <asp:Literal ID="Literal36" Text="<%$ Resources:Content,DGN1119986%>" runat="server" />:
                                        </label>
                                        <div class="form-group display-date-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EndDateHS" Enabled="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "EDate")%>'></asp:TextBox>
                                            </div>
                                        </div>
                                        <i runat="server" id="A_EndDateHS" class="material-icons icon-calendar col-calendar"></i>
                                        <EM:CalendarExtender ID="CE_EndDateHS" runat="server" TargetControlID="TxBx_EndDateHS"
                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                            PopupButtonID="A_EndDateHS" CssClass="date__calendar">
                                        </EM:CalendarExtender>
                                        <div class="form-group display-time-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EndTimeHS" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ETime")%>' />
                                            </div>
                                        </div>
                                        <asp:RegularExpressionValidator ID="Rev_EndTime" runat="server" ErrorMessage="Invalid Time" ControlToValidate="TxBx_EndTimeHS" ValidationExpression="^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$"
                                            ValidationGroup="AddHolidaySet" Display="None"></asp:RegularExpressionValidator>
                                        <asp:CustomValidator ID="CV_CompareTimeHS" Display="None" runat="server" ErrorMessage="End time should be greater than Start"
                                            ControlToValidate="TxBx_EndTimeHS" ValidationGroup="AddHolidaySet"></asp:CustomValidator>
                                    </div>

                                    <div class="col-sm-2 col-xs-12">
                                        <asp:Button ID="btnRemove" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                            Text="<%$ Resources:Content,GN0000278%>" CommandName="Remove"
                                            CommandArgument='<%# Container.ItemIndex %>' />
                                    </div>
                                </div>

                            </ItemTemplate>
                            <FooterTemplate>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="btnAdd" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                            Text="<%$ Resources:Content,AddMore%>" CommandName="Add" />
                                    </div>
                                </div>

                            </FooterTemplate>
                        </asp:Repeater>
                        <div class="row">
                            <div class="col-xs-12">
                                <hr />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_SaveHolidaySet" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                    ValidationGroup="AddHolidaySet" />
                                <asp:Button ID="Btn_CancelHolidaySet" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />
                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" HeaderText="<%$ Resources:Content,EM000001%>"
                                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="AddHolidaySet" />
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>

    <ajax:UpdatePanel ID="UP_BusinessHours" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="Pnl_BHoursListing" runat="server" visible="false">
                <div class="card">
                    <!-- Go Back section -->
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal ID="Literal27" runat="server" Text="<%$ Resources:Content,Lync289%>" EnableViewState="false" /></h2>
                        </div>
                        <asp:LinkButton ID="lb_GoBackBH" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                            CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
                    </div>
                    <div class="body">
                        <!-- Operations -->
                        <div class="card">
                            <div class="header">
                                <h2>
                                    <asp:Literal ID="Literal30" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" /></h2>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_AddBusinessHours" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Lync290 %>" />
                            </div>
                        </div>
                        <div class="row">&nbsp;</div>
                        <div class="row">
                            <div class="col-xs-12">
                                <EM:MPGridView ID="GV_BHoursSets" AllowSorting="true" AllowPaging="true" runat="server" CssClass="table table-bordered table-striped table-hover"
                                    CurrentSortExpression="Name" CurrentSortDirection="Asc"
                                    AutoGenerateColumns="false" DataKeyNames="Name, Identity" EmptyDataText="<%$ Resources:Content,GN00001375%>" Width="100%">
                                    <Columns>
                                        <asp:TemplateField SortExpression="Name" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-4" HeaderText="<%$ Resources:Content, GN000170 %>">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_BHName" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <%--<asp:BoundField DataField="Name" SortExpression="Name" HeaderStyle-ForeColor="White" HeaderText='<%$ Resources:Content, GN000170 %>' />--%>
                                        <asp:BoundField DataField="MondayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync185 %>' />
                                        <asp:BoundField DataField="TuesdayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync186 %>' />
                                        <asp:BoundField DataField="WednesdayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync187 %>' />
                                        <asp:BoundField DataField="ThursdayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync188 %>' />
                                        <asp:BoundField DataField="FridayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync189 %>' />
                                        <asp:BoundField DataField="SaturdayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync190 %>' />
                                        <asp:BoundField DataField="SundayOn" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, Lync184 %>' />
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <ul class="option-menu">
                                                    <li class="dropdown">
                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                            <i class="material-icons">menu</i>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>
                                                                <asp:LinkButton ID="Lb_Manage" Text="<%$ Resources:Content,GN0000276%>" SkinID="linkButtonEdit"
                                                                    runat="server" CommandName="EditRow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Delete" CssClass="btnAction" Text='<%$ Resources:Content,GN0000278%>' SkinID="linkButtonDelete"
                                                                    CommandName="DeleteRow" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Identity")%>' />
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                    TargetControlID="LB_Delete" runat="server">
                                                                </EM:ConfirmButtonExtender>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                </ul>


                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </EM:MPGridView>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div id="Pnl_AddEditBHours" runat="server" visible="false">
                <div class="card">
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal
                                    ID="Ltl_AddEditBHours" runat="server" Text="<%$ Resources:Content,Lync290%>" EnableViewState="false" /></h2>
                        </div>
                        <asp:LinkButton ID="Lb_GoBackBHours" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                            CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-1 col-xs-12 row-label">
                                *<asp:Literal ID="Ltr_Name" runat="server" Text="<%$ Resources:Content,GN000170%>"></asp:Literal>:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_BHoursName" runat="server" Text=""></asp:TextBox>

                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <asp:RequiredFieldValidator ID="RFV_TxBx_BHoursName" runat="server" ControlToValidate="TxBx_BHoursName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="addBH"></asp:RequiredFieldValidator>
                                <asp:HiddenField ID="HF_BHoursId" runat="server" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <EM:BusinessHours ID="BusinessHours1" runat="server" />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_SaveBHours" runat="server" CssClass="btn btn-primary waves-effect btnAction btnAction" Text="<%$ Resources:Content,GN0000281 %>" ValidationGroup="addBH" />
                                <asp:Button ID="Btn_CancelBHours" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572 %>" CausesValidation="false" />
                                <asp:ValidationSummary ID="VS_addBH" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="addBH" HeaderText="<%$ Resources:Content,EM000001%>" />
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>
</div>

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender21.ClientID%>');
</script>
