<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Tax_Regimes.aspx.cs"
    Inherits="HRMS.EBTax.Tax_Regimes" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        <div class="main-panel">
            <div class="row">
                <div class="col-md-12">
                    <section class="panel">
                        <header class="panel-heading">
                            Tax Regimes
                            <div class="pull-right">
                                <asp:button text="Save" CssClass="btn btn-info" ID="btn_save" Width="120px"
                                    ValidationGroup="save" runat="server" onclick="btn_save_Click" />
                                <asp:button text="Back" CssClass="btn btn-info" ID="btn_cancel" runat="server"
                                    onclick="btn_cancel_Click" />
                            </div>
                        </header>

                        <div class="panel-body">
                            <div class="span6">
                                <div id="divmessage" runat="server" visible="false"
                                    class="alert alert-info alert-dismissable">
                                    <asp:label text="" ID="lbl_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>

                            <div class="span6">
                                <div id="diverrmessage" runat="server" visible="false"
                                    class="alert alert-info alert-dismissable">
                                    <asp:label text="" id="lbl_err_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>


                            <div class="row" style="padding-top:10px">

                                <asp:HiddenField ID="hid_regimeid" runat="server" />
                                <asp:HiddenField ID="hid_taxregimecode" runat="server" />
                                <asp:HiddenField ID="hid_countryId" runat="server" />
                                <label class="control-label col-md-2">Tax Regime Code</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_regimecode" runat="server">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_taxregime" controltovalidate="txt_regimecode"
                                        errormessage="Tax Regime is Required!" />
                                    <%--<span class="input-group-btn">
                                        <button id="btn_lov_emp" type="button" runat="server" class="btn btn-white"
                                            onserverclick="btn_lov_emp_Click"><i class="fa fa-search"></i></button>
                                        </span>--%>

                                </div>
                                <label class="col-md-2 control-label">Country Name</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_Country" runat="server">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_Country" controltovalidate="txt_Country"
                                            errormessage="Country is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_Country" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_Country_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_parentCode" runat="server" />
                                <label class="col-md-2 control-label">Name</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_Name" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_Name" controltovalidate="txt_Name"
                                        errormessage="Name is Required!" />
                                </div>

                                <label class="col-md-2 control-label">Parent Regime Code</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_PregimeCode" runat="server" CssClass="form-control">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_amt" controltovalidate="txt_amount"
                                            errormessage="Loan Amount is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_PregimeCode" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_PregimeCode_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="col-md-2 control-label">Regime Level</label>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_Rlevel" runat="server" CssClass="form-control">
                                        <%--<asp:ListItem Selected="True" Text="--- Select ---">
                                            </asp:ListItem>--%>
                                            <asp:ListItem Text="Country" Value="1"></asp:ListItem>
                                    </asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_ins_amt" controltovalidate="txt_ints_amt"
                                        errormessage="Installment Amount is Required!" />--%>
                                </div>

                                <label class="col-md-2 control-label">Effective From</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_Efrom" runat="server" CssClass="form-control datetime">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_Efrom" controltovalidate="txt_Efrom"
                                        errormessage="Effective From is Required!" />
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="col-md-7 control-label">Effective To</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_Eto" runat="server" CssClass="form-control datetime">
                                    </asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_Eto" controltovalidate="txt_strt_date"
                                        errormessage="Date is Required!" />--%>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="col-md-6 control-label"></label>
                                <div class="col-md-3 text-right">
                                    <span class="checkbox"><input id="ContentPlaceHolder1_chkbox_Usedregime"
                                            runat="server" type="checkbox"
                                            name="ctl00$ContentPlaceHolder1$Usedregime" />
                                        <label class="col-md-1 control-label"></label>Used to group regimes</span>
                                </div>
                            </div>

                            <hr />

                            <div class="row">
                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-4 text-left">
                                    <span class="checkbox"><input id="ContentPlaceHolder1_chkbox_Allrec" runat="server"
                                            type="checkbox" name="ctl00$ContentPlaceHolder1$Allrec" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Recovery</span>
                                </div>

                                <label class="col-md-1 control-label"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="ContentPlaceHolder1_chkbox_allow_exemptions"
                                            runat="server" type="checkbox"
                                            name="ctl00$ContentPlaceHolder1$allow_exemptions" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Exemptions</span>
                                </div>
                            </div>

                            <div class="row">
                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-4 text-left">
                                    <span class="checkbox"><input id="ContentPlaceHolder1_chkbox_Allow_override"
                                            runat="server" type="checkbox"
                                            name="ctl00$ContentPlaceHolder1$Allow_override" />
                                        <label class="col-md-1 control-label"></label>Allow Override and Entry of
                                        Inclusive Tax Lines</span>
                                </div>

                                <label class="col-md-1 control-label"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="ContentPlaceHolder1_chkbox_Allow_Exeptions"
                                            runat="server" type="checkbox"
                                            name="ctl00$ContentPlaceHolder1$Allow_Exeptions" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Exeptions</span>
                                </div>
                            </div>

                            <hr />

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_taxcurId" runat="server" />
                                <label class="control-label col-md-2">Tax Currency</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_taxCur" runat="server" CssClass="form-control">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="RequiredFieldValidator1"
                                            controltovalidate="txt_regimecode" errormessage="Tax Regime is Required!" />
                                        --%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_taxCur" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_taxCur_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-3">
                                    <span class="checkbox"><input id="ContentPlaceHolder1_chkbox_Rounding"
                                            runat="server" type="checkbox" name="ctl00$ContentPlaceHolder1$Rounding" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Rounding
                                        Ovverride</span>
                                </div>

                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_exchraId" runat="server" />
                                <label class="control-label col-md-2">Minimum Accountable Unit</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_minaccunit" runat="server">
                                    </asp:TextBox>
                                </div>

                                <label class="col-md-2 control-label">Exchange Rate Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_exchratype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="RequiredFieldValidator2" controltovalidate="txt_Country"
                                            errormessage="Country is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_exchratype" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_exchratype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_reptaxauthId" runat="server" />
                                <label class="control-label col-md-2">Rounding Role</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_RoundingRole" runat="server">
                                    </asp:DropDownList>

                                </div>


                                <label class="col-md-2 control-label">Reporting Tax Authority</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_reptaxauth" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="RequiredFieldValidator2" controltovalidate="txt_Country"
                                            errormessage="Country is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_reptaxauth" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_reptaxauth_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_ColltaxauthId" runat="server" />
                                <label class="control-label col-md-2">Tax Precision</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_taxpercision" runat="server">
                                    </asp:TextBox>

                                </div>
                                <label class="col-md-2 control-label">Collectiong Tax Authority</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_Colltaxauth" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="RequiredFieldValidator2" controltovalidate="txt_Country"
                                            errormessage="Country is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_Colltaxauth" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_Colltaxauth_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                            </div>

                            <div class="row" style="padding-top:10px">
                                <%-- <asp:HiddenField ID="hid_loan" runat="server" />
                                <asp:HiddenField ID="hid_per" runat="server" />--%>
                                <label class="control-label col-md-2">Allow Tax Inclusion</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_Allowtaxinclu" runat="server">
                                    </asp:DropDownList>
                                </div>

                                <label class="col-md-2 control-label">Default Recovery Sattlement</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_Defrecstat" runat="server">
                                    </asp:DropDownList>
                                </div>

                            </div>

                            <div class="row">
                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_Allow_Jurisdictions" runat="server"
                                            type="checkbox" name="ctl00$ContentPlaceHolder1$Allow_Jurisdictions" />
                                        <label class="col-md-1 control-label"></label>Allow Multiple
                                        Jurisdictions</span>

                                </div>

                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_Registration_number" type="checkbox"
                                            runat="server" name="ctl00$ContentPlaceHolder1$Registration_number" />
                                        <label class="col-md-1 control-label"></label>Use Legal Registration
                                        Number</span>
                                </div>
                            </div>


                            <div class="row">
                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_Compounding" runat="server" type="checkbox"
                                            name="ctl00$ContentPlaceHolder1$Compounding" />
                                        <label class="col-md-1 control-label"></label>Allow Croos Regime
                                        Compounding</span>
                                </div>

                                <label class="col-md-2 control-label"></label>
                                <div class="col-md-3 text-left">
                                    <label class="col-md-1 control-label"></label>
                                </div>
                            </div>
                            <hr />
                            <div class="row" style="padding-top:10px">
                                <div class="col-md-offset-0">
                                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        Width="90%" OnRowCommand="GridView2_RowCommand">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="0%">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_RegimeID" runat="server"
                                                        Value='<%#Bind("tax_regime_id")%>' />
                                                    <asp:HiddenField ID="hid_Regimedtl" runat="server"
                                                        Value='<%#Bind("regime_usage_id")%>' />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Party Name" HeaderStyle-Width="30%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:HiddenField ID="hid_partcode" runat="server"
                                                            Value='<%#Bind("first_pty_org_id")%>' />
                                                        <asp:TextBox ID="txt_partname" runat="server"
                                                            CssClass="form-control text" Text='<%#Bind("PartyName") %>'>
                                                        </asp:TextBox>
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_partname" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_partname_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup="d_save" runat="server" id="req_rcv_date"
                                                        controltovalidate="txt_rcv_date"
                                                        errormessage="Receive Date is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Amount" HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_rcv_amount" runat="server"
                                                        CssClass="form-control" Text='<%#Bind("AMOUNT") %>'>
                                                    </asp:TextBox>
                                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup="d_save" runat="server" id="req_rcv_amt"
                                                        controltovalidate="txt_rcv_amount"
                                                        errormessage="Receive Amount is Required!" />--%>
                                                </ItemTemplate>

                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Party Type" HeaderStyle-Width="10%">
                                                <ItemTemplate>

                                                </ItemTemplate>



                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Address" HeaderStyle-Width="10%">
                                                <ItemTemplate>

                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Country Name" HeaderStyle-Width="10%">
                                                <ItemTemplate>

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <%-- <asp:TemplateField HeaderText="Configuration for Taxes and Rules"
                                                HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddl_confitaxrule" runat="server"
                                                        CssClass="form-control datetime"
                                                        Text='<%#Bind("confitaxrule") %>'></asp:DropDownList>

                                                </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Configuration for Product Exceptions"
                                                    HeaderStyle-Width="20%">
                                                    <ItemTemplate>
                                                        <asp:DropDownList ID="ddl_confProduct" runat="server"
                                                            CssClass="form-control datetime"
                                                            Text='<%#Bind("confProduct") %>'></asp:DropDownList>

                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <asp:TemplateField HeaderText="Effective From" HeaderStyle-Width="20%">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_efffrom" runat="server"
                                                            CssClass="form-control datetime"
                                                            Text='<%#Bind("Effectivefrom") %>'></asp:TextBox>
                                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup="d_save" runat="server" id="req_rcv_date"
                                                            controltovalidate="txt_rcv_date"
                                                            errormessage="Receive Date is Required!" />--%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Effective To" HeaderStyle-Width="20%">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_efffrto" runat="server"
                                                            CssClass="form-control datetime"
                                                            Text='<%#Bind("Effectiveto") %>'></asp:TextBox>
                                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup="d_save" runat="server" id="req_rcv_date"
                                                            controltovalidate="txt_rcv_date"
                                                            errormessage="Receive Date is Required!" />--%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="linkedit" runat="server" Visible="false"
                                                            CommandName="gEdit"><i class="fa fa-pencil"
                                                                style="font-size:20px !important;"></i></asp:LinkButton>
                                                        <asp:LinkButton ID="lnk_add" ValidationGroup="d_save"
                                                            runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                                style="font-size:20px !important;"></i></asp:LinkButton>
                                                        <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                            CommandName="gDelete" runat="server"
                                                            OnClientClick="return confirm('Are you sure to delete?')"><i
                                                                class="fa fa-trash"
                                                                style="font-size:20px !important"></i></asp:linkbutton>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="6%"></ItemStyle>
                                                </asp:TemplateField>
                                        </Columns>
                                        <%--<FooterStyle CssClass="footerStyle" />
                                        <HeaderStyle CssClass="headerStyle" />
                                        <RowStyle CssClass="rowStyle" />--%>

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

                            <div class="row">
                                <asp:Label CssClass="control-label col-md-offset-2" ID="lbl_due" runat="server">
                                </asp:Label>
                            </div>


                        </div>
                    </section>
                </div>
            </div>
        </div>
    </asp:Content>