<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="BankSetup.aspx.cs" Inherits="HRMS.BankSetup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      <asp:Panel ID="main_pnl" runat="server">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">Bank Setup
                    <div class="pull-right">
                        <asp:Button ID="btnSave" class="btn btn-info" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="save" ></asp:Button>
                        <asp:Button ID="btn_cncl" class="btn btn-info" runat="server" Text="Back" OnClick="btn_cncl_Click"></asp:Button>
                    </div>
                    
                    </header>
                        <div class="panel-body">
                                <div class="span6">
                                    <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                        <i class="icon-check-sign"></i>
                                         <asp:Label ID="lblMessage" class="msg" runat="server" Text="" ></asp:Label>
                                    </div>
                                    <div class="span6">
                                        <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                                            <i class="icon-check-sign"></i>
                                            <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text="" ></asp:Label>
                                        </div>
                                    </div>
                                </div>

                            <div class="row">
                                <label class="col-md-2 col-sm-2 control-label" runat="server" visible="false">Business Group</label>
                                <div class="col-md-3" runat="server" visible="false">
                                    <asp:DropDownList ID="ddl_BUSINESS_GROUP_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="ddl_BUSINESS_GROUP_ID" ErrorMessage="Business Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                </div>

                                   <label class="col-md-2 col-sm-2 control-label">Country</label>
                                <div class="col-md-3">
                                  <asp:DropDownList ID="ddl_COUNTRY" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_COUNTRY" ControlToValidate="ddl_COUNTRY" ErrorMessage="Country is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>

                                </div>
                            </div>

                            <div class="row">
                                <label class="col-md-2 col-sm-2 control-label">Bank Name</label>
                                <div class="col-md-3">
                                    <asp:HiddenField ID="hid_BANK_ID" runat="server"></asp:HiddenField>
                                    <asp:TextBox ID="txt_BANK_NAME" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_BANK_NAME" ControlToValidate="txt_BANK_NAME" ErrorMessage="Bank Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                </div>

                                <label class="col-md-2 col-sm-2 control-label">Bank No</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_bnk_no" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txt_bnk_no" ErrorMessage="Bank No is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                </div>
                            </div>


                               <div class="row">
                                <label class="col-md-2 col-sm-2 control-label">Taxpayer ID</label>
                                <div class="col-md-3">
                                    <asp:HiddenField ID="HiddenField1" runat="server"></asp:HiddenField>
                                    <asp:TextBox ID="txt_taxpay_id" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator Visible="false" runat="server" ID="RequiredFieldValidator2" ControlToValidate="txt_BANK_NAME" ErrorMessage="Bank Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                </div>

                                <label class="col-md-2 col-sm-2 control-label">Tax Registration No</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_tax_reg_no" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator Visible="false" runat="server" ID="RequiredFieldValidator3" ControlToValidate="txt_BANK_NAME" ErrorMessage="Bank Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="row">
                             
                            </div>
                            <div class="row">
                                <label class="col-md-2 col-sm-2 control-label">Enable</label>
                                <div class="col-md-4">
                                 <asp:CheckBox ID="chk_ENABLED" runat="server" CssClass="checkbox"></asp:CheckBox>
                                </div>
                            </div>

                             <div class="row">
                                 <label class="col-md-2 col-md-2 control-label">Date From</label>
                                     <div class="col-md-3">
                                        <asp:TextBox ID="txt_DATE_START" runat="server" MaxLength="10" CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_DATE_START" ControlToValidate="txt_DATE_START" ErrorMessage="Date From is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                      </div>
                                         <label class="col-md-2 control-label">Date To</label>
                                        <div class="col-md-3">
                                          <asp:TextBox ID="txt_DATE_END" runat="server" MaxLength="10" CssClass="form-control datetime"></asp:TextBox>
                                        </div>
                               </div>


                            <div class="form-group">
                                   <asp:Repeater ID="add_info" runat="server">
                                        <HeaderTemplate> <header class="panel-heading">Additional Information</header><br /></HeaderTemplate>
                                        <ItemTemplate>
                                             <div class="form-group">
                                                <div class="col-md-1"></div>
                                                    <asp:Label ID="r_lbl" runat="server" class="col-md-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
                                                      <div class="col-md-4">
                                                        <asp:TextBox ID="txt_r_value" runat="server"  placeholder='<%# Eval("PROMPT") %>' Text='<%# Eval("value") %>' CssClass="form-control"></asp:TextBox>
                                                        <asp:HiddenField ID="hid_field_name" runat="server" Value='<%# Eval("col_name") %>' ></asp:HiddenField>
                                                      </div>
                                            </div>
                                        </ItemTemplate>
                                </asp:Repeater>
                            </div>
                   
                     <div class="row" >
                              <div class="col-lg-12">
                                     <div class="panel">
                                      <div class="panel-heading">Branch</div>
                                             <div class="actions pull-right">
                                                 <div class="btn-group">
                                                   <a href="#" id="aNewDtl" runat="server" class="btn btn-info">Add Branch</a>
                                                 </div>
                                              </div>
                               <div id="dtl_div" runat="server" class="panel-body">
                                     <asp:GridView ID="grd_dtl" runat="server"  AutoGenerateColumns="False"   
                                        cellpadding="0" border="0" class="display" onrowcommand="grd_dtl_RowCommand" >
                                        <Columns>
                                             <asp:BoundField HeaderText="Id" DataField="BRANCH_ID" />
                                             <asp:BoundField HeaderText="Branch Name" DataField="BRANCH_NAME" />
                                             <asp:BoundField HeaderText="City" DataField="CITY_MEANING" />
                                             <asp:BoundField HeaderText="Enable" DataField="ENABLED_DESC" />
                                             <asp:BoundField HeaderText="Date From" DataField="DATE_START" />
                                             <asp:BoundField HeaderText="Date To" DataField="DATE_END" />                
                                             <asp:TemplateField ItemStyle-Width="6%" HeaderText="Action" ItemStyle-HorizontalAlign="Center">
                                                 <ItemTemplate>
                                                   <asp:LinkButton ID="lnkEdit" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                                    &nbsp<asp:LinkButton ID="lnkDelete" runat="server" CommandName="gDelete" 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>
                                           <%-- Mandatory--%>
                                           <RowStyle CssClass="rowStyle"/>
                                           <%-- Mandatory--%>
                                           <HeaderStyle CssClass="headerStyle" />
                                           <%-- optional--%>
                                           <FooterStyle  CssClass="footerStyle"  />
                                       </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">
                                       //without passing class names.
                                        $("#ContentPlaceHolder1_grd_dtl").GridviewFix().dataTable();
                                         //Passing class names
                                        </script>
                                        
                                        <br />
                                     </div>
                                   </div>
                               </div>
                     </div>

         </div>
                </section>
            </div>
        </div>
    </asp:Panel>

    <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css" rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
</asp:Content>
