<%@ control language="VB" autoeventwireup="false" inherits="RCC_Voice_CC_FilterLists, 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" %>

<asp:Panel ID="Pnl_Listing" runat="server">

    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                    </h3>
                </div>
                <div class="body">
                    <asp:Button ID="Btn_AddFilterList" runat="server" Text="<%$ Resources:Content,strAddFilterList%>" class="btn btn-primary waves-effect btnAction" />
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">

            <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                ID="GV_FilterLists" AllowPaging="false" runat="server" AutoGenerateColumns="false">

                <Columns>

                    <asp:TemplateField HeaderStyle-CssClass="col-xs-6" HeaderText="<%$ Resources:Content,Description%>">
                        <ItemTemplate>
                            <asp:Label ID="LB_Description" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,strPolicy%>" HeaderStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:Label ID="LB_Policy" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Detail" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' CommandName="Detail" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000843%>"></asp:LinkButton>
                            <asp:LinkButton ID="LB_Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' CommandName="Edit" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,strEdit%>"></asp:LinkButton>
                            <asp:LinkButton ID="LB_Delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' CommandName="Remove" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000377%>"></asp:LinkButton>
                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,strRemoveConfirmation%>"
                                TargetControlID="LB_Delete">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>

            </asp:GridView>

        </div>
    </div>

</asp:Panel>
<asp:Panel ID="Pnl_DetailFilterList" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">


            <div class="card">
                <div class="header">
                    <div class="displayInlineBlock">
                        <h3>
                            <asp:Literal ID="lbl_User" runat="server" />
                        </h3>
                    </div>
                    <asp:LinkButton ID="Lbtn_GoBack" runat="server" Text="<%$ Resources:Content,String1018 %>" CausesValidation="false"
                        class="btn btn-primary waves-effect pull-right m-t--4px" />
                </div>
                <%--<div class="header">
                    <h3>
                        <%= Resources.Content.GN0000843%>                                                                                                                               
                    </h3>
                </div>--%>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,Description %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:Literal ID="ltrDescription" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,strPolicy %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:Literal ID="ltrPolicy" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.GN0000573%>      <%--Rules--%>                                                                                                                             
                                    </h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_Rules" AllowPaging="false" runat="server" AutoGenerateColumns="false">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-6" HeaderText="<%$ Resources:Content,Description%>">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LB_Description" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,strPolicy%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LB_Policy" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000990%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LB_Prefix" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>

                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_AddFilterList" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.strFilterList%>                                                                                                                                   
                    </h3>
                </div>
                <div class="body">

                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            *<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,Description %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Description" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Description"
                                Display="None" ValidationGroup="AddFilterList" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,strPolicy %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">

                                <asp:RadioButton ID="rdbAllow" Checked="true" Text='<%$ Resources:Content,String171 %>' runat="server" GroupName="Policy" />
                                <asp:RadioButton ID="rdbDeny" Text='<%$ Resources:Content,Lync032 %>' runat="server" GroupName="Policy" />

                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.GN0000573%>      <%--Rules--%>                                                                                                                             
                                    </h3>
                                </div>
                                <div class="body">
                                    <%-- <div class="row" id="divAddRuleOper" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                         
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Button ID="btnAddRule" runat="server" Text="<%$ Resources:Content, strAddRule%>" class="btn btn-primary waves-effect" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>--%>
                                    <asp:Panel ID="DivRulelist" runat="server">
                                         <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *<asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,Description %>' />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_RuleDesc" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_RuleDesc"
                                                    Display="None" ValidationGroup="AddFilterListRule" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *<asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,GN0000990 %>' />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Prefix" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Prefix"
                                                    Display="None" ValidationGroup="AddFilterListRule" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,strPolicy %>' />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">

                                                    <asp:RadioButton ID="rdbRuleAllow" Checked="true" Text='<%$ Resources:Content,String171 %>' runat="server" GroupName="RulePolicy" />
                                                    <asp:RadioButton ID="rdbRuleDeny" Text='<%$ Resources:Content,Lync032 %>' runat="server" GroupName="RulePolicy" />

                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                    ValidationGroup="AddFilterListRule" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                <asp:Button ID="btnAdd" runat="server" Text='<%$ Resources: Content, strAdd %>' ValidationGroup="AddFilterListRule" CssClass="btn btn-primary btnAction"></asp:Button>
                                                <%--                                                <asp:Button ID="btnCancelRule" runat="server" Text='<%$ Resources: Content,GN0000572 %>' CausesValidation="false" CssClass="btn btn-primary"></asp:Button>--%>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    ID="GV_AddRule" AllowPaging="false" runat="server" AutoGenerateColumns="false">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-6" HeaderText="<%$ Resources:Content,Description%>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LB_Description" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strPolicy%>" HeaderStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LB_Policy" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000990%>" HeaderStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LB_Prefix" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Remove" CommandName="Remove" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,strRemove%>"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                    </Columns>

                                                </asp:GridView>
                                            </div>
                                        </div>

                                    </asp:Panel>
                                    <%--<asp:Panel ID="DivAddRule" runat="server">
                                       
                                    </asp:Panel>--%>
                                </div>
                            </div>
                        </div>

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

</asp:Panel>


