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

                    </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">Request</label>
                              <div class="col-md-3">
                                  <asp:DropDownList ID="ddl_req" runat="server" AutoPostBack="true" CssClass="form-control" OnSelectedIndexChanged="ddl_req_SelectedIndexChanged"></asp:DropDownList>
                              </div>


                            <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>

                          <%--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>




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