<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Taxes.aspx.cs" MaintainScrollPositionOnPostback="true"
    Inherits="HRMS.EBTax.Taxes" %>

    <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">
                            Taxes
                            <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_tax_id" runat="server" />
                                <asp:HiddenField ID="hid_regimeid" runat="server" />
                                <asp:HiddenField ID="hid_RegCode" runat="server" />
                                <asp:HiddenField ID="hid_overgeotype" runat="server" />

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

                                <label class="control-label col-md-2">Override Geography Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_overgeotype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_overgeotype" controltovalidate="txt_overgeotype"
                                            errormessage="Override Geography Type is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_overgeotype" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_overgeotype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_configowner" runat="server" />
                                <asp:HiddenField ID="hid_taxcurrency" runat="server" />

                                <label class="control-label col-md-2">Configuration Owner</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_configowner" runat="server">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_configowner" controltovalidate="txt_configowner"
                                            errormessage="Configuration Owner is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_configowner" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_configowner_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="control-label col-md-2">Tax Currency</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_taxcurrency" runat="server">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_taxcurrency" controltovalidate="txt_taxcurrency"
                                            errormessage="Tax Currency is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_taxcurrency" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_taxcurrency_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Tax Source</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_taxsource" runat="server">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_taxsource" controltovalidate="ddl_taxsource"
                                        errormessage="Tax Source is Required!" />
                                </div>

                                <label class="control-label col-md-2">Minimum Accountable Unit</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_minactunit" runat="server">
                                    </asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_minactunit" controltovalidate="txt_minactunit"
                                        errormessage="Minimum Accountable Unit is Required!" />--%>
                                </div>
                            </div>

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


                                <label class="control-label col-md-2">Rounding Rule</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_roundingrule" runat="server">
                                    </asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_roundingrule" controltovalidate="ddl_roundingrule"
                                        errormessage="Rounding Rule is Required!" />--%>
                                </div>
                            </div>

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


                                <label class="control-label col-md-2">Tax Precision</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_taxprecision" runat="server">
                                    </asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_taxprecision" controltovalidate="txt_taxprecision"
                                        errormessage="Rounding Rule is Required!" />--%>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_taxtype" runat="server" />
                                <asp:HiddenField ID="hid_exratetype" runat="server" />

                                <label class="control-label col-md-2">Tax Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_taxtype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_taxtype" controltovalidate="txt_taxtype"
                                            errormessage="Tax Type is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_taxtype" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_taxtype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

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

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Effective From</label>
                                <div class="col-md-3">
                                    <span class="textbox">
                                        <asp:TextBox ID="txt_effectivefrom" runat="server"
                                            CssClass="form-control datetime"></asp:TextBox>(example: 26-Jan-2021)
                                    </span>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_effectivefrom" controltovalidate="txt_effectivefrom"
                                        errormessage="Effective From is Required!" />
                                </div>

                                <label class="control-label col-md-2">Compounding Precedence</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_comppre" runat="server"></asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_comppre" controltovalidate="txt_comppre"
                                        errormessage="Compounding Precedence is Required!" />--%>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_reptaxauth" runat="server" />

                                <label class="control-label col-md-2">Effective To</label>
                                <div class="col-md-3">
                                    <span class="input-group-btn">
                                        <asp:TextBox ID="txt_effectiveto" runat="server"
                                            CssClass="form-control datetime"></asp:TextBox>(example: 26-Jan-2021)
                                    </span>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_effectiveto" controltovalidate="txt_effectiveto"
                                        errormessage="Effective To is Required!" />--%>
                                </div>

                                <label class="control-label col-md-2">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="req_reptaxauth" controltovalidate="txt_reptaxauth"
                                            errormessage="Reporting Tax Authority 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_colltaxauth" runat="server" />

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_maketaxavi" runat="server" type="checkbox"
                                            name="chkbox_maketaxavi" />
                                        <label class="col-md-1 control-label"></label>Tax Available For
                                        Transactions</span>
                                </div>

                                <label class="control-label col-md-2">Collecting 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="req_colltaxauth" controltovalidate="txt_colltaxauth"
                                            errormessage="Collecting Tax Authority 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_geographytype" runat="server" />
                                <asp:HiddenField ID="hid_appliedamount" runat="server" />

                                <label class="control-label col-md-2">Geography Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_geographytype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_geographytype" controltovalidate="txt_geographytype"
                                            errormessage="Tax Regime is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_geographytype" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_geographytype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="control-label col-md-2">Applied Amount Handling</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_appliedamount" runat="server">
                                    </asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_appliedamount" controltovalidate="ddl_appliedamount"
                                        errormessage="Tax Regime is Required!" />--%>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_parentgoegrphtype" runat="server" />

                                <label class="control-label col-md-2">Parent Geography Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_parentgoegrphtype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_parentgoegrphtype"
                                            controltovalidate="txt_parentgoegrphtype"
                                            errormessage="Tax Regime is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_parentgoegrphtype" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_parentgoegrphtype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_setasoffsettax" runat="server"
                                            type="checkbox" name="chkbox_setasoffsettax" />
                                        <label class="col-md-1 control-label"></label>Set as Offset Tax</span>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_parentgoegrphname" runat="server" />

                                <label class="control-label col-md-2">Parent Geography Name</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_parentgoegrphname" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_parentgoegrphname"
                                            controltovalidate="txt_parentgoegrphname"
                                            errormessage="Tax Regime is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_parentgoegrphname" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_parentgoegrphname_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_taxreportingpurposes" runat="server"
                                            type="checkbox" name="chkbox_taxreportingpurposes" />
                                        <label class="col-md-1 control-label"></label>Tax Reporting Purposes Only</span>
                                </div>
                            </div>

                            <hr />

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Allow Tax Inclusion</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_allowtaxinc" runat="server">
                                    </asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_allowtaxinc" controltovalidate="ddl_allowtaxinc"
                                        errormessage="Allow Tax Inclusion is Required!" />--%>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_usedlegalregistration" runat="server"
                                            type="checkbox" name="chkbox_usedlegalregistration" />
                                        <label class="col-md-1 control-label"></label>Used Legal Registration
                                        Number</span>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowoverideandentry" runat="server"
                                            type="checkbox" name="chkbox_allowoverideandentry" />
                                        <label class="col-md-1 control-label"></label>Allow Override and Entry of
                                        Inclusive Tax</span>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowduplicatetax" runat="server"
                                            type="checkbox" name="chkbox_allowduplicatetax" />
                                        <label class="col-md-1 control-label"></label>Allow Duplicate Tax
                                        Registration</span>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowtaxrounding" runat="server"
                                            type="checkbox" name="chkbox_allowtaxrounding" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Rounding Override</span>
                                </div>

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

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowoverridecalculated" runat="server"
                                            type="checkbox" name="chkbox_allowoverridecalculated" />
                                        <label class="col-md-1 control-label"></label>Allow Override For Calculated
                                        Tax</span>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowmasscreation" runat="server"
                                            type="checkbox" name="chkbox_allowmasscreation" />
                                        <label class="col-md-1 control-label"></label>Allow Mass Creation Of
                                        Jurisdictions</span>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowentryofmanual" runat="server"
                                            type="checkbox" name="chkbox_allowentryofmanual" />
                                        <label class="col-md-1 control-label"></label>Allow Entry of Manual Tax</span>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">

                                </div>
                            </div>

                            <hr />

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_taxactsource" runat="server" />

                                <label class="control-label col-md-2">Create Tax Account</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_createtaxact" runat="server">
                                    </asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_createtaxact" controltovalidate="ddl_createtaxact"
                                        errormessage="Create Tax Account is Required!" />--%>
                                </div>

                                <label class="control-label col-md-2">Tax Account Source</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_taxactsource" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_taxactsource" controltovalidate="txt_taxactsource"
                                            errormessage="Tax Account Source is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_taxactsource" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_taxactsource_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <hr />

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

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowtaxexception" runat="server"
                                            type="checkbox" name="chkbox_allowtaxexception" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Exceptions</span>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowtaxexemption" runat="server"
                                            type="checkbox" name="chkbox_allowtaxexemption" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Exemptions</span>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_taxexmsource" runat="server" />

                                <label class="control-label col-md-2">Tax Exemptions Source</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_taxexmsource" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_taxexmsource" controltovalidate="txt_taxexmsource"
                                            errormessage="Tax Account Source is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_taxexmsource" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_taxexmsource_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="control-label col-md-2">Tax Exemptions Creation</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_taxexemptionmethod"
                                        runat="server"></asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_taxexemptionmethod"
                                        controltovalidate="ddl_taxexemptionmethod"
                                        errormessage="Create Tax Account is Required!" />--%>
                                </div>
                            </div>

                            <hr />

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_primaryrectype" runat="server" />

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowtaxrecovery" runat="server"
                                            type="checkbox" name="chkbox_allowtaxrecovery" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Recovery</span>
                                </div>

                                <label class="control-label col-md-2">Primary Recovery Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_primaryrectype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_primaryrectype"
                                            controltovalidate="txt_primaryrectype"
                                            errormessage="Tax Account Source is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_primaryrectype" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_primaryrectype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_secondaryrectype" runat="server" />

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowtaxrecrate" runat="server"
                                            type="checkbox" name="chkbox_allowtaxrecrate" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Recovery Rate</span>
                                </div>

                                <label class="control-label col-md-2">Secondary Recovery Type</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_secondaryrectype" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_secondaryrectype"
                                            controltovalidate="txt_secondaryrectype"
                                            errormessage="Tax Account Source is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_secondaryrectype" type="button" runat="server"
                                                class="btn btn-white" disabled="disabled"
                                                onserverclick="btn_lov_secondaryrectype_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>

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

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-4 text-left">
                                    <span class="checkbox"><input id="chkbox_allowprimaryratedetermination"
                                            runat="server" type="checkbox"
                                            name="chkbox_allowprimaryratedetermination" />
                                        <label class="col-md-1 control-label"></label>Allow Primary Recovery Rate
                                        Determination Rule</span>
                                </div>

                                <label class="control-label col-md-1"></label>
                                <div class="col-md-6">
                                </div>
                            </div>

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

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-4 text-left">
                                    <span class="checkbox"><input id="chkbox_allowsecondaryratedetermination"
                                            runat="server" type="checkbox"
                                            name="chkbox_allowsecondaryratedetermination" />
                                        <label class="col-md-1 control-label"></label>Allow Secondary Recovery Rate
                                        Determination Rule</span>
                                </div>

                                <label class="control-label col-md-1"></label>
                                <div class="col-md-6">
                                </div>
                            </div>

                            <hr />

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

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3 text-left">
                                    <span class="checkbox"><input id="chkbox_allowtaxraterules" runat="server"
                                            type="checkbox" name="chkbox_allowtaxraterules" />
                                        <label class="col-md-1 control-label"></label>Allow Tax Rate Rules</span>
                                </div>

                                <label class="control-label col-md-2">Default Recovery Sattelment</label>
                                <div class="col-md-3">
                                    <asp:DropDownList CssClass="form-control" ID="ddl_defaultrecsattelment"
                                        runat="server"></asp:DropDownList>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_defaultrecsattelment"
                                        controltovalidate="ddl_defaultrecsattelment"
                                        errormessage="Tax Source is Required!" />--%>
                                </div>
                            </div>

                            <hr />

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_ledger" runat="server" />

                                <label class="control-label col-md-2">Ledger</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_ledger" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_ledger" controltovalidate="txt_ledger"
                                            errormessage="Ledger is Required!" />--%>
                                        <span class="input-group-btn">
                                            <button id="btn_lov_ledger" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_ledger_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="control-label col-md-2"></label>
                                <div class="col-md-3">
                                    <asp:button text="Create" CssClass="btn btn-info" ID="btn_create" Width="120px"
                                        ValidationGroup="Create" runat="server" onclick="btn_Create_Click" />
                                    <%--onclick="btn_save_Click"--%>
                                </div>
                            </div>
                             <div class="panel-body">
                        <div class="span6">
                            <div id="div1" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                <asp:label text="" ID="Label1" CssClass="msg" runat="server"></asp:label>
                            </div>
                        </div>

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

                            <asp:GridView ID="GridView1" CssClass="display" CellPadding="0" Border="0" 
                            AutoGenerateColumns="false" runat="server" onrowcommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="LEDGER_DESC" HeaderText="Ledger" />
                                    <asp:BoundField DataField="Oprating" HeaderText="OPerating Unit" />
                                    

                                    <asp:TemplateField HeaderText="Action">
                                        <ItemTemplate>
                                            <asp:HiddenField ID="hid_taxAccount_id" runat="server" Value='<%#Bind("TAX_Account_ID")%>' />
                                            <asp:HiddenField ID="hid_taxLeg_id" runat="server" Value='<%#Bind("LEDGER_ID")%>' />
                                            <asp:HiddenField ID="hid_tax_ids" runat="server" Value='<%#Bind("TAX_ACCOUNT_ENTITY_ID")%>' />
                                             <%--<asp:HiddenField ID="hid_TaxExpense" runat="server" Value='<%#Bind("TaxExpense")%>' />
                                             <asp:HiddenField ID="hidInterimTax" runat="server" Value='<%#Bind("InterimTax")%>' />
                                             <asp:HiddenField ID="hidTaxRecoverableLiability" runat="server" Value='<%#Bind("TaxRecoverableLiability")%>' />
                                             <asp:HiddenField ID="hidFinanceCharge" runat="server" Value='<%#Bind("FinanceCharge")%>' />
                                             <asp:HiddenField ID="hidEarnedDiscounts" runat="server" Value='<%#Bind("EarnedDiscounts")%>' />
                                             <asp:HiddenField ID="hidAdjustment" runat="server" Value='<%#Bind("Adjustment")%>' />
                                             <asp:HiddenField ID="hidUnearnedDiscounts" runat="server" Value='<%#Bind("UnearnedDiscounts")%>' />
                                             <asp:HiddenField ID="hidEarnedDiscountsEx" runat="server" Value='<%#Bind("EarnedDiscountsEx")%>' />
                                            <asp:HiddenField ID="hidFinanceCharges" runat="server" Value='<%#Bind("FinanceCharges")%>' />
                                             <asp:HiddenField ID="hidUnearnedDiscountsExp" runat="server" Value='<%#Bind("UnearnedDiscountsExp")%>' />--%>

                                            <asp:LinkButton ID="lnk_edit" CausesValidation="false" CommandName="gedit" runat="server"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                            <asp:LinkButton ID="lnk_dlt" CausesValidation="false" CommandName="gdlt" OnClientClick="return confirm('Are you sure to delete?')" runat="server"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                    <FooterStyle CssClass="footerStyle" />
                                    <HeaderStyle CssClass="headerStyle" />
                                    <RowStyle CssClass="rowStyle" />
                            </asp:GridView>
                                <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
                                 <script src="/ThemeScrips/Datatables/media/js/jquery.datatables.min.js" type="text/javascript"></script>
                                 <script src="/ThemeScrips/Datatables/media/js/jquery.Datatables.js" type="text/javascript"></script>
                                 <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
                                 <script type="text/javascript">
                                     $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                                </script>
                    </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>