<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Tax_Recovery_Rates.aspx.cs" Inherits="HRMS.EBTax.Tax_Recovery_Rates" %>
<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 Recovery 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_tax_rate_id" runat="server" />
                                <asp:HiddenField ID="hid_tax_regime_code" runat="server" />
                                <asp:HiddenField ID="hid_configowner" 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>
                        </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_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="col-md-2 control-label">Rate Type</label>
                                <div class="col-md-3">
                                    
                                    
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="req_amt" controltovalidate="txt_amount" errormessage="Loan Amount is Required!" />--%>
                                 <asp:DropDownList ID="ddl_Ratetype" runat="server" CssClass="form-control">
                                        <%--<asp:ListItem Selected="True" Text="--- Select ---">
                                            </asp:ListItem>--%>
                                            <asp:ListItem Text="Recovery" Value="1"></asp:ListItem>
                                    </asp:DropDownList>  
                                 </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">
                                <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> 
                        
                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Recovery Type</label>
                                <div class="col-md-3">
                                <div class="input-group">
                                 <asp:DropDownList ID="ddl_recoverytype" runat="server" CssClass="form-control" ></asp:DropDownList>
                                 <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="RequiredFieldValidator1" 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="15%">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_perrecovery" runat="server" CssClass="form-control" Text='<%#Bind("PERCENTAGE_RATE") %>'></asp:TextBox>
                                      </ItemTemplate>
                                   

                                    
                                </asp:TemplateField>
                                          <asp:TemplateField HeaderText="Effective From" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                         <asp:TextBox ID="txt_efffrom" runat="server" CssClass="form-control datetime" Text='<%#Bind("EFFECTIVE_FROM") %>'></asp:TextBox>
                                      </ItemTemplate>
                                              </asp:TemplateField>
                                              <asp:TemplateField HeaderText="Effective To" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                         <asp:TextBox ID="txt_effto" runat="server" CssClass="form-control datetime" Text='<%#Bind("EFFECTIVE_TO") %>'></asp:TextBox>
                                      </ItemTemplate>
                                                  </asp:TemplateField>
                                
                                      <asp:TemplateField HeaderText="Set As Default Rate" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                         <span class="chk_setasdefault"><input id="chkbox_setasdefault" runat="server" type="checkbox" name="ctl00$ContentPlaceHolder1$setasdefault"/>
                                   <label class="col-md-1 control-label" ></label>Set As Default Rate</span>  

                                      </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="Default Effective From" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_defaultefffrom" runat="server" CssClass="form-control datetime" Text='<%#Bind("DEFAULT_FLG_EFFECTIVE_FROM") %>'></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="Default Effective To" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_defaultefffrto" runat="server" CssClass="form-control datetime" Text='<%#Bind("DEFAULT_FLG_EFFECTIVE_TO") %>'></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="Allow add Hoc Rate"  HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                       <span class="chk_Allad"><input id="chkbox_allad" runat ="server" type="checkbox" name="ctl00$ContentPlaceHolder1$allad"/>
                                   <label class="col-md-1 control-label"  ></label>Allow add Hoc Rate</span>  

                                      </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>
