<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Career_Level.aspx.cs"
    Inherits="HRMS.Recruitment.Career_Level" %>
    <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">
                            Career Level
                            <div class="pull-right">
                                <asp:button text="Save" CssClass="btn btn-info" ID="btn_save" Width="120px"
                                    ValidationGroup="save" runat="server" onclick="btn_save_Click" />
                                <asp:button text="New Record" CssClass="btn btn-info" ID="btn_cancel" runat="server"
                                    onclick="btn_cancel_Click" />
                            </div>
                        </header>

                        <div class="panel-body">
                            <d<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" style="padding-top:10px">
                            <label class="control-label col-sm-offset-2 col-xs-8 col-sm-3 col-md-2 col-lg-2">Bussiness Unit</label>
                            <div class="col-xs-10 col-sm-5 col-md-4 col-lg-4">
                                <asp:DropDownList CssClass="form-control select2" ID="ddl_Busunit" runat="server">
                                </asp:DropDownList>
                               <%-- <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server"
                                    id="res_Busunit" controltovalidate="ddl_Busunit"
                                    errormessage="Business Group is Required!" />--%>
                                <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="req1" controltovalidate="ddl_Busunit" errormessage="Business Group is Required!" />
                            </div>


                        </div>

                        <div class="row" style="padding-top:10px">
                            <asp:HiddenField ID="hid_CareerLvl" runat="server" />
                            <label class="col-sm-offset-2 col-xs-8 col-sm-3 col-md-2 col-lg-2 control-label">Name</label>
                            <div class="col-xs-10 col-sm-5 col-md-4 col-lg-4">

                                <asp:TextBox CssClass="form-control" ID="txt_desc" runat="server">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server"
                                    id="req_desc" controltovalidate="txt_desc" errormessage="Name is Required!" />


                            </div>
                        </div>

                        <hr />
                                <div class="table-responsive">
                        <asp:GridView ID="GridView1" CssClass="display" CellPadding="0" Border="0"
                            AutoGenerateColumns="false" runat="server" onrowcommand="GridView1_RowCommand">
                            <Columns>
                                <asp:BoundField DataField="CareerLvl" HeaderText="ID" />
                                <asp:BoundField DataField="GroupName" HeaderText="Bussiness Group" />
                                <asp:BoundField DataField="Name" HeaderText="Name" />

                                <asp:TemplateField HeaderText="Action">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hid_busgroupid" runat="server"
                                            Value='<%#Bind("BUSINESS_GROUP_ID")%>' />
                                        <asp:LinkButton ID="lnk_edit" CausesValidation="false" CommandName="gedit"
                                            runat="server"><i class="fa fa-pencil"
                                                style="font-size:20px !important"></i></asp:LinkButton>
                                        <asp:LinkButton ID="lnk_dlt" CausesValidation="false" CommandName="gdlt"
                                            OnClientClick="return confirm('Are you sure to delete?')" runat="server"><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>
                                    </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">
                            $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                        </script>

                        <div class="row">
                            <asp:Label CssClass="control-label col-md-offset-2" ID="lbl_due" runat="server">
                            </asp:Label>
                        </div>


                </div>
                </section>
            </div>
        </div>
        </div>
        <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css" rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
    </asp:Content>