<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="True" CodeBehind="PAY_ORG_PAYMENT_METHODS.aspx.cs"
    Inherits="HRMS.PAY_ORG_PAYMENT_METHODS" Title="Cloud HR - Organizational Payment Method" %>

<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" style="padding-bottom:30px">
                           <span class="label label-primary">Organizational Payment Method</span>
                    <div class="pull-right">
                      <asp:Button ID="btnSave" class="btn btn-info" runat="server" Text="Save"  onclick="btnSave_Click" ValidationGroup="save" ></asp:Button>
                      <a href="#" id="aCancel" runat="server" class="btn btn-info">Bank</a>
                    </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">
                                           <div class="col-md-11 col-md-offset-1">
                                           <label class="control-label col-md-2">Business Group</label>
                                             <div class="col-md-4">
                                               <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>
                                           </div>
                                        </div>

                                         <div class="row">
                                          <div class="col-md-11 col-md-offset-1">
                                              <label class="control-label col-md-2">Name</label>
                                              <div class="col-md-4">
                                                 <asp:HiddenField ID="hid_ORG_PAYMENT_METHOD_ID" runat="server"></asp:HiddenField>
                                                  <asp:TextBox ID="txt_ORG_PAYMENT_METHOD_NAME" runat="server" CssClass="form-control"></asp:TextBox>
                                                  <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_ORG_PAYMENT_METHOD_NAME" ControlToValidate="txt_ORG_PAYMENT_METHOD_NAME" ErrorMessage="Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                              
                                              </div>
                                             <label class="control-label col-md-2">Type</label>
                                              <div class="col-md-3">
                                               <asp:DropDownList ID="ddl_PAYMENT_TYPE_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_PAYMENT_TYPE_ID" ControlToValidate="ddl_PAYMENT_TYPE_ID" ErrorMessage="Type is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                              </div>
                                           </div>
                                        </div>

                                         <div class="row">
                                           <div class="col-md-11 col-md-offset-1">
                                           <label class="control-label col-md-2">Currency</label>
                                             <div class="col-md-2">
                                                <asp:DropDownList ID="ddl_CURRENCY_CODE" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_CURRENCY_CODE" ControlToValidate="ddl_CURRENCY_CODE" ErrorMessage="Currency is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                             </div>
                                           </div>
                                        </div>
                                        <br />
                                         <div class="row">
                                             <div class="col-md-8 col-md-offset-2">
                                                <h4>Source Bank</h4>
                                                <hr />
                                                 <div class="row">
                                                  <div class="col-md-10">
                                                    <label class="control-label col-md-4">Bank</label>
                                                     <div class="col-md-8">
                                                         <asp:DropDownList ID="ddl_BANK_ID" runat="server" CssClass="form-control select2" 
                                                             AutoPostBack="True" onselectedindexchanged="ddl_BANK_ID_SelectedIndexChanged"></asp:DropDownList>
                                                         <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BANK_ID" ControlToValidate="ddl_BANK_ID" ErrorMessage="Bank is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                     </div>
                                                  </div>
                                                </div>
                                                 <div class="row">
                                                  <div class="col-md-10">
                                                    <label class="control-label col-md-4">Branch</label>
                                                     <div class="col-md-8">
                                                      <asp:DropDownList ID="ddl_BRANCH_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                                      <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BRANCH_ID" ControlToValidate="ddl_BRANCH_ID" ErrorMessage="Branch is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                     </div>
                                                  </div>
                                                </div>
                                                 <div class="row">
                                                  <div class="col-md-10">
                                                    <label class="control-label col-md-4">Account Name</label>
                                                     <div class="col-md-8">
                                                       <asp:TextBox ID="txt_ACCOUNT_NAME" runat="server"  CssClass="form-control"></asp:TextBox>
                                                       <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_ACCOUNT_NAME" ControlToValidate="txt_ACCOUNT_NAME" ErrorMessage="Account Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                     </div>
                                                  </div>
                                                </div>
                                                 <div class="row">
                                                  <div class="col-md-10">
                                                    <label class="control-label col-md-4">Account Number</label>
                                                     <div class="col-md-8">
                                                        <asp:TextBox ID="txt_ACCOUNT_NUMBER" runat="server" CssClass="form-control"></asp:TextBox>
                                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_ACCOUNT_NUMBER" ControlToValidate="txt_ACCOUNT_NUMBER" ErrorMessage="Account Number is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                     </div>
                                                  </div>
                                                </div>
                                                <hr />
                                             </div>
                                         </div>

                                         <div class="row">
                                           <div class="col-md-8 col-md-offset-2">
                                             <label class="control-label col-md-2">Date From</label>
                                             <div class="col-md-4">
                                                <asp:TextBox ID="txt_EFFECTIVE_START_DATE" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_EFFECTIVE_START_DATE" ControlToValidate="txt_EFFECTIVE_START_DATE" ErrorMessage="Date From is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                             </div>
                                             <label class="control-label col-md-2">Date To</label>
                                             <div class="col-md-4">
                                                <asp:TextBox ID="txt_EFFECTIVE_END_DATE" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                             </div>
                                           </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>
                </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>
