<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Recruitment_request.aspx.cs" Inherits="HRMS.Recruitment_request" %>
<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">
                        Recruitment Request

                         <div class="pull-right">
                            <asp:button text="Save" CssClass="btn btn-info" ID="btn_save" runat="server"  ValidationGroup="save"/>
                            <asp:button text="Back" CssClass="btn btn-info" ID="btn_cancel" runat="server" />

                                <input type="button" value="Clear" class="btn btn-info" onclick="clearTextBox()" />
                        </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 runat="server" ID="hid_request" />
                            <label class="control-label col-md-2">Request By</label>
                             <div class="col-md-4">
                                 <div class="input-group">
                                 <asp:TextBox  CssClass="form-control" ID="txt_req" 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_lov_req_by" type="button" runat="server" class="btn btn-white"><i class="fa fa-search"></i></button>
                                    </span>
                            </div>
                                </div>

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

                        <div class="row"style="padding-top:05px">
                            <label class="control-label col-md-2">Request by User</label>
                             <div class="col-md-4">
                                 <div class="input-group">
                                 <asp:TextBox  CssClass="form-control" ID="txt_req_by_user" 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="btn_lov_req_by_user" type="button" runat="server" class="btn btn-white"><i class="fa fa-search"></i></button>
                                    </span>
                            </div>
                                </div>


                            <label class="control-label col-md-2">(Requestee) Reference</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_req_ref" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>

                        <div class="row" style="padding-top:05px">
                              <label class="control-label col-md-2">Comment</label>
                            <div class="col-md-4">
                                <asp:TextBox ID="txt_coment" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>


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

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


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

                        <hr />


                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CssClass="table table-striped table-bordered table-hover" CellPadding="0">
                                <Columns>
                                <asp:TemplateField HeaderStyle-Width="10px">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hid_line" runat="server"/>
                                        <asp:HiddenField ID="hid_position" runat="server"/>
                                    </ItemTemplate>
                                </asp:TemplateField>    

                                <asp:TemplateField HeaderText="Position">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddl_position" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="rq1" ControlToValidate="ddl_status" ErrorMessage="Period Status is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Period No" HeaderStyle-Width="140px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_pr_no" runat="server" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq2" ControlToValidate="txt_pr_no" ErrorMessage="Period No. is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Job Title">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_year" runat="server" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq3" ControlToValidate="txt_year" ErrorMessage="Period Year is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Job Shift">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_name" runat="server" CssClass="form-control" ></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq4" ControlToValidate="txt_name" ErrorMessage="Period Name is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="No Of Vacancy">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_end_date" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq6" ControlToValidate="txt_end_date" ErrorMessage="End Date is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                     <asp:TemplateField HeaderText="Career Level">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_end_date" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq6" ControlToValidate="txt_end_date" ErrorMessage="End Date is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                     <asp:TemplateField HeaderText="Apply Before">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_end_date" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq6" ControlToValidate="txt_end_date" ErrorMessage="End Date is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                    <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="linkedit" Visible="false" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important;"></i></asp:LinkButton>
                                            <asp:linkbutton ID="lnkadd" CommandName="gAdd" runat="server" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'><i class="fa fa-plus" style="font-size:20px !important"></i></asp:linkbutton>
                                        </ItemTemplate>
                                            <ItemStyle Width="6%"></ItemStyle>
                                    </asp:TemplateField>
                                </Columns>
                                    <%--<FooterStyle CssClass="footerStyle" />
                                    <HeaderStyle CssClass="headerStyle" />
                                    <RowStyle CssClass="rowStyle" />--%>
                            </asp:GridView>



                    </div>
                </section>
            </div>
        </div>
    </div>
</asp:Content>
