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

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

                        List Of Position Hierarchy
                        <div class="pull-right">
                            
                            <asp:Button Text="Add New Record" CssClass="btn btn-info" ID="btn_add" runat="server"
                                OnClick="btn_add_Click" />
                        </div>
                    </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="GridView1" runat="server" CssClass="display" AutoGenerateColumns="false" 
                     border="0" CellPadding="0" 
                    onrowcommand="GridView1_RowCommand">
                <Columns>
                    <asp:BoundField DataField="POSITION_STRUCTURE_ID" HeaderText="ID" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden"/>
                    <asp:BoundField DataField="BUSINESS_GROUP_ID" HeaderText="Business Group" />
                    <asp:BoundField DataField="NAME" HeaderText="Name" />
                    <asp:BoundField DataField="PRIMARY_POSITION_FLAG" HeaderText="Primary Position Flag" />
                    <asp:BoundField DataField="pos_structure_version_id" HeaderText="" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" />
                    <asp:BoundField DataField="version_number" HeaderText="Version Number" />
                    <asp:BoundField DataField="date_from" HeaderText="Date From" />
                    <asp:BoundField DataField="date_to" HeaderText="Date To" />
                    
                    <asp:TemplateField HeaderText="Acion" ItemStyle-Width="6%">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkedit" runat="server" CausesValidation="false" ClientIDMode="static" CommandName="gedit"><i class="fa fa-pencil" style="font-size:20px !important;"></i></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle CssClass="footerStyle" />
                            <HeaderStyle CssClass="headerStyle" />
                            <RowStyle CssClass="rowStyle" />
            </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">
                        $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                    </script>






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