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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">

    <ajax:UpdatePanel ID="UP" runat="server">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.GN00001354%>                                                                                                                                 
                        </h3>
                    </div>
                    <div class="body" id="Div_TaxZone" runat="server">
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                *
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000882%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_Country" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Country_SelectedIndexChanged" data-label="Country">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_State" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DEV1130%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_State" runat="server" data-label="State">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                *
                        <asp:Literal ID='Ltrl_T1Title' runat='server' Text='<%$ Resources:Content,USM0002 %>'></asp:Literal>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID='TxBx_T1Title' runat="server" Text='<%$ Resources:Content,GN0000732 %>'
                                            MaxLength='100' data-label="Tax Title"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID='RFV_T1Title' runat="server" SetFocusOnError='true'
                                            ControlToValidate='TxBx_T1Title' Display='None' ValidationGroup='taxzone'></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN00001016%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:RadioButtonList ID="RBL_TaxType" runat="server" data-label="Tax Type">
                                        <asp:ListItem Text='<%$ Resources:Content,GN00001017 %>' Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text='<%$ Resources:Content,GN00001018 %>' Value="1"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                *
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001019%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Rate" runat="server" Text="0" data-label="Tax Rate"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                            SetFocusOnError="True" ValidationGroup="taxzone" ControlToValidate="TxBx_Rate"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID='Ltrl_Tax2Title' runat="server" Text='<%$Resources:Content,USM0003 %>'></asp:Literal>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID='TxBx_T2Title' runat="server" MaxLength="100" Text='<%$ Resources:Content,USM0006 %>' data-label="Tax 2 Title"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID='Ltrl_T2Type' runat="server" Text='<%$Resources:Content,USM0005 %>'></asp:Literal>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:RadioButtonList ID="Rbtnl_T2Type" runat="server" data-label="Tax 2 Type">
                                        <asp:ListItem Text='<%$ Resources:Content,GN00001017 %>' Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text='<%$ Resources:Content,GN00001018 %>' Value="1"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID='Ltrl_T2Rate' runat="server" Text='<%$Resources:Content,USM0004 %>'></asp:Literal>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID='TxBx_T2Rate' runat="server" Text='0' data-label="Tax 2 Rate"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <asp:CheckBox ID='CB_Compound' runat="server" Text='<%$Resources:Content,USM0007 %>' data-label="Apply Tax 2 as Compound Tax"></asp:CheckBox>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000597%>" />:
                            </div>
                            <div class="col-sm-10 col-xs-12">
                                <div class="form-group">
                                    <asp:TextBox ID="TxBx_Desc" runat="server" Rows="8" CssClass="col-xs-12" TextMode="MultiLine" data-label="Description"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN0000222%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="ChBx_Active" runat="server" Text=" " data-label="Is Active" />
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_Save" SkinID="saveButton" runat="server" Text='<%$ Resources:Content,GN0000281 %>'
                                    ValidationGroup="taxzone" CssClass="btn btn-primary btnAction" />
                                <asp:Button ID="Btn_Cancel" CausesValidation="false" SkinID="cancelButton" runat="server"
                                    Text='<%$ Resources:Content,GN0000572 %>' CssClass="btn btn-primary" />
                                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="taxzone" HeaderText="<%$ Resources:Content,EM000001 %>"
                                    runat="server" ShowSummary="false" ShowMessageBox="true" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>
</asp:Content>
