<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="HR_Position_Hierarchy.aspx.cs" Inherits="HRMS.HR.Position_Hierarchy.HR_Position_Hierarchy" %>
<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">HR Position Hierarchy</span>
                   
                    <div class="pull-right">
                        <asp:Button ID="btn_save" CssClass="btn btn-info" runat="server" Text="Save" onclick="btn_save_Click" 
                           />
                        <asp:Button ID="btn_cancel" CssClass="btn btn-info" runat="server" 
                            Text="Back" onclick="btn_cancel_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>


                            <div class="row">
                                <div class="col-md-12">
                                <asp:HiddenField ID="hid_position_hierarchy" runat="server" />
                                    <label id="Label1" class="control-label col-md-2 col-md-offset-2" runat="server">Position</label>
                                    <div class="col-md-4">
                                        <asp:DropDownList ID="ddl_position" CssClass="form-control" runat="server"></asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <br />
                            <hr />
                            <br /><br />

                            <div class="pull-right">
                                    <asp:Button CssClass="btn btn-info" ID="btn_add_detail" runat="server" 
                                        Text="Add Detail" onclick="btn_add_detail_Click" />
                            </div>

                                <asp:GridView ID="GridView1" CssClass="display" CellPadding="0" 
                             border="0" runat="server" AutoGenerateColumns="false" 
                             onrowcommand="GridView1_RowCommand" >
                                    <Columns>
                                        <asp:BoundField DataField="HIERARCHY_DETAIL_ID" HeaderText="ID" />
                                        <asp:BoundField DataField="Position" HeaderText="Position" />
                                        <asp:BoundField DataField="Start_date" HeaderText="Start Date" />
                                        <asp:BoundField DataField="End_date" HeaderText="End Date" />
                                        <asp:TemplateField HeaderText="Action">
                                            <ItemTemplate>
                                                <asp:LinkButton runat="server" ID="lnk_btn" CommandName="gedit"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                                <asp:LinkButton runat="server" ID="lnk_dlt" 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>
                                    <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>
