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

<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">
                          Payments
                          <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">
                        <asp:HiddenField ID="hid_check" runat="server" />
                        <label class="control-label col-md-2">Type</label>
                        <div class="col-md-3">
                            <asp:DropDownList ID="ddl_type" runat="server" CssClass="form-control select2"></asp:DropDownList>
                            <asp:RequiredFieldValidator runat="server" ID="Reqadd" ControlToValidate="ddl_type" ErrorMessage="Type is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                        </div>


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

                        <div class="row" style="padding-top:05px">
                        <label class="control-label col-md-2">Trading Partner</label>
                        <div class="col-md-3">
                            <asp:DropDownList ID="ddl_partner" runat="server" CssClass="form-control select2" AutoPostBack="true" OnSelectedIndexChanged="ddl_partner_SelectedIndexChanged"></asp:DropDownList>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="ddl_partner" ErrorMessage="Trading Partner is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                        </div>


                        

                            
                        <label class="control-label col-md-2">Supplier Site</label>
                        <div class="col-md-3">
                            <asp:DropDownList ID="ddl_supplier_site" runat="server" CssClass="form-control select2"></asp:DropDownList>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="ddl_supplier_site" ErrorMessage="Site is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                        <hr />
                                    <div class="row">
                       
                                        <label class="control-label col-md-2">Payment Date</label>
                        <div class="col-md-3">
                           <asp:TextBox ID="txt_pay_date" runat="server" CssClass="form-control datetime"></asp:TextBox>
                        </div>


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

                    </div>


                         <div class="row" style="padding-top:05px">
                        <label class="control-label col-md-2">Payment Amount</label>
                        <div class="col-md-3">
                           <asp:TextBox ID="txt_pay_amt" runat="server" onkeypress="return numbersOnly(event)" CssClass="form-control" AutoPostBack="true" OnTextChanged="txt_pay_amt_TextChanged"></asp:TextBox>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="txt_pay_amt" ErrorMessage="Payment Amount is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                        </div>

                              <label class="control-label col-md-2">Payment Process Type</label>
                        <div class="col-md-3">
                            <asp:DropDownList ID="ddl_pay_proc_prof" runat="server" OnSelectedIndexChanged="ddl_pay_proc_prof_SelectedIndexChanged" AutoPostBack="true" CssClass="form-control select2"></asp:DropDownList>
                        </div>
                       
                    </div>
                        <hr />


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


                        <label class="control-label col-md-2">Payment Method</label>
                        <div class="col-md-3">
                            <asp:DropDownList ID="ddl_pay_method" runat="server" CssClass="form-control select2"></asp:DropDownList>
                        </div>
                    </div>


                        <div class="row" style="padding-top:05px">
                        <label class="control-label col-md-2">Payment Document</label>
                        <div class="col-md-3">
                              <asp:TextBox ID="txt_pay_doc" Enabled="false" runat="server" CssClass="form-control"></asp:TextBox>
                        </div>


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

                         <div class="pull-right">
                              <asp:Button text="Enter/Adjust Invoices" Visible="false" CssClass="btn btn-info" ID="btn_inv_payment" runat="server" OnClick="btn_inv_payment_Click"/>
                        </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>
