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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="scriptManager" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
    <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        <asp:Label ID="lbl_header" runat="server" CssClass="control-label"></asp:Label>
                    </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">Action</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_action" AutoPostBack="true" OnSelectedIndexChanged="ddl_action_SelectedIndexChanged" runat="server" CssClass="form-control select2">
                                </asp:DropDownList>
                            </div>
                        </div>


                        <div class="row">
                            <label class="control-label col-md-2">Position</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_pos" runat="server" CssClass="form-control select2">
                                    <asp:ListItem Text="--- Select ---" Value="0"></asp:ListItem>
                                </asp:DropDownList>
                            </div>


                            <label class="control-label col-md-2">Source Type</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_src_type" runat="server" CssClass="form-control select2">
                                    <asp:ListItem Text="--- Select ---" Value="0"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>


                        <div class="row">
                            <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-2">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 />

                         <%--For CV Filtration--%>
                        <div class="row">
                                <div class="col-md-10 col-md-offset-1">
                                 <asp:Repeater ID="rpt_candidate_dtl" runat="server" OnItemDataBound="rpt_candidate_dtl_ItemDataBound">
                                     <HeaderTemplate>
                                    
                                     <div class="table-responsive">
                                       <table class="table table-hover  table-bordered">
                                           <tr>
                                            <td style="width:11.5% !important;background-color:#2085B5;color:white">
                                              Source type
                                            </td>
                                            <td style="width:12.4% !important;background-color:#2085B5;color:white">
                                              Candidate Name
                                            </td>

                                            <td style="width:13% !important;background-color:#2085B5;color:white">
                                              Position
                                            </td>


                                             <td style="width:25% !important;background-color:#2085B5;color:white">
                                              Availability / Notice Period
                                            </td>
                                            
                                           </tr>
                                        </table> 
                                         
                                     </div>
                                     

                                     </HeaderTemplate>
                                     <ItemTemplate>
                                           <asp:HiddenField ID="vacancyID" Value='<%# Eval("VACANCY_APPLY_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_city" Value='<%# Eval("CITY_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_pos" Value='<%# Eval("POSITION_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_pln_hdr" Value='<%# Eval("REC_PLAN_HEADER_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_requisition" Value='<%# Eval("REQUESITION_HEADER_ID") %>' runat="server"></asp:HiddenField>
                                       <table class="table table-hover  table-bordered">
                                           <tr>
                                            <td style="width:25% !important;">
                                              <%# Eval("SOURCE_TYPE") %>  
                                           </td >
                                            <td style="width:26.7% !important;">
                                              <%# Eval("NAME") %>
                                            </td>

                                                <td style="width:26.5% !important;">
                                              <%# Eval("PositionName") %>
                                            </td>

                                                  <td style="width:25% !important;">
                                              <%# Eval("NOTICE_PERIOD") %>
                                            </td>
                                            <td style="width:25% !important;">
                                              <a id="dtl_lnk" data-toggle="collapse" href="#<%# Eval("ROW_ID") %>"><i class="fa fa-angle-double-down" style="font-size:20px !important"></i></a>
                                            </td>

                                                   <td style="width:25% !important;">
                                              <a id="dtl_fac" data-toggle="collapse" href="#<%# Eval("ROW_No") %>">Remarks</a>
                                            </td>
                                               <td style="width:25% !important;">
                                                <asp:Button ID="btn_vw" OnClientClick='<%# String.Format("javascript:return Nextpage(\"{0}\")", HRMS.Global.Encrypt(Eval("PATH").ToString())) %>'   runat="server" CssClass="btn btn-primary" CommandArgument='<%# Bind("PATH") %>' Text="View Cv" OnClick="btn_vw_Click" />
                                            </td>
                                           </tr>
                                        </table>
                                            <div class="collapse" id="<%# Eval("ROW_ID") %>">
                                                 <div class="row">
                                                   <div class="col-md-10 col-md-offset-1">
                                                    <asp:GridView ID="grd_candidate_dtl_valus" runat="server" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" >
                                                     <Columns>
                                                     <asp:BoundField DataField="Col"/>
                                                     <asp:BoundField DataField="val"/>
                                                     <%--<asp:BoundField HeaderText="Expected Salary" DataField="EXPECTED_SALARY"/>
                                                         <asp:BoundField HeaderText="Date Of Birth" DataField="DATE_OF_BIRTH"/>
                                                         <asp:BoundField HeaderText="Email" DataField="EMAIL"/>
                                                         <asp:BoundField HeaderText="Mobile No" DataField="MOBILE_NO"/>--%>
                                                     </Columns>
                                                    </asp:GridView>
                                                   </div>
                                                 </div>
                                              </div>


                                        
                                          <div class="collapse" id="<%# Eval("ROW_No") %>">
                                                 <div class="row">
                                                   <div class="col-md-10 col-md-offset-1">
                                                     
                                                                <asp:GridView ID="grd_fac" runat="server" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover">
                                                     <Columns>
                                                        
                                                     <asp:BoundField HeaderText="Factors" DataField="TITLE"  HeaderStyle-Width="20%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                         <asp:BoundField HeaderText="Factor Type" DataField="type"  HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                     <asp:BoundField HeaderText="Total Marks" DataField="TOTAL_MARKS" HeaderStyle-Width="14%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden"/>
                                                          <asp:TemplateField HeaderText="Total Marks" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White">
                                                             <ItemTemplate>
                                                                 <asp:TextBox ID="txt_total" runat="server" CssClass="form-control" BorderStyle="None" Enabled="false" Text='<%# Bind("TOTAL_MARKS") %>'></asp:TextBox>
                                                             </ItemTemplate>
                                                         </asp:TemplateField>
                                                         <asp:BoundField HeaderText="Passing Marks"  DataField="PASSING_MARKS" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>

                                                          


                                                         <asp:TemplateField HeaderText="Mark Obtained" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White">
                                                             <ItemTemplate>
                                                                 <asp:HiddenField ID="hid_factor" runat="server" Value='<%# Bind("FACTOR_ID") %>' />
                                                                 <asp:TextBox ID="txt_mrk_obt" runat="server" CssClass="form-control"></asp:TextBox>
                                                                 <asp:RequiredFieldValidator runat="server" Visible="false" ControlToValidate="txt_mrk_obt" ID="Reqamt" Display="Dynamic" setfocusonerror="true"></asp:RequiredFieldValidator>
                                                                 <asp:CompareValidator runat="server" id="cmpNumbers" controltovalidate="txt_mrk_obt" controltocompare="txt_total" operator="LessThanEqual" type="Integer" errormessage="Mark Obtained should be less than OR equal to Total Marks!" />

                                                             </ItemTemplate>

                                                                   <%-- <FooterTemplate>
                                                                        <asp:Button Width="100%" ID="btn_save_fac" runat="server" Text="Save" CssClass="btn btn-primary" OnClick="btn_save_fac_Click" />
                                                                    </FooterTemplate>--%>
                                                         </asp:TemplateField>
                                                     </Columns>
                                                    </asp:GridView>

                                                       <table class="table table-hover  table-bordered">
                                                                <tr>
                                                                     <td>
                                                                        <label class="control-label">Action Type</label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddl_status" runat="server" CssClass="form-control"></asp:DropDownList>
                                                                    </td>
                                                                        <td>
                                                                        <label class="control-label">Comment</label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txt_comment" CssClass="form-control" runat="server" />
                                                                    </td>

                                                                     <td>
                                                                        <asp:Button ID="btn_save_vac_dtl" Width="100%" runat="server" CssClass="btn btn-primary" Text="Save" OnClick="btn_save_vac_dtl_Click" />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                    <%--   <div class="row">
                                                           <div class="col-md-8 col-md-offset-1" style="padding-bottom:20px">
                                                               <asp:Button ID="btn_save" Width="50%" runat="server" CssClass="btn btn-primary" Text="Save" />   
                                                           </div>
                                                        
                                                       </div>--%>
                                                        
                                                   </div>
                                                 </div>
                                              </div>
                                             
                                     </ItemTemplate>
                                 </asp:Repeater>
                                </div>                           
                               </div>


                       

                        <%--For Interview--%>

                          <div class="row">
                            <div class="col-md-10 col-md-offset-1">
                                <asp:Repeater ID="rpt_Int_candidate" runat="server" OnItemDataBound="rpt_Int_candidate_ItemDataBound">
                                    <HeaderTemplate>
                                        <div class="table-responsive">
                                            <table class="table table-hover table-bordered">
                                                <tr>
                                                    <td style="width:21% !important;background-color:#2085B5;color:white">
                                                        Candidate Name
                                                    </td>

                                                      <td style="width:18.5% !important;background-color:#2085B5;color:white">
                                                        Position
                                                    </td>

                                                      <td style="width:26.5% !important;background-color:#2085B5;color:white"> 
                                                        Interview Date Time
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </HeaderTemplate>

                                    <ItemTemplate>
                                        <asp:HiddenField ID="vacancyID" Value='<%# Eval("VACANCY_APPLY_ID") %>' runat="server"></asp:HiddenField>
                                          <asp:HiddenField ID="hid_city" Value='<%# Eval("CITY_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_pos" Value='<%# Eval("POSITION_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_pln_hdr" Value='<%# Eval("REC_PLAN_HEADER_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_requisition" Value='<%# Eval("REQUESITION_HEADER_ID") %>' runat="server"></asp:HiddenField>
                                        <table class="table table-hover table-bordered">
                                            <tr>
                                                <td style="width:40.5% !important;">
                                                    <%# Eval("Name") %>
                                                </td>

                                                 <td style="width:34.5% !important;"> 
                                                    <%# Eval("Position") %>
                                                </td>

                                                 <td style="width:26.5% !important;">
                                                    <%# Eval("InterviewDate") %>
                                                </td>

                                                   <td style="width:25% !important;">
                                                        <a id="dtl_fac" data-toggle="collapse" href="#<%# Eval("ROW_No") %>">Remarks</a>
                                                   </td>
                                               <td style="width:25% !important;">
                                                <asp:Button ID="btn_vw" OnClientClick='<%# String.Format("javascript:return Nextpage(\"{0}\")", HRMS.Global.Encrypt(Eval("PATH").ToString())) %>'   runat="server" CssClass="btn btn-primary" CommandArgument='<%# Bind("PATH") %>' Text="View Cv" />
                                            </td>
                                            </tr>
                                        </table>



                                          <div class="collapse" id="<%# Eval("ROW_No") %>">
                                                 <div class="row">
                                                   <div class="col-md-10 col-md-offset-1">
                                                    <asp:GridView ID="grd_fac" runat="server" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" >
                                                     <Columns>
                                                        
                                                     <asp:BoundField HeaderText="Factors" DataField="TITLE"  HeaderStyle-Width="20%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                     <asp:BoundField HeaderText="Total Marks" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" DataField="TOTAL_MARKS" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>

                                                         <asp:TemplateField HeaderText="Total Marks" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White">
                                                             <ItemTemplate>
                                                                 <asp:TextBox ID="txt_total" Enabled="false" runat="server" CssClass="form-control" BorderStyle="None" Text='<%# Bind("TOTAL_MARKS") %>'></asp:TextBox>
                                                             </ItemTemplate>
                                                         </asp:TemplateField>

                                                         <asp:BoundField HeaderText="Passing Marks" DataField="PASSING_MARKS" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                         <asp:TemplateField HeaderText="Mark Obtained" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White">
                                                             <ItemTemplate>
                                                                 <asp:HiddenField ID="hid_factor" runat="server" Value='<%# Bind("FACTOR_ID") %>' />
                                                                 <asp:TextBox ID="txt_mrk_obt" runat="server" CssClass="form-control"></asp:TextBox>
                                                                 <asp:RequiredFieldValidator Visible="false" runat="server" ID="Reqamt" ControlToValidate="txt_mrk_obt" ErrorMessage="Mark Obtained is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                                                 <asp:CompareValidator runat="server" id="cmpint_mrk" controltovalidate="txt_mrk_obt" controltocompare="txt_total" operator="LessThanEqual" type="Integer" errormessage="Mark Obtained should be less than OR equal to Total Marks!" />

                                                             </ItemTemplate>
                                                         </asp:TemplateField>
                                                     </Columns>
                                                    </asp:GridView>

                                                          <table class="table table-hover  table-bordered">
                                                                <tr>
                                                                     <td>
                                                                        <label class="control-label">Action Type</label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddl_status" runat="server" CssClass="form-control"></asp:DropDownList>
                                                                        <%--<asp:RequiredFieldValidator runat="server" ID="Reqstatus" ControlToValidate="ddl_status" ErrorMessage="Action Type is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.ItemIndex %>'></asp:RequiredFieldValidator>--%>
                                                                    </td>
                                                                        <td>
                                                                        <label class="control-label">Comment</label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txt_comment" CssClass="form-control" runat="server" />
                                                                    </td>

                                                                     <td>
                                                                        <asp:Button ID="btn_save_vac_dtl_for_Intv" Width="100%" runat="server" CssClass="btn btn-primary" Text="Save" OnClick="btn_save_vac_dtl_for_Intv_Click" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                   </div>
                                                 </div>
                                              </div>


                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </div>






                          <%--For Final Process--%>

                          <div class="row">
                            <div class="col-md-10 col-md-offset-1">
                                <asp:Repeater ID="rpt_final_process" runat="server" OnItemDataBound="rpt_final_process_ItemDataBound">
                                    <HeaderTemplate>
                                        <div class="table-responsive">
                                            <table class="table table-hover table-bordered">
                                                <tr>
                                                    <td style="width:20% !important;background-color:#2085B5;color:white">
                                                        Candidate Name
                                                    </td>

                                                      <td style="width:26.5% !important;background-color:#2085B5;color:white">
                                                        Position
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </HeaderTemplate>

                                    <ItemTemplate>
                                        <asp:HiddenField ID="vacancyID" Value='<%# Eval("VACANCY_APPLY_ID") %>' runat="server"></asp:HiddenField>
                                          <asp:HiddenField ID="hid_city" Value='<%# Eval("CITY_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_pos" Value='<%# Eval("POSITION_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_pln_hdr" Value='<%# Eval("REC_PLAN_HEADER_ID") %>' runat="server"></asp:HiddenField>
                                         <asp:HiddenField ID="hid_requisition" Value='<%# Eval("REQUESITION_HEADER_ID") %>' runat="server"></asp:HiddenField>
                                        <table class="table table-hover table-bordered">
                                            <tr>
                                                <td style="width:50% !important;">
                                                    <%# Eval("CandidateName") %>
                                                </td>

                                                 <td style="width:37% !important;"> 
                                                    <%# Eval("Position") %>
                                                </td>

                                                   <td style="width:25% !important;">
                                                        <a id="dtl_fac" data-toggle="collapse" href="#<%# Eval("ROW_No") %>">Remarks</a>
                                                   </td>
                                               <td style="width:25% !important;">
                                                <asp:Button ID="btn_vw" OnClientClick='<%# String.Format("javascript:return Nextpage(\"{0}\")", HRMS.Global.Encrypt(Eval("PATH").ToString())) %>'   runat="server" CssClass="btn btn-primary" CommandArgument='<%# Bind("PATH") %>' Text="View Cv" />
                                            </td>
                                            </tr>
                                        </table>



                                          <div class="collapse" id="<%# Eval("ROW_No") %>">
                                                 <div class="row">
                                                   <div class="col-md-10 col-md-offset-1">
                                                    <asp:GridView ID="grd_fac" runat="server" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" >
                                                     <Columns>
                                                        
                                                     <asp:BoundField HeaderText="Action" DataField="ActionName"  HeaderStyle-Width="20%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                     <asp:BoundField HeaderText="Total Marks" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" DataField="TOTAL_MARKS" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                         <asp:TemplateField HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White">
                                                             <ItemTemplate>
                                                                 <asp:TextBox ID="txt_total" runat="server" CssClass="form-control" Enabled="false" BorderStyle="None" Text='<%# Bind("TOTAL_MARKS") %>'></asp:TextBox>
                                                             </ItemTemplate>
                                                         </asp:TemplateField>


                                                         <asp:BoundField HeaderText="Passing Marks" DataField="PASSING_MARKS" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                         <asp:BoundField HeaderText="Obtained Marks" DataField="TOTAL_OBT_MARKS" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White"/>
                                                         <asp:TemplateField HeaderText="Mark Obtained" HeaderStyle-Width="15%" HeaderStyle-BackColor="#2085B5" HeaderStyle-ForeColor="White">
                                                             <ItemTemplate>
                                                                 <asp:TextBox ID="txt_mrk_obt" runat="server" CssClass="form-control"></asp:TextBox>
                                                                 <asp:RequiredFieldValidator Visible="false" runat="server" ID="Reqamt" ControlToValidate="txt_mrk_obt" ErrorMessage="Mark Obtained is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>

                                                                 <asp:CompareValidator runat="server" id="cmpint_mrk" controltovalidate="txt_mrk_obt" controltocompare="txt_total" operator="LessThanEqual" type="Integer" errormessage="Mark Obtained should be less than OR equal to Total Marks!" />
                                                             </ItemTemplate>
                                                         </asp:TemplateField>
                                                     </Columns>
                                                    </asp:GridView>

                                                          <table class="table table-hover  table-bordered">
                                                                <tr>
                                                                     <td>
                                                                        <label class="control-label">Action Type</label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddl_status" runat="server" CssClass="form-control"></asp:DropDownList>
                                                                        <asp:RequiredFieldValidator runat="server" ID="Reqstatus" ControlToValidate="ddl_status" ErrorMessage="Action Type is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.ItemIndex %>'></asp:RequiredFieldValidator>
                                                                    </td>
                                                                        <td>
                                                                        <label class="control-label">Comment</label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txt_comment" CssClass="form-control" runat="server" />
                                                                    </td>

                                                                     <td>
                                                                        <asp:Button ID="btn_save_vac_dtl_for_final" Width="100%" runat="server" CssClass="btn btn-primary" Text="Save" OnClick="btn_save_vac_dtl_for_final_Click" ValidationGroup = '<%# "add_" + Container.ItemIndex %>' />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                   </div>
                                                 </div>
                                              </div>


                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </div>





                        <asp:GridView ID="GridView1" CssClass="display" CellPadding="0" Border="0" Visible="false"
                            AutoGenerateColumns="false" runat="server">
                            <Columns>
                                <asp:BoundField DataField="VACANCY_APPLY_ID" HeaderText="ID" />
                                <asp:BoundField DataField="SOURCE_TYPE" HeaderText="Source Type" />
                                <asp:BoundField DataField="NAME" HeaderText="Candidate Name" />
                                <asp:BoundField DataField="NOTICE_PERIOD" HeaderText="Availability / Notice Period" />

                                <asp:TemplateField HeaderText="Action">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hid_busgroupid" runat="server" />
                                        <asp:LinkButton ID="lnk_edit" CausesValidation="false" CommandName="gedit"
                                            runat="server"><i class="fa fa-pencil"
                                                style="font-size:20px !important"></i></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle CssClass="footerStyle" />
                            <HeaderStyle CssClass="headerStyle" />
                            <RowStyle CssClass="rowStyle" />
                        </asp:GridView>
                        <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
                        <script src="/ThemeScrips/Datatables/media/js/jquery.datatables.min.js"
                            type="text/javascript"></script>
                        <script src="/ThemeScrips/Datatables/media/js/jquery.Datatables.js"
                            type="text/javascript"></script>
                        <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
                        <script type="text/javascript">
                            $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                        </script>

                        <script type="text/javascript">
                            function Nextpage(path) {

                                window.open('ViewCV.aspx?id=' + path); return false;
                            }
</script>


                         <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css"
        rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <%--<script src="/ThemeScrips/select2.min.js"></script>--%>
    <script>
        $('.select2').select2();
    </script>
                    </div>
                </section>
            </div>
        </div>
    </div>
</asp:Content>
