<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="TaxRate.aspx.cs"
    Inherits="HRMS.EBTax.TaxRate" %>
    <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 Rate
                            <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_taxrate" runat="server" />
                                <asp:HiddenField ID="tax_regime_code" runat="server" />
                                <%-- // <<asp:HiddenField ID="content_owner_id" 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_taxregime" 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="col-md-2 control-label">Regime Name</label>
                                <div class="col-md-3">

                                    <asp:TextBox CssClass="form-control" ID="txt_RegimeName" 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 class="row" style="padding-top:10px">
                                <asp:HiddenField ID="content_owner_id" runat="server" />
                                <label class="col-md-2 control-label">Configuration Owner</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_Configowner" runat="server" CssClass="form-control">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_txt_Configowner" controltovalidate="txt_Configowner"
                                            errormessage="Configuration Owner 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>

                                <label class="col-md-2 control-label">Rate Type</label>
                                <div class="col-md-3">

                                    <asp:DropDownList ID="ddl_Ratetype" runat="server" CssClass="form-control">
                                        <%--<asp:ListItem Selected="True" Text="--- Select ---">
                                            </asp:ListItem>--%>
                                            <asp:ListItem Text="Percentage" Value="1"></asp:ListItem>
                                    </asp:DropDownList>  
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_amt" controltovalidate="txt_amount"
                                        errormessage="Loan Amount is Required!" />--%>

                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_Tax" runat="server" />
                                <label class="col-md-2 control-label">Tax</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_tax" runat="server" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_txt_tax" controltovalidate="txt_tax"
                                            errormessage="Tax is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_tax" type="button" runat="server" class="btn btn-white"
                                                onserverclick="btn_lov_tax_Click"><i class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>
                                <label class="col-md-2 control-label">Tax Name</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" ID="txt_taxName" runat="server"></asp:TextBox>
                                    
                                </div>


                            </div>

                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_taxcode" runat="server" />
                                <label class="col-md-2 control-label">Tax Status Code</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_taxstauscode" runat="server" CssClass="form-control">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_txt_taxstauscode"
                                            controltovalidate="txt_taxstauscode"
                                            errormessage="Tax Status Code is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_taxstauscode" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_taxstauscode_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="col-md-2 control-label">Tax Status Name</label>
                                <div class="col-md-3 text-right">
                                    <asp:TextBox ID="txt_taxstatusName" runat="server" CssClass="form-control">
                                    </asp:TextBox>

                                </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                 <asp:HiddenField ID="hid_Juris" runat="server" />
                                <label class="col-md-2 control-label">Tax Jurisdiction Code</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_Jurisdiction" runat="server" CssClass="form-control">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="Req_txt_Jurisdiction"
                                            controltovalidate="txt_Jurisdiction"
                                            errormessage=" Jurisdiction Code is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_Jurisdiction" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_Jurisdiction_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                                <label class="col-md-2 control-label">Tax Jurisdiction Name</label>
                                <div class="col-md-3 text-right">
                                    <asp:TextBox ID="lbl_JurisdictionName" runat="server" CssClass="form-control">
                                    </asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="RequiredFieldValidator1" controltovalidate="txt_Jurisdiction"
                                        errormessage=" Jurisdiction Code is Required!" />--%>

                                </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="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-2 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">
                               
                                <label class="control-label col-md-2">Tax Rate Code</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                        <asp:TextBox ID="txt_taxRatecode" runat="server" CssClass="form-control">
                                        </asp:TextBox>
                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_txt_taxRatecode" controltovalidate="txt_taxRatecode"
                                            errormessage="Tax Rate Code 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>


                            </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_taxrate" runat="server"
                                                        Value='<%#Bind("TAX_RATE_ID")%>' />
                                                    <%--<asp:HiddenField ID="hid_Regimedtl" runat="server"
                                                        Value='<%#Bind("regime_usage_id")%>' />--%>
                                               <%--  </ItemTemplate>
                                            </asp:TemplateField>




                                            <asp:TemplateField HeaderText="Percentage Recovery Rate"
                                                HeaderStyle-Width="45%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_perrecovery" runat="server"
                                                        CssClass="form-control" Text='<%#Bind("Percentage") %>'>
                                                    </asp:TextBox>
                                                </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>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Effective To" HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_effto" runat="server"
                                                        CssClass="form-control datetime"
                                                        Text='<%#Bind("EffectiveTo") %>'></asp:TextBox>
                                                </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>