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

<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" style="padding-bottom:30px">
                           <span class="label label-primary">Recruitment Plan</span>
                            

                            <div class="pull-right">
                                <asp:button text="Save" CssClass="btn btn-info" ID="btn_save" runat="server"
                                    ValidationGroup="save" onclick="btn_save_Click" />
                                <asp:button text="Back" CssClass="btn btn-info" ID="btn_cancel" runat="server"
                                    onclick="btn_cancel_Click" />
                                <asp:button text="Clear" CssClass="btn btn-info" ID="btn_clear" runat="server"
                                    onclick="btn_clear_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-2">Bussiness Unit</label>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_Busunit" runat="server" CssClass="form-control">

                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_Busunit" controltovalidate="ddl_Busunit"
                                        errormessage="Bussiness Unit is Required!" />
                                </div>
                            </div>

                            <div class="row" style="padding-top:05px">
                                <asp:HiddenField runat="server" ID="hid_ReqplanId" />
                                <%--<asp:HiddenField runat="server" ID="hid_requisition" />--%>
                             <label class="col-md-2 control-label">Plan Name</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_pln_name" runat="server" CssClass="form-control"></asp:TextBox>
                                </div>

                                <label class="control-label col-md-2">Plan Date</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_PlanDate" runat="server" CssClass="form-control datetime">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_PlanDate" controltovalidate="txt_PlanDate"
                                        errormessage="Plan Date is Required!" />
                                </div>
                            </div>

                            <div class="row" style="padding-top:05px">

                                <label class="control-label col-md-2">Estimated Start Date</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_estimated" runat="server" CssClass="form-control datetime">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_Estimate" controltovalidate="txt_estimated"
                                        errormessage="Estimate Start Date is Required!" />
                                </div>



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

                            <div class="row" style="padding-top:05px">

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



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


                            <div class="row" style="padding-top:05px">
                                <label class="control-label col-md-2">Remarks</label>
                                <div class="col-md-8">
                                    <asp:TextBox ID="txt_remarks" runat="server" CssClass="form-control"
                                        TextMode="MultiLine"></asp:TextBox>
                                </div>

                            </div>

                            <hr />
                           <updatepanel>
                            <asp:HiddenField runat="server" ID="hidTAB" Value="0" />
                         
                            <ul class="nav nav-tabs">
                                <li class="active"><a data-toggle="tab" id="Plan_click" href="#Plan" aria-expanded="true">Plan</a></li>
                               <%-- <li class="inactive"><a data-toggle="tab" id="Action_click" href="#Action" aria-expanded="false">Action</a></li>
                                <li class="inactive"><a data-toggle="tab"id="Factor_click" href="#Factor" aria-expanded="false">Factor</a></li>--%>
                                <li class="inactive"><a data-toggle="tab" id="Interview_click" href="#Interview" aria-expanded="false">Interview</a></li>
                                <%--<li class="inactive"><a data-toggle="tab" id="Instrument_click" href="#Instrument" aria-expanded="false">Instrument</a>--%>
                                </li>
                            </ul>


                           <div class="tab-content">
                            <div id="Plan" class="tab-pane fade active in">
                                    <br />

                                <div style="width:102%;height:250px;overflow:scroll;">
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        OnRowCommand="GridView1_RowCommand">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_line_id" runat="server"  Value='<%#Bind("REC_PLAN_LINE_ID")%>'  />
                                                    <asp:HiddenField ID="hid_Plan_id" runat="server"
                                                        Value='<%#Bind("REC_PLAN_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_PosiID" runat="server"
                                                        Value='<%#Bind("POSITION_ID")%>' />
                                                    <asp:HiddenField ID="hid_CityID" runat="server"
                                                        Value='<%#Bind("CITY_ID")%>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Request" ControlStyle-Width="250px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:HiddenField ID="hid_requestID" runat="server"
                                                            Value='<%#Bind("REQUEST_HEADER_ID")%>' />
                                                        <asp:TextBox CssClass="form-control" ID="txt_ReqId"
                                                            runat="server" Text='<%#Bind("RequestName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Req" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Req_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Position" ControlStyle-Width="250px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" runat="server"
                                                        Text='<%#Bind("Position") %>' CssClass="form-control"
                                                        Enabled="false"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Positions" controltovalidate="txt_Pos"
                                                        errormessage="Positions is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="City"  ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" runat="server" Text='<%#Bind("City") %>'
                                                        CssClass="form-control" Enabled="false"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_City" controltovalidate="txt_City"
                                                        errormessage="City is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             <asp:TemplateField HeaderText="Salary From" ControlStyle-Width="100px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_salary_rng_frm" runat="server" Text='<%# Bind("SALARY_RANGE_FROM") %>'  CssClass="form-control"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%# "add1" + Container.DataItemIndex %>' runat="server" id="req_sal_rng" controltovalidate="txt_salary_rng_frm" errormessage="Salary Range From is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                              <asp:TemplateField HeaderText="Salary To" ControlStyle-Width="100px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_salary_rng_to" runat="server" Text='<%# Bind("SALARY_RANGE_TO") %>'  CssClass="form-control"></asp:TextBox>
                                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%# "add1" + Container.DataItemIndex %>' runat="server" id="req_sal_to" controltovalidate="txt_salary_rng_to" errormessage="Salary Range To is Required!" />--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>


                                            <asp:TemplateField HeaderText="Duration"  ControlStyle-Width="100px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_duration" runat="server" Text='<%# Bind("DURATION") %>'  CssClass="form-control"></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             <asp:TemplateField HeaderText="Description"  ControlStyle-Width="250px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_desc" runat="server" TextMode="MultiLine" Height="60px" Text='<%# Bind("DESCRIPTION") %>'  CssClass="form-control"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%# "add1" + Container.DataItemIndex %>' runat="server" id="req_desc" controltovalidate="txt_desc" errormessage="Description To is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Start Date" ControlStyle-Width="110px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_ESTIMATEDStart" runat="server"
                                                        Text='<%#Bind("ESTIMATED_START_DATE") %>'
                                                        CssClass="form-control datetime"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_EstimatedstartDate"
                                                        controltovalidate="txt_ESTIMATEDStart"
                                                        errormessage="Estimated Start Date is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="End Date"  ControlStyle-Width="110px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_ESTIMATEDEnd" runat="server"
                                                        Text='<%#Bind("ESTIMATED_END_DATE") %>'
                                                        CssClass="form-control datetime"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_EstimateenddDate"
                                                        controltovalidate="txt_ESTIMATEDEnd"
                                                        errormessage="Estimated End Date is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Action" HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="linkedit" runat="server" Visible="false"
                                                        CommandName="gEdit"><i class="fa fa-pencil"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="lnk_add"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                     


                                                <%--      <a id="Fac" href="FactorDetail.aspx?Plan_Header=<%# HRMS.Global.Encrypt(hid_ReqplanId.Value.ToString())+"&Request_ID="+HRMS.Global.Encrypt(Eval("REQUEST_HEADER_ID").ToString()) + "&Req_Name="+HRMS.Global.Encrypt(Eval("RequestName").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(ddl_Busunit.SelectedValue.ToString())+"&pos_id="+HRMS.Global.Encrypt(Eval("POSITION_ID").ToString())+"&pos_name="+ HRMS.Global.Encrypt(Eval("Position").ToString())+"&City_id="+HRMS.Global.Encrypt(Eval("CITY_ID").ToString())+"&City_name="+ HRMS.Global.Encrypt(Eval("City").ToString())%>">Factor</a>

                                                    <a id="Ins" href="InstrumentDetail.aspx?Plan_Header=<%# HRMS.Global.Encrypt(hid_ReqplanId.Value.ToString())+"&Request_ID="+HRMS.Global.Encrypt(Eval("REQUEST_HEADER_ID").ToString()) + "&Req_Name="+HRMS.Global.Encrypt(Eval("RequestName").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(ddl_Busunit.SelectedValue.ToString())+"&pos_id="+HRMS.Global.Encrypt(Eval("POSITION_ID").ToString())+"&pos_name="+ HRMS.Global.Encrypt(Eval("Position").ToString())+"&City_id="+HRMS.Global.Encrypt(Eval("CITY_ID").ToString())+"&City_name="+ HRMS.Global.Encrypt(Eval("City").ToString())%>">Instrument</a>--%>

                                                   <%-- <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                        CommandName="gDelete" runat="server"
                                                        OnClientClick="return confirm('Are you sure to delete?')">
                                                        <i class="fa fa-trash" style="font-size:20px !important"></i>
                                                    </asp:linkbutton>--%>
                                                    
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField ItemStyle-Width="12%">
                                                <ItemTemplate>
                                                    
                                                    <a id="asg"  href="ActionDetail.aspx?Plan_Header=<%# HRMS.Global.Encrypt(hid_ReqplanId.Value.ToString())+"&Request_ID="+HRMS.Global.Encrypt(Eval("REQUEST_HEADER_ID").ToString()) + "&Req_Name="+HRMS.Global.Encrypt(Eval("RequestName").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(ddl_Busunit.SelectedValue.ToString())+"&pos_id="+HRMS.Global.Encrypt(Eval("POSITION_ID").ToString())+"&pos_name="+ HRMS.Global.Encrypt(Eval("Position").ToString())+"&City_id="+HRMS.Global.Encrypt(Eval("CITY_ID").ToString())+"&City_name="+ HRMS.Global.Encrypt(Eval("City").ToString())+"&rec_lineID="+ HRMS.Global.Encrypt(Eval("REC_PLAN_LINE_ID").ToString())%>">Action</a>
                                                    
                                                    <a id="Ins" href="InstrumentDetail.aspx?Plan_Header=<%# HRMS.Global.Encrypt(hid_ReqplanId.Value.ToString())+"&Request_ID="+HRMS.Global.Encrypt(Eval("REQUEST_HEADER_ID").ToString()) + "&Req_Name="+HRMS.Global.Encrypt(Eval("RequestName").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(ddl_Busunit.SelectedValue.ToString())+"&pos_id="+HRMS.Global.Encrypt(Eval("POSITION_ID").ToString())+"&pos_name="+ HRMS.Global.Encrypt(Eval("Position").ToString())+"&City_id="+HRMS.Global.Encrypt(Eval("CITY_ID").ToString())+"&City_name="+ HRMS.Global.Encrypt(Eval("City").ToString())+"&rec_lineID="+ HRMS.Global.Encrypt(Eval("REC_PLAN_LINE_ID").ToString())%>">Instrument</a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle CssClass="footerStyle" />
                                        <HeaderStyle CssClass="headerStyle" />
                                        <RowStyle CssClass="rowStyle" />
                                    </asp:GridView>
                                    </div>
                                    <br />
                                </div>
                            
                            <div id="Action" class="tab-pane fade">
                                    <br />
                                <div style="width:102%;height:250px;overflow:scroll;">
                                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        OnRowCommand="GridView2_RowCommand" OnRowDataBound="GridView2_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_Actionline_id" runat="server" Value='<%#Bind("RECRUITMENT_PLAN_ACTION_ID")%>' />
                                                    <asp:HiddenField ID="hid_Plan_id" runat="server"
                                                        Value='<%#Bind("RECRUITMENT_PLAN_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_Reqid" runat="server"
                                                        Value='<%#Bind("REQUEST_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_Acion_ID" runat="server"
                                                        Value='<%#Bind("ACTION_ID")%>' />
                                                    <asp:HiddenField ID="hid_PosiID" runat="server"
                                                        Value='<%#Bind("POSITION_ID")%>' />
                                                    <asp:HiddenField ID="hid_CityID" runat="server"
                                                        Value='<%#Bind("CITY_ID")%>' />
                                                    <asp:HiddenField ID="hid_NextAction" runat="server"
                                                        Value='<%#Bind("NEXT_ACTION_ID")%>' />
                                                     <asp:HiddenField ID="hid_evelID_Action" runat="server"
                                                            Value='<%#Bind("EVAL_HEADER_ID")%>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Request" HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <div class="input-group">                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_ReqId"
                                                            runat="server" Text='<%#Bind("RequestName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_ReqAction" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_ReqAction_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Position" HeaderStyle-Width="140px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" runat="server"
                                                        Text='<%#Bind("Position") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Positions" controltovalidate="txt_Pos"
                                                        errormessage="Positions is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="City">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" runat="server" Text='<%#Bind("City") %>'
                                                        CssClass="form-control"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_City" controltovalidate="txt_City"
                                                        errormessage="City is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Totalmarks ">
                                                <ItemTemplate>


                                                    <asp:TextBox CssClass="form-control" ID="txt_Totalmarks"
                                                        runat="server" Text='<%#Bind("TOTAL_MARKS") %>'>
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Totalmarks"
                                                        controltovalidate="txt_Totalmarks"
                                                        errormessage="Total Marks is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Evaluation">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                       
                                                        <asp:TextBox CssClass="form-control" ID="txt_evalName"
                                                            runat="server" Text='<%#Bind("EvalName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                            runat="server" id="Req_evalName" controltovalidate="txt_evalName"
                                                            errormessage="Evaluation is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Eval" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Eval_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Action" runat="server"
                                                        Text='<%#Bind("Action") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Action" controltovalidate="txt_Action"
                                                        errormessage="Action is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="PassingMarks ">
                                                <ItemTemplate>


                                                    <asp:TextBox CssClass="form-control" ID="txt_PassingMarks"
                                                        runat="server" Text='<%#Bind("PASSING_MARKS") %>'>
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_PassingMarks"
                                                        controltovalidate="txt_PassingMarks"
                                                        errormessage="Passing Marks is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                           

                                            <asp:TemplateField HeaderText="Date From">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_DATE_FROM" runat="server"
                                                        Text='<%#Bind("DATE_FROM") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_FROM"
                                                        controltovalidate="txt_DATE_FROM"
                                                        errormessage="DATE FROM is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Date To">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_DATE_TO" runat="server"
                                                        Text='<%#Bind("DATE_TO") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_TO" controltovalidate="txt_DATE_TO"
                                                        errormessage="DATE TO is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Next Action">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddl_NextAction" runat="server"
                                                        CssClass="form-control"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_NextAction"
                                                        controltovalidate="ddl_NextAction"
                                                        errormessage="Next Action is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             <asp:TemplateField HeaderText="Remarks">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Remarks" runat="server"
                                                        Text='<%#Bind("Remarks") %>' CssClass="form-control ">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Remarks" controltovalidate="txt_Remarks"
                                                        errormessage="Remarks is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action" ItemStyle-Width="5%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="linkedit" runat="server" Visible="false"
                                                        CommandName="gEdit"><i class="fa fa-pencil"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="lnk_add"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                        CommandName="gDelete" runat="server"
                                                        OnClientClick="return confirm('Are you sure to delete?')">
                                                        <i class="fa fa-trash" 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>
                                    <br />

                                </div>
                         
                            <div id="Factor" class="tab-pane fade ">
                                    <br />

                                    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        OnRowCommand="GridView3_RowCommand" OnRowDataBound="GridView3_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_REQUISITION_FACTOR_ID" runat="server" Value='<%#Bind("REQUISITION_FACTOR_ID")%>' />
                                                    <asp:HiddenField ID="hid_Plan_id" runat="server"
                                                        Value='<%#Bind("REC_PLAN_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_Acion_ID" runat="server"
                                                        Value='<%#Bind("Action_ID")%>' />
                                                    <asp:HiddenField ID="hid_PosiID" runat="server"
                                                        Value='<%#Bind("POSITION_ID")%>' />
                                                    <asp:HiddenField ID="hid_CityID" runat="server"
                                                        Value='<%#Bind("CITY_ID")%>' />
                                                    <asp:HiddenField ID="hid_FactorID" runat="server"
                                                        Value='<%#Bind("FACTOR_ID")%>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Request">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:HiddenField ID="hid_requestID" runat="server"
                                                            Value='<%#Bind("REQUESITION_HEADER_ID")%>' />
                                                        <asp:TextBox CssClass="form-control" ID="txt_ReqId"
                                                            runat="server" Text='<%#Bind("RequestName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Req_Factor" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Req_Factor_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Position" HeaderStyle-Width="140px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" runat="server"
                                                        Text='<%#Bind("Position") %>' CssClass="form-control"
                                                       ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Positions" controltovalidate="txt_Pos"
                                                        errormessage="Positions is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="City">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" runat="server" Text='<%#Bind("City") %>'
                                                        CssClass="form-control" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" id="req_City" controltovalidate="txt_City"
                                                        errormessage="City is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                          

                                            <asp:TemplateField HeaderText="Evaluation">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:HiddenField ID="hid_evelID_Factor" runat="server"
                                                            Value='<%#Bind("Eval_HEADER_ID")%>' />
                                                        <asp:TextBox CssClass="form-control" ID="txt_evalName"
                                                            runat="server" Text='<%#Bind("EvalName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Eval" controltovalidate="txt_evalName"
                                                            errormessage="Evaluation is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Eval_Factor" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Eval_Factor_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Action" runat="server"
                                                        Text='<%#Bind("Action") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Action" controltovalidate="txt_Action"
                                                        errormessage="Action is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                              <asp:TemplateField HeaderText="Totalmarks ">
                                                <ItemTemplate>


                                                    <asp:TextBox CssClass="form-control" ID="txt_Totalmarks"
                                                        runat="server" Text='<%#Bind("TOTAL_MARKS") %>'>
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Totalmarks"
                                                        controltovalidate="txt_Totalmarks"
                                                        errormessage="Total Marks is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="PassingMarks ">
                                                <ItemTemplate>


                                                    <asp:TextBox CssClass="form-control" ID="txt_PassingMarks"
                                                        runat="server" Text='<%#Bind("PASSING_MARKS") %>'>
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" id="req_PassingMarks"
                                                        controltovalidate="txt_PassingMarks"
                                                        errormessage="Passing Marks is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>
                                             
                                            <asp:TemplateField HeaderText="Factor">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddl_Factor" runat="server"
                                                        CssClass="form-control"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" id="req_ddl_Factor"
                                                        controltovalidate="ddl_Factor"
                                                        errormessage="Factor is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action" ItemStyle-Width="5%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="linkedit" runat="server" Visible="false"
                                                        CommandName="gEdit"><i class="fa fa-pencil"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="lnk_add"
                                                        ValidationGroup='<%# "add3" + Container.DataItemIndex %>'
                                                        runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                        CommandName="gDelete" runat="server"
                                                        OnClientClick="return confirm('Are you sure to delete?')">
                                                        <i class="fa fa-trash" 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>
                                    <br />

                                </div>
                            
                            <div id="Instrument" class="tab-pane fade ">
                                    <br />

                                    <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        OnRowCommand="GridView4_RowCommand" RowDataBound="GridView4_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="INSTRUMENT_LINE_ID" runat="server" />
                                                    <asp:HiddenField ID="hid_Plan_id" runat="server"
                                                        Value='<%#Bind("REC_PLAN_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_Reqid" runat="server"
                                                        Value='<%#Bind("REQUESITION_HEADER_ID")%>' />
                                                    
                                                    <asp:HiddenField ID="hid_PosiID" runat="server"
                                                        Value='<%#Bind("POSITION_ID")%>' />
                                                    <asp:HiddenField ID="hid_CityID" runat="server"
                                                        Value='<%#Bind("CITY_ID")%>' />
                                                   
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Request">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:HiddenField ID="hid_requestID" runat="server"
                                                            Value='<%#Bind("REQUESITION_HEADER_ID")%>' />
                                                        <asp:TextBox CssClass="form-control" ID="txt_ReqId"
                                                            runat="server" Text='<%#Bind("RequestName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Req" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Req_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Position" HeaderStyle-Width="140px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" runat="server"
                                                        Text='<%#Bind("Position") %>' CssClass="form-control"
                                                        Enabled="false"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Positions" controltovalidate="txt_Pos"
                                                        errormessage="Positions is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="City">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" runat="server" Text='<%#Bind("City") %>'
                                                        CssClass="form-control" Enabled="false"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_City" controltovalidate="txt_City"
                                                        errormessage="City is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Date From">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_DATE_FROM" runat="server"
                                                        Text='<%#Bind("DATE_FROM") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_FROM"
                                                        controltovalidate="txt_DATE_FROM"
                                                        errormessage="DATE FROM is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Date To">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_DATE_TO" runat="server"
                                                        Text='<%#Bind("DATE_TO") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_TO" controltovalidate="txt_DATE_TO"
                                                        errormessage="DATE TO is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Publish Date">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_PublishDate" runat="server"
                                                        Text='<%#Bind("PUBLISH_DATE") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Publish" controltovalidate="txt_PublishDate"
                                                        errormessage="Publish Date is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action" ItemStyle-Width="5%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="linkedit" runat="server" Visible="false"
                                                        CommandName="gEdit"><i class="fa fa-pencil"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="lnk_add"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                        CommandName="gDelete" runat="server"
                                                        OnClientClick="return confirm('Are you sure to delete?')">
                                                        <i class="fa fa-trash" 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>
                                    <br />

                                </div>
                         
                            <div id="Interview" class="tab-pane fade">
                                    <br />    
                                 <div style="width:102%;height:250px;overflow:scroll;">
                                    <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" 
                                      CssClass="table table-striped table-bordered table-hover" CellPadding="0" Width="2000px" OnRowCommand="GridView5_RowCommand" OnRowDataBound="GridView5_RowDataBound">
                                <Columns>
                                <asp:TemplateField HeaderStyle-Width="10px">
                                    <ItemTemplate>                                        
                                        <asp:HiddenField ID="hid_interview" runat="server" Value='<%#Bind("INTERVIEWER_LINE_ID")%>'/>
                                        <asp:HiddenField ID="hid_position" runat="server" Value='<%#Bind("POSITION_ID")%>'/>
                                        <asp:HiddenField ID="hid_city" runat="server" Value='<%#Bind("CITY_ID")%>'/>
                                        <asp:HiddenField ID="hid_action" runat="server" Value='<%#Bind("ACTION_ID")%>'/>
                                        <asp:HiddenField ID="hid_member" runat="server" Value='<%#Bind("MEMBER_TYPE")%>'/>
                                        <asp:HiddenField ID="hid_vendor" runat="server" Value='<%#Bind("VENDOR_ID")%>'/>
                                        <asp:HiddenField ID="hid_role" runat="server" Value='<%#Bind("ROLE_TYPE")%>'/>
                                        <asp:HiddenField ID="hid_Reqid" runat="server" Value='<%#Bind("REQUESITION_HEADER_ID")%>' />
                                        <asp:HiddenField ID="hid_PersonId" runat="server" Value='<%#Bind("Person_ID")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>    

                                <asp:TemplateField HeaderText="Request" ControlStyle-Width="250px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_ReqId"
                                                            runat="server" Text='<%#Bind("RequestName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add5" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Req_Interview" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Req_Interview_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                <asp:TemplateField HeaderText="Position" ControlStyle-Width="250px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" runat="server"
                                                        Text='<%#Bind("Position") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add5" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Positions" controltovalidate="txt_Pos"
                                                        errormessage="Positions is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                <asp:TemplateField HeaderText="City" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" runat="server" Text='<%#Bind("City") %>'
                                                        CssClass="form-control" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add5" + Container.DataItemIndex %>'
                                                        runat="server" id="req_City" controltovalidate="txt_City"
                                                        errormessage="City is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                 <asp:TemplateField HeaderText="Action" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Action" runat="server"
                                                        Text='<%#Bind("Action") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add5" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Action" controltovalidate="txt_Action"
                                                        errormessage="Action is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                <asp:TemplateField HeaderText="Member Type" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddl_member" runat="server" CssClass="form-control select2" AutoPostBack="true" OnSelectedIndexChanged="ddl_member_SelectedIndexChanged"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="req4" ControlToValidate="ddl_member" ErrorMessage="Member Type is required." setfocusonerror="true" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Role Type" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddl_role" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="req6" ControlToValidate="ddl_role" ErrorMessage="Role Type is required." setfocusonerror="true" ValidationGroup = '<%# "add3_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Employee" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:TextBox CssClass="form-control" ID="txt_Empname"
                                                            runat="server" Text='<%#Bind("EMP_NAME") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add5" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Empname"
                                                            controltovalidate="txt_Empname"
                                                            errormessage="Employee is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Employee" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Employee_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Vendor" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddl_vendor" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="req5" ControlToValidate="ddl_vendor" ErrorMessage="Vendor is required." setfocusonerror="true" ValidationGroup = '<%# "add3_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                               

                                <asp:TemplateField HeaderText="Name Of External" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_nameofext" runat="server" Text='<%#Bind("NAME_OF_EXTERNAL") %>' CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="req7" ControlToValidate="txt_nameofext" ErrorMessage="Name Of External is required." setfocusonerror="true" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Title Of External" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_titleofext" runat="server" Text='<%#Bind("TITLE_OF_EXTERNAL") %>' CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="req8" ControlToValidate="txt_titleofext" ErrorMessage="Title Of External is required." setfocusonerror="true" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Email Of External" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_emailofext" runat="server" Text='<%#Bind("EMAIL_OF_EXTERNAL") %>' CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="req9" ControlToValidate="txt_emailofext" ErrorMessage="Email Of External is required." setfocusonerror="true" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Phone Of External" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_phoneofext" runat="server" Text='<%#Bind("PHONE_OF_EXTERNAL") %>' CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="req10" ControlToValidate="txt_phoneofext" ErrorMessage="Phone Of External is required." setfocusonerror="true" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Cell Of External" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_cellofext" runat="server" Text='<%#Bind("CELL_OF_EXTERNAL") %>' CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="req11" ControlToValidate="txt_cellofext" ErrorMessage="Cell Of External is required." setfocusonerror="true" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Action" HeaderStyle-Width="25px" ItemStyle-Width="25px">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="linkedit" runat="server"
                                                                    Visible="false" CommandName="gEdit"><i
                                                                        class="fa fa-pencil"
                                                                        style="font-size:20px !important;"></i>
                                                                </asp:LinkButton>
                                                                <asp:LinkButton ID="lnk_add" ValidationGroup = '<%# "add5_" + Container.DataItemIndex %>'
                                                                    runat="server" CommandName="gadd"><i
                                                                        class="fa fa-plus"
                                                                        style="font-size:20px !important;"></i>
                                                                </asp:LinkButton>
                                                                <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                                    CommandName="gDelete" runat="server"
                                                                    OnClientClick="return confirm('Are you sure to delete?')">
                                                                    <i class="fa fa-trash"
                                                                        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>

                                    <hr />
                              </div>

                        </div>
                               </updatepanel>
                    </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 src="Scripts/jquery-2.1.3.min.js"></script>
    <script src="Scripts/bootstrap.js"></script>

    <script>
        $('.select2').select2();
        $('.select2').select2({ dropdownAutoWidth: true });
        $('.select2').select2({ width: '100%' });

        $(document).ready(function () {

            var tabId = document.getElementById('<%= hidTAB.ClientID%>').value;
            if (tabId == "5") {
                $('#myTabs a[href="#Instrument"]').tab('show');
                //alert(tabId);
                //$('.nav-tabs a[href="#Location"]').tab('show');
            }
            else if (tabId == "4") {
                $('#myTabs a[href="#Interview"]').tab('show');
                //alert(tabId);
            }
            else if (tabId == "3") {
                $('#myTabs a[href="#Factor"]').tab('show');
                //alert(tabId);
            }
            else if (tabId == "2") {
                $('#myTabs a[href="#Action"]').tab('show');
                //alert(tabId);
            }
            else {
                $('#myTabs a[href="#Plan"]').tab('show');
                //alert(tabId);
            }

            //$('.nav-tabs a[href="#' + tabId + '"]').tab('show');
            //$('#myTabs a[href="' + tab + '"]').tab('show');

            //$("btn_lov_ReqPlan").click(function ()){
            //    $('#myTabs a[href="#Action"]').tab('show');
            //    alert('Yes Action');
            //});

        });

        $("#Plan_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "1";
            //var x = document.getElementById('<%= hidTAB.ClientID%>').value;           
            //alert(x);
        });

        $("#Action_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "2";
            //var y = document.getElementById('<%= hidTAB.ClientID%>').value;
            //alert(y);
        });

        $("#Factor_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "3";
            //var z = document.getElementById('<%= hidTAB.ClientID%>').value;
            //alert(z);
        });

        $("#Interview_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "4";
             //var z = document.getElementById('<%= hidTAB.ClientID%>').value;
            //alert(z);
        });

        $("#Instrument_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "5";
             //var z = document.getElementById('<%= hidTAB.ClientID%>').value;
            //alert(z);
        });

        //$("btn_lov_ReqPlan").click(function ()){
        //        $('#myTabs a[href="#Action"]').tab('show');
        //        alert('Yes Action');
        //});


        // Open & Close Modal Popup \\

        //function openModal() {
        //    $('[id*=myModal2]').modal('show');
        //}  

        //function closeModal() {
        //    $('[id*=myModal2]').modal('hide');
        //} 

        // Open & Close Modal Popup \\

        //$("#lnkpopup").click(function () {
        //    // show Modal
        //    //$('[id*=myModal2]').modal('show');
        //});

    </script>
</asp:Content>
