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

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

                         <asp:GridView ID="grd_int" runat="server" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" OnRowDataBound="grd_int_RowDataBound" OnRowCommand="grd_int_RowCommand">
                                                     <Columns>
                                                         <asp:TemplateField  HeaderStyle-Width="01%">
                                                             <ItemTemplate>
                                                                 <asp:HiddenField ID="hid_vac" runat="server" Value='<%# Bind("VACANCY_APPLY_ID") %>' />
                                                                 <asp:HiddenField ID="hid_schedule" runat="server" Value='<%# Bind("INTERVIEW_SCHEDULE_ID") %>' />
                                                                 <asp:HiddenField ID="hid_venue" runat="server" Value='<%# Bind("LOCATION_ID") %>' />
                                                             </ItemTemplate>
                                                         </asp:TemplateField>
                                                     <asp:BoundField HeaderText="Candidate Name" DataField="CandidateName" />
                                                     <asp:BoundField HeaderText="Position" DataField="Position"/>

                                                         <asp:TemplateField HeaderText="Venue">
                                                             <ItemTemplate>
                                                                 <asp:DropDownList ID="ddl_venue" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                                                  <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%# "add_"+Container.DataItemIndex %>' runat="server" id="req_loc" controltovalidate="ddl_venue" errormessage="Location is Required!" />
                                                             </ItemTemplate>
                                                         </asp:TemplateField>

                                                          <asp:TemplateField HeaderText="Date Time">
                                                             <ItemTemplate>
                                                                 <asp:TextBox ID="txt_datetime" runat="server" CssClass="form-control time" Text='<%# Bind("DATETIME") %>'></asp:TextBox>
                                                                 <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%# "add_" + Container.DataItemIndex %>' runat="server" id="req_dt" controltovalidate="txt_datetime" errormessage="Date Time is Required!"/>
                                                             </ItemTemplate>
                                                         </asp:TemplateField>

                                                         <asp:BoundField DataField="STATUS" HeaderText="Status" />

                                                         <asp:TemplateField HeaderText="Action">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lnk_add" CommandName="gadd" ValidationGroup='<%# "add_" + Container.DataItemIndex %>'
                                                                    runat="server"><i class="fa fa-plus" style="font-size:20px !important"></i>
                                                                </asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                     </Columns>
                                                    </asp:GridView>


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