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

<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">
                        Cheque Book
                          <div class="pull-right">
                           <asp:Button ID="btn_save" runat="server" CssClass="btn btn-info" Text="Save" OnClick="btn_save_Click" ValidationGroup="save" />
                              <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_chq" runat="server" />
                            <label class="col-md-2 control-label">Name</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_name" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="Reqadd" ControlToValidate="txt_name" ErrorMessage="Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                            </div>

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



                                  <div class="row" style="padding-top:10px">
                            <div class="col-md-3 col-md-offset-2">
                                <asp:CheckBox ID="chk_attach" runat="server" onclick="ShowTextBox(this)" CssClass="checkbox" Text="Attached Remittance Stub" />
                                    

                            </div>

                             <label class="col-md-2 control-label" id="lbl_remt" runat="server" style="display:none" >No of Lines per Remittance Stub</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_remt" style="display:none;text-align:right" onkeypress="return numbersOnly(event)"  runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>

                        
                                  <div class="row" style="padding-top:10px">
                                      <label class="col-md-2 control-label">No of Setup Document</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_setup_doc" runat="server" style="text-align:right" onkeypress="return numbersOnly(event)" CssClass="form-control"></asp:TextBox>
                            </div>

                             <label class="col-md-2 control-label">Format</label>
                            <div class="col-md-3">

                                    <div class="input-group">
                                        <asp:HiddenField ID="hid_format" runat="server" />
                                        <asp:TextBox ID="txt_format" runat="server" CssClass="form-control"></asp:TextBox>
                                     <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="txt_format" ErrorMessage="Format is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                          <span class="input-group-btn">
                                                            <button id="btn_lov_format" type="button" runat="server" class="btn btn-white" onserverclick="btn_lov_format_ServerClick">
                                                            <i class="fa fa-search"></i></button>
                                                          </span>
                                    </div>
                                
                            </div>
                        </div>


                         <div class="row" style="padding-top:10px">
                            <div class="col-md-4 col-md-offset-2">
                                <asp:CheckBox ID="chk_manual_issue" runat="server" CssClass="checkbox" Text="Restrict Use To Manually Issued Payments" />
                            </div>

                             
                        </div>


                           <div class="row" style="padding-top:10px">
                               <label class="col-md-2 control-label">End Date</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_end_date" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>

                             <label class="col-md-2 control-label">Payment Doc Category</label>
                            <div class="col-md-3">
                                 <div class="input-group">
                                        <asp:HiddenField ID="hid_pay_doc_cat" runat="server" />
                                        <asp:TextBox ID="txt_pay_doc_cat" runat="server" onkeypress="return numbersOnly(event)" CssClass="form-control"></asp:TextBox>
                                          <span class="input-group-btn">
                                                            <button id="lov_pay_doc_cat" type="button" runat="server" class="btn btn-white" onserverclick="lov_pay_doc_cat_ServerClick">
                                                            <i class="fa fa-search"></i></button>
                                                          </span>
                                    </div>
                            </div>
                        </div>

                        <hr />
                          <div class="row">
                            <label class="col-md-3 control-label">First Available Document Number</label>
                            <div class="col-md-2">
                                <asp:TextBox ID="txt_f_doc_no" onkeypress="return numbersOnly(event)" style="text-align:right" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="txt_f_doc_no" ErrorMessage="First Available Document Number." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                            </div>

                             <label class="col-md-3 control-label">Last Available Document Number</label>
                            <div class="col-md-2">
                                <asp:TextBox ID="txt_l_doc_no" runat="server" onkeypress="return numbersOnly(event)" style="text-align:right" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>

                    </div>
                </section>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function ShowTextBox(chk) {
            var textbox = document.getElementById('<%=txt_remt.ClientID %>');
            var lbl_remt = document.getElementById('<%=lbl_remt.ClientID%>')
            textbox.style.display = chk.checked ? "block" : "none";
            lbl_remt.style.display = chk.checked ? "block" : "none";
        }
    </script>
</asp:Content>
