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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">
    <%--<script type='text/javascript' language='javascript'>
    function currencyModeChanged(cbId, trId,tbxId, validatorId,e) {
        var cbControl = document.getElementById(cbId);
        var trControl = document.getElementById(trId);
        var tbxControl = document.getElementById(tbxId);
        var validatorControl = document.getElementById(validatorId);
        if (cbControl != null && trControl != null && validatorControl != null) {
            if (cbControl.checked) {
                trControl.style.display = 'none';
                tbxControl.value = '0';
                ValidatorEnable(validatorControl, false);
            }
            else {
                trControl.style.display = '';
                tbxControl.value = ''
                ValidatorEnable(validatorControl, true);
            }
        }
        e.preventDefault();
        return false;
    }
</script>--%>
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <div class="row Div_OpsRow" id="tblPaymentGroups" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.GN00001320%>  </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button CssClass="btn btn-primary btnAction" class="btn btn-primary waves-effect" ID="addPayment" runat="server" Text="<%$ Resources:Content,GN0000950%>" />
       
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                

                <EM:TabContainer ID="TC_PaymentGroups" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_List" runat="server" HeaderText="<%$ Resources:Content,GN0000196%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <asp:SqlDataSource ID="DS_PaymentGroups" runat="server"></asp:SqlDataSource>
                                <asp:GridView ID="GV_PaymentGroups" AllowSorting="true" runat="server" AutoGenerateColumns="False" DataSourceID="DS_PaymentGroups"
                                    CssClass="table table-bordered table-striped table-hover table-responsive" DataKeyNames='PGID,PGName,GatewayName'>
                                    <Columns>
                                        <asp:TemplateField SortExpression="PGId" HeaderText='<%$ Resources:Content,GN0000678 %>' HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container, "DataItem.PGId")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="PGName" HeaderText='<%$ Resources:Content,GN0000951 %>' HeaderStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container, "DataItem.PGName")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="CurrencySymbol" HeaderText='<%$ Resources:Content,GN0000952 %>' HeaderStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container, "DataItem.CurrencySymbol")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="GatewayName" HeaderText='<%$ Resources:Content,GN0000953 %>' HeaderStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltl_Gateway" runat="server"></asp:Literal>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton CssClass="btn btn-primary" ID="LBtn_Edit" runat="server" SkinID="linkButtonEdit" Text='<%$ Resources:Content,GN0000276 %>'></asp:LinkButton>
                                                <asp:LinkButton CssClass="btn btn-primary btnAction" ID="LB_Remove" SkinID="linkButtonRemove" CommandName="Remove" runat="server"
                                                    Text="<%$ Resources:Content,GN0000278%>" />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                    TargetControlID="LB_Remove" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />

                                    </PagerTemplate>

                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Detail" Enabled="false" runat="server" HeaderText='<%$ Resources:Content, GN00001356 %>'>
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false" DefaultButton="btn_Save">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *&nbsp;<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000951%>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_PGName" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_PGName"
                                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000952%>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_Currency" runat="server" Enabled="False">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id="TR_PriG" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN0000953%>" />
                                                        :
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_PriGateway" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id="TR_SecG" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000954%>" />
                                                        :
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_SecGateway" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">

                                                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,SPT002005%>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="CB_OfflineCurrency" AutoPostBack="true" runat="server" Text=" "/>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id='Tr_MinAmount' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *&nbsp;<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN0000955%>" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_MinAmount" runat="server" Text='<%$ Resources:Content,GN0000956 %>'></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_MinAmount"
                                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                                                                    runat="server" ShowMessageBox="True" ShowSummary="False" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="btn_Save" SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN0000281 %>" />
                                                        <asp:Button CssClass="btn btn-primary" ID="btn_Cancel" SkinID="cancelButton" runat="server" Text="<%$ Resources:Content,GN0000572 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>
