<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="HRMS.HR_per_all_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="color:black">
                  List of Persons
             <%--   <%#Container.DataItemIndex+1 %>
                        <asp:CheckBox ID="chk" runat="server" />--%>
             <div class="actions pull-right">
                    <div class="btn-group">
                    <a href="#" id="aNew" runat="server" class="btn btn-info">New Record</a>
                        
                    </div>
                </div>
              </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>
              
           <asp:GridView ID="grd" runat="server" AutoGenerateColumns="False" 
                      cellpadding="0" border="0" class="display" 
                      onrowcommand="grd_RowCommand">
            <Columns>
                <asp:BoundField HeaderText="Id" DataField="Person_id" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden"  />
                <asp:BoundField HeaderText="Employee No." DataField="EMPLOYEE_NUMBER"/>
                <asp:BoundField HeaderText="Business Group" DataField="BUSINESS_GROUP_NAME"/>
                <asp:BoundField HeaderText="NAME" DataField="FULL_NAME"/>
                 <asp:BoundField HeaderText="Type" DataField="PERSON_TYPE_DESC"/>
                

                <asp:BoundField HeaderText="KNOWN_AS" DataField="KNOWN_AS" Visible="false" />
                
                <asp:TemplateField ItemStyle-Width="6%" HeaderText="Action">
                    <ItemTemplate>
                    <div class="col-md-3">
                 <button type="button" id="btn_others" class="fa fa-caret-down" data-toggle="dropdown">
                      </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="PER_ALL_PEOPLE.aspx?id=<%# HRMS.Global.Encrypt(Eval("Person_id").ToString()) %>">People</a>
                            <%--<a id="per" href="" runat="server">People</a></li>--%>
                        
                        <li class="divider"></li>
                        <li><a id="asg" href="PER_ALL_ASSIGNMENTS.aspx?p_id=<%# HRMS.Global.Encrypt(Eval("Person_id").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(Eval("BUSINESS_GROUP_ID").ToString())+"&a_id="+HRMS.Global.Encrypt(Eval("ASSIGNMENT_ID").ToString()) %>">Assignment</a></li>
                         <%--<li class="divider"></li>--%>
                        <li><a id="elm" href="" runat="server" visible= "false">Element</a></li>
                    </ul>
                </div>

                   
                        <%--   <%#Container.DataItemIndex+1 %>
                        <asp:CheckBox ID="chk" runat="server" />--%>
                       <%-- <asp:LinkButton ID="lnkEdit" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important"></i></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>

<ItemStyle Width="6%"></ItemStyle>
                </asp:TemplateField>
              <%--  <asp:TemplateField Visible="false">
                <ItemTemplate>
                    <asp:HiddenField runat="server" ID="hid_asg" Value='<%#Bind("ASSIGNMENT_ID") %>' />
                    <asp:HiddenField runat="server" ID="hid_bg" Value='<%#Bind("BUSINESS_GROUP_ID") %>' />
                    <asp:HiddenField runat="server" ID="hid_prl_id" Value='<%#Bind("PAYROLL_ID") %>' />
                </ItemTemplate>
                </asp:TemplateField>--%>
            </Columns>
            <%-- Mandatory--%>
            <RowStyle CssClass="rowStyle"/>
           <%-- Mandatory--%>
            <HeaderStyle CssClass="headerStyle" />
           <%-- optional--%>
           <FooterStyle  CssClass="footerStyle"  />
        </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">
                //without passing class names.
                $("#ContentPlaceHolder1_grd").GridviewFix().dataTable();
                //Passing class names
            </script>
                <br />
                
              </div>
              </section>
        </div>
    </div>
</asp:Content>
