<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Billing_AntiFraud_FilterDetail, MachSol.MachPanel.Web" %>

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="GroupRadioButton" Namespace="Vladsm.Web.UI.WebControls" TagPrefix="EM" %>

<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.GN00001320%>  </h3>
            </div>
            <div class="body">
                <ajax:UpdatePanel ID="UPD" runat="server">
                    <ContentTemplate>
                        <div id="Div_FilterName" runat="server" style="display: none">
                        </div>

                        <cc1:TabContainer ID="TC_Settings" runat="server" ActiveTabIndex="1" OnClientActiveTabChanged="loadTabPanel">
                            <cc1:TabPanel ID="Tab_BanList" runat="server" HeaderText='<%$ Resources:Content, M0027 %>'>
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary" ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server" Visible="false">
                                        <div class="row cleafix">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001027%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                *
                                        <asp:Literal ID="Div10" runat="server" Text='<%$ Resources:Content,GN00001027 %>' />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Threshold" runat="server">
                                                                        </asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="RFV_Threshold" Display="None" ValidationGroup="TH"
                                                                            ControlToValidate="TxBx_Threshold" runat="server" SetFocusOnError="True">
                                                                        </asp:RequiredFieldValidator>
                                                                        <asp:ValidationSummary ID="VS1" ValidationGroup="TH" HeaderText='<%$ Resources:Content,EM000001 %>'
                                                                            ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Div1" runat="server" Text='<%$ Resources:Content,GN000195 %>' />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="ChBx_Enabled" runat="server" Text=" " />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_GeneralSave" SkinID="saveButton" ValidationGroup="TH" runat="server"
                                                                    Text='<%$ Resources:Content,GN0000281 %>' />
                                                                <asp:Button CssClass="btn btn-primary" ID="Btn_GeneralCancel" SkinID="cancelButton" runat="server" Text='<%$ Resources:Content,GN0000572 %>'
                                                                    CausesValidation="False" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel ID="Tab_Settings" runat="server" HeaderText='<%$ Resources:Content, GN00001072 %>'>
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary" ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server">
                                        <div class="row cleafix Div_OpsRow" id="Div_OpsRow" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_AddRule" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,SM400037 %>'
                                                            CausesValidation="False" />
                                                        <asp:Button CssClass="btn btn-primary btnAction" SkinID="removeButton" ID="Btn_Delete" Custom1="Custom" Style="display: none" runat="server" Text='<%$ Resources:Content,GN0000377 %>' />
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Enable" SkinID="enableButton" Custom1="Custom" Style="display: none" runat="server" Text='<%$ Resources:Content,GN00001024 %>' />
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Disable" SkinID="disableButton" Custom1="Custom" Style="display: none" runat="server" Text='<%$ Resources:Content,GN00001025 %>' />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <div>

                                            <asp:GridView ID="GV_AFFilterDetail" AllowSorting="true" runat="server"
                                                AutoGenerateColumns="False" CssClass="table table-bordered table-striped table-hover table-responsive">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox Text=" " CssClass="option-menu" ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'All');" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:HiddenField ID="HF_FilterDetailId" runat="server" Value='<%#DataBinder.Eval(Container, "DataItem.FilterDetailId")%>' />
                                                            <asp:CheckBox Text=" " ID="ChkBx_All" CssClass="option-menu" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="Title" HeaderStyle-CssClass="col-xs-4" HeaderText='<%$ Resources:Content,GN0000280 %>'>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Title" runat="server" CommandName="EditRule" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.FilterDetailId")%>'
                                                                Text='<%#DataBinder.Eval(Container, "DataItem.Title")%>'>
                                                            </asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-4" HeaderText='<%$ Resources:Content,GN00001240 %>'>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_PluginName" runat="server" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.FilterDetailId")%>'
                                                                CommandName="EditRule">
                                                            </asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN000195 %>'>
                                                        <ItemTemplate>
                                                            <div runat="server" id="Div_Enabled">
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000277 %>'>
                                                        <ItemTemplate>
                                                            <div runat="server" id="Div_Action">
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN00001238 %>'>
                                                        <ItemTemplate>
                                                            <%#DataBinder.Eval(Container, "DataItem.Score")%>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />

                                                </PagerTemplate>

                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </asp:Panel>
                                    <div id="Div_AddRule" runat="server">

                                        <!--Add New Rule -->
                                        <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_MV_2_V0Save">
                                            <div class="row cleafix">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.GN00001234%>  </h3>
                                                        </div>
                                                        <div class="body">
                                                            <asp:MultiView ID="MV_2" runat="server">
                                                                <asp:View ID="MV_2_V0" runat="server">
                                                                    <asp:SqlDataSource ID="DS_Rules" runat="server"></asp:SqlDataSource>
                                                                    <asp:Repeater ID="Rep_Rules" DataSourceID="DS_Rules" runat="server">
                                                                        <ItemTemplate>
                                                                            <asp:HiddenField ID="HF_PluginId" runat="server" />
                                                                            <div class="row cleafix">
                                                                                <div class="col-xs-12">
                                                                                    <div class="panel-group" id="accordion">
                                                                                        <div class="panel panel-primary">
                                                                                            <div class="panel-heading">
                                                                                                <h4 class="panel-title">
                                                                                                    <a href="#" style="pointer-events: none;">
                                                                                                        <div id="Td_PluginName" runat="server" class="Heading"></div>
                                                                                                    </a>
                                                                                                </h4>
                                                                                            </div>
                                                                                            <div id="collapseOne" class="panel-collapse collapse in">
                                                                                                <div class="panel-body">
                                                                                                    <div>
                                                                                                        <asp:HiddenField ID="HF_PositiveRule" runat="server" />
                                                                                                        <EM:GroupRadioButton ID="RB_PositiveRule" runat="server" />
                                                                                                        <label id="Div_PositiveRule" runat="server">
                                                                                                        </label>
                                                                                                    </div>
                                                                                                    <div>
                                                                                                        <asp:HiddenField ID="HF_NegativeRule" runat="server" />
                                                                                                        <EM:GroupRadioButton ID="RB_NegativeRule" runat="server" />
                                                                                                        <label id="Div_NegativeRule" runat="server">
                                                                                                        </label>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                    <asp:Button CssClass="btn btn-primary" ID="Btn_MV_2_V0Cancel" SkinID="cancelButton" CausesValidation="False"
                                                                        runat="server" Text='<%$ Resources:Content,GN0000572 %>' />
                                                                    <asp:Button CssClass="btn btn-primary" ID="Btn_MV_2_V0Next" SkinID="goButton" runat="server" Text='<%$ Resources:Content,GN00001242 %>' />
                                                                </asp:View>
                                                                <asp:View ID="MV_2_V1" runat="server">
                                                                    <div class="row">
                                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                                            <asp:Literal ID="Div5" runat="server" Text='<%$ Resources:Content,GN00001235 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-10 col-xs-12" id="Td_Conditon" runat="server">
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                                            *
                                        <asp:Literal ID="Div6" runat="server" Text='<%$ Resources:Content,GN0000280 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-4 col-xs-12">
                                                                            <div class="form-group">
                                                                                <div class="form-line">
                                                                                    <asp:HiddenField ID="HF_Condtion" runat="server" />
                                                                                    <asp:HiddenField ID="HF_Plugin" runat="server" />
                                                                                    <asp:TextBox ID="TxBx_Title" runat="server"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="RFV_Title" ValidationGroup="Rule" runat="server"
                                                                                        Display="None" ControlToValidate="TxBx_Title" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                                    <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="VS" ValidationGroup="Rule"
                                                                                        DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                                            <asp:Literal ID="Div7" runat="server" Text='<%$ Resources:Content,GN0000277 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-4 col-xs-12">
                                                                            <div class="form-group">
                                                                                <asp:DropDownList ID="DDl_Action" runat="server">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                                            *
                                        <asp:Literal ID="Div8" runat="server" Text='<%$ Resources:Content,GN00001238 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-4 col-xs-12">
                                                                            <div class="form-group">
                                                                                <div class="form-line">
                                                                                    <asp:TextBox ID="TxBx_Score" runat="server"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="RFV_Score" ValidationGroup="Rule" runat="server"
                                                                                        Display="none" ControlToValidate="TxBx_Score" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_Score"
                                                                                        FilterType="Numbers">
                                                                                    </cc1:FilteredTextBoxExtender>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                                        </div>
                                                                        <div class="col-sm-4 col-xs-12" id="Td_PluginThreshold" runat="server">
                                                                        </div>
                                                                    </div>

                                                                    <div class="row">
                                                                        <div class="col-xs-12">
                                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_MV_2_V0Save" SkinID="saveButton" runat="server" Text='<%$ Resources:Content,GN0000281 %>'
                                                                                ValidationGroup="Rule" />
                                                                            <asp:Button CssClass="btn btn-primary" ID="Btn_MV_2_V1Cancel" SkinID="cancelButton" CausesValidation="False"
                                                                                runat="server" Text='<%$ Resources:Content,GN0000572 %>' />
                                                                        </div>
                                                                    </div>

                                                                </asp:View>
                                                            </asp:MultiView></td>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <!--Edit Rule -->
                                    </div>
                                    <div id="Div_EditRule" runat="server" style="display: none">
                                        <asp:Panel ID="Pnl_Edit" runat="server" DefaultButton="Btn_EditSave">
                                            <div class="row cleafix">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.GN0000555%>  </h3>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    <asp:Literal ID="Div18" runat="server" Text='<%$ Resources:Content,GN00001235 %>' />:
                                                                </div>
                                                                <div class="col-sm-10 col-xs-12" id="Td_EditConditon" runat="server">
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    *
                <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,GN0000280 %>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:HiddenField ID="HF_EditCondtion" runat="server" />
                                                                            <asp:HiddenField ID="HF_EditPlugin" runat="server" />
                                                                            <asp:TextBox ID="TxBx_EditTitle" runat="server"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RFV_EditTitle" ValidationGroup="EditRule" runat="server"
                                                                                Display="none" ControlToValidate="TxBx_EditTitle" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                            <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="ValidationSummary2" ValidationGroup="EditRule"
                                                                                DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    <asp:Literal ID="Div2" runat="server" Text='<%$ Resources:Content,GN0000277 %>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="DDl_EditAction" runat="server">
                                                                        </asp:DropDownList>
                                                                    </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,GN00001238 %>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_EditScore" runat="server"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RFV_EditScore" ValidationGroup="EditRule" runat="server"
                                                                                Display="none" ControlToValidate="TxBx_EditScore" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxBx_EditScore"
                                                                                FilterType="Numbers">
                                                                            </cc1:FilteredTextBoxExtender>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12" id="Td_EditPluginThreshold" runat="server">
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    <asp:Literal ID="Div4" runat="server" Text='<%$ Resources:Content,GN000195 %>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:CheckBox ID="ChBx_EditEnabled" runat="server" Text=" " />
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_EditSave" SkinID="saveButton" ValidationGroup="EditRule" runat="server"
                                                                        Text='<%$ Resources:Content,GN0000281 %>' />
                                                                    <asp:Button CssClass="btn btn-primary" ID="Btn_EditCancel" SkinID="cancelButton"
                                                                        CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>' />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
                <asp:ValidationSummary HeaderText="<%$ Resources:Content,EM000001 %>" ID="ValidationSummary1"
                    ValidationGroup="Rule" ShowMessageBox="true" ShowSummary="false" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>
