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

<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">Candidate Interview</span>
                        
                    </header>

                    <div class="panel-body">

                        <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:26.5% !important;background-color:lightgray;">
                                                        Candidate Name
                                                    </td>

                                                      <td style="width:26.5% !important;background-color:lightgray;">
                                                        Position
                                                    </td>

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

                                    <ItemTemplate>
                                        <asp:HiddenField ID="vacancyID" Value='<%# Eval("VACANCY_APPLY_ID") %>' runat="server"></asp:HiddenField>
                                        <table class="table table-hover table-bordered">
                                            <tr>
                                                <td style="width:26.5% !important;">
                                                    <%# Eval("Name") %>
                                                </td>

                                                 <td style="width:26.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("ROW_No").ToString())) %>'   runat="server" CssClass="btn btn-primary" CommandArgument='<%# Bind("ROW_No") %>' 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 ShowFooter="true" 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%"/>
                                                     <asp:BoundField HeaderText="Total Marks" DataField="TOTAL_MARKS" HeaderStyle-Width="15%"/>
                                                         <asp:BoundField HeaderText="Passing Marks" DataField="PASSING_MARKS" HeaderStyle-Width="15%"/>
                                                         <asp:TemplateField HeaderText="Mark Obtained" HeaderStyle-Width="15%">
                                                             <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" ID="Reqamt" ControlToValidate="txt_mrk_obt" ErrorMessage="Mark Obtained is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                                             </ItemTemplate>

                                                                    <FooterTemplate>
                                                                        <asp:Button Width="100%" ID="btn_save_fac" runat="server" ValidationGroup='<%# "add_" + Container.DataItemIndex %>' Text="Save" CssClass="btn btn-primary" />
                                                                    </FooterTemplate>
                                                         </asp:TemplateField>
                                                     </Columns>
                                                    </asp:GridView>
                                                   </div>
                                                 </div>
                                              </div>


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


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

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

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