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

<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">
                        Accounts Detail
                         <div class="pull-right">
                            <asp:button text="Save" CssClass="btn btn-info" ID="btn_save"   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">
                            <%--<label class="control-label col-md-1">Country</label>--%>
                            <%--<div class="col-md-3">
                                <asp:DropDownList ID="ddl_cnt" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="ddl_cnt" ErrorMessage="Country is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>--%>

                            <label class="control-label col-md-1">Bank</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_bnk" runat="server" CssClass="form-control select2" AutoPostBack="true" OnSelectedIndexChanged="ddl_bnk_SelectedIndexChanged"></asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="ddl_bnk" ErrorMessage="Bank is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>

                            <label class="control-label col-md-1">Branch</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_branch" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="ddl_branch" ErrorMessage="Bank Branch is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <hr />

                           <div class="row">
                            <label class="control-label col-md-2">Bank Account Owner</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_bk_acc_owner" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="ddl_bk_acc_owner" ErrorMessage="Account Owner is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="row">
                             <label class="control-label col-md-2">Account Use</label>
                            <div class="col-md-2">
                               <asp:CheckBox ID="chk_payable" runat="server" Text="Payables" CssClass="checkbox" />
                                
                            </div>

                             <div class="col-md-2">
                               <asp:CheckBox ID="chk_payroll" runat="server" Text="Payroll" CssClass="checkbox" />
                            </div>

                              <div class="col-md-3">
                               <asp:CheckBox ID="chk_rcvable" runat="server" Text="Receivables" CssClass="checkbox" />
                            </div>
                        </div>
                        <hr />

                        <div class="row">
                            <asp:HiddenField ID="hid_bnkacc" runat="server" />
                            <label class="control-label col-md-2">Account Name</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_acc_name" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator5" ControlToValidate="txt_acc_name" ErrorMessage="Account Name is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>

                             <label class="control-label col-md-2">Account Number</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_acC_no" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:TextBox ID="txt_acc_enc" Enabled="false" runat="server" CssClass="form-control" Visible="false"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator6" ControlToValidate="txt_acC_no" ErrorMessage="Account No is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>
                        </div>

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

                             <label class="control-label col-md-2">IBAN Number</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_iban_no" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>

                        <div class="row">
                            <label class="control-label col-md-2">Account Type</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_acc_type" runat="server" CssClass="form-control select2"></asp:DropDownList>
                            </div>

                             <label class="control-label col-md-2">Account Holder</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_acc_holder" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>

                        <hr />
                              <div class="row">
                                <asp:HiddenField ID="hid_cash_acc" runat="server" />
                                  <label class="control-label col-md-1">Cash</label>
                                <div class="col-md-4">
                                 <div class="input-group">
                                 <asp:TextBox  CssClass="form-control" ID="txt_acc" runat="server"></asp:TextBox>
                                 <asp:RequiredFieldValidator Visible="false" SetFocusOnError="true" ValidationGroup="save" runat="server" id="req_acc" controltovalidate="txt_acc" errormessage="Account Required!" />
                                     <span class="input-group-btn">
                                    <button id="btn_add" type="button" data-target="#CostVal" data-toggle="modal" runat="server" class="btn btn-white"><i class="fa fa-plus"></i></button>
                                    </span>
                                    
                                       <span class="input-group-btn">
                                                            <button id="btn_lov_lgl_add" type="button" runat="server" class="btn btn-white" onserverclick="btn_lov_lgl_add_Click">
                                                            <i class="fa fa-search"></i></button>
                                                          </span>

                            </div>
                                </div>

                                          <label class="control-label col-md-2">Cash Clearing</label>
                                <div class="col-md-4">
                                 <div class="input-group">
                                 <asp:TextBox  CssClass="form-control" ID="TextBox4" runat="server"></asp:TextBox>
                                 <asp:RequiredFieldValidator Visible="false" SetFocusOnError="true" ValidationGroup="save" runat="server" id="RequiredFieldValidator1" controltovalidate="txt_acc" errormessage="Account Required!" />
                                     <span class="input-group-btn">
                                    <button id="Button2" type="button" data-target="" data-toggle="modal" runat="server" class="btn btn-white"><i class="fa fa-plus"></i></button>
                                    </span>
                                    <span class="input-group-btn">
                                    <button id="Button3" type="button" data-target="" data-toggle="modal" runat="server" class="btn btn-white"><i class="fa fa-search"></i></button>
                                    </span>
                            </div>
                                </div>
                            </div>

                        <hr />
                          <div class="row">
                            <label class="control-label col-md-2">Start Date</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_strt_date" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator8" ControlToValidate="txt_strt_date" ErrorMessage="Start Date is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>

                             <label class="control-label col-md-2">End Date</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_end_date" runat="server" CssClass="form-control datetime"></asp:TextBox>
                            </div>
                        </div>


                           <div class="modal fade" id="CostVal" role="dialog">
                               <div class="modal-dialog modal-dialog-center" >
                                <div class="modal-content">
                                  <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title">Costing Values :</h4>
                                  </div>
                                  <div class="modal-body">
                                        <asp:Repeater ID="rpt_cost" runat="server" OnItemDataBound="rpt_cost_OnItemDataBound">
                                          <ItemTemplate>
                                            <div class="form-group">
                                              <div class="col-lg-1"></div>
                                                <asp:Label ID="r_lbl" runat="server" class="col-lg-3 col-sm-3 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
                                                <div class="col-lg-6">
                                                     <asp:DropDownList Width="320px" ID="ddl_r_value" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                                     <asp:HiddenField ID="hid_field_name" runat="server" Value='<%# Eval("col_name") %>' ></asp:HiddenField>
                                                     <asp:HiddenField ID="hid_vs_name" runat="server" Value='<%# Eval("SEG_VALUE_SET") %>' ></asp:HiddenField>
                                                     <asp:HiddenField ID="hid_value" runat="server" Value='<%# Eval("VALUE") %>' ></asp:HiddenField>

                                                </div>
                                            </div>
                                            
                                           </ItemTemplate>  
                                       </asp:Repeater>
                                  </div>
                                 
                                  <div class="modal-footer">
                                  <asp:Button ID="btn_rpt_load" runat="server" CssClass="btn btn-default" Text="Save & Close" OnClick="btn_rpt_load_Click"></asp:Button>
                                  </div>
                                </div>
                               </div>
                            </div>


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