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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-sm-12">
            <section class="panel">
              <header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary"> List of Terminated Employees</span>
                 
             <%--   <%#Container.DataItemIndex+1 %>
                        <asp:CheckBox ID="chk" runat="server" />--%>
              </header>
              <br />
              
              <div class="panel-body">
              <div class="span6">
                                <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">

                                    <i class="icon-check-sign"></i>
                                    <asp:Label ID="lblMessage" class="msg" runat="server" Text="" ></asp:Label>
                                </div>
                                <div class="span6">
                                <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">

                                    <i class="icon-check-sign"></i>
                                    <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text="" ></asp:Label>
                                </div>
                            </div>
                            </div>
           <div >
               <div class="table table-responsive">
                       <asp:GridView ID="grd" runat="server" AutoGenerateColumns="False" 
                                  cellpadding="0" border="0" class="display" OnRowCommand="grd_RowCommand">
                        <Columns>
                        <asp:TemplateField ItemStyle-Width="1%">
                            <ItemTemplate>
                                <asp:HiddenField ID="hid_bg" Value='<%#Bind("BUSINESS_GROUP_ID") %>' runat="server" />
                                <asp:HiddenField ID="hid_pr" Value='<%#Bind("PERSON_ID") %>' runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                            <asp:BoundField HeaderText="ID" DataField="PERIOD_OF_SERVICE_ID" />
                            <asp:BoundField HeaderText="Business Group" DataField="BUSINESS_GROUP_NAME" />
                            <asp:BoundField HeaderText="Employee Name" DataField="EMP_NAME" />
                            <asp:BoundField HeaderText="Joining Date" DataField="DATE_START" />
                            <asp:BoundField HeaderText="Last Date" DataField="ACTUAL_TERMINATION_DATE" />
                            <asp:BoundField HeaderText="Approved By" DataField="TERMINATION_ACCEPTED_PERSON_NAME" />
                            <asp:BoundField HeaderText="Reason" DataField="LEAVING_REASON" />

                            <asp:TemplateField ItemStyle-Width="6%" HeaderText="Action">
                                <ItemTemplate>
                                    <%--   <%#Container.DataItemIndex+1 %>
                                    <asp:CheckBox ID="chk" runat="server" />--%>
                                    <asp:LinkButton ID="lnkEdit" runat="server" CssClass="btn btn-danger" CommandName="gEdit" OnClientClick="return confirm('Are you sure to Reverse Termination?')" Text="Reverse Termination"></asp:LinkButton>
                                  <%--  &nbsp<asp:LinkButton ID="lnkDelete" runat="server" CommandName="gDelete" OnClientClick="return confirm('Are you sure to delete?')"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>--%>
                                 </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <%-- Mandatory--%>
                        <RowStyle CssClass="rowStyle"/>
                       <%-- Mandatory--%>
                        <HeaderStyle CssClass="headerStyle" />
                       <%-- optional--%>
                       <FooterStyle  CssClass="footerStyle"  />
                    </asp:GridView>
                   </div>
           </div>   
           
            <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">
                //without passing class names.
                $("#ContentPlaceHolder1_grd").GridviewFix().dataTable();
                //Passing class names
            </script>
                <br />
                
              </div>
              </section>
        </div>
    </div>
</asp:Content>
