<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_IDNoGeneration, App_Web_mpqp0qey" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
<style type="text/css">
input:disabled + input[type=image], input:read-only + a {
pointer-events: visible;
cursor: pointer !important;
}
</style>
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="164" Visible="true" runat="server" />
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox card card-box">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <div class="himssuHeader1WireBox">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-id-card"></i>
                                                <asp:Label ID="IDNoGenerationLabel1" runat="server" Text="Employee Id No Generation"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                     <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="cBoth">
                                            </div>


                                            <div id="Prefixtd" runat="server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PrefixLabel" runat="server" Text="Prefix"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="PrefixTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                            onmouseenter="showHideTooltip()"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StartingIDNoLabel" runat="server" Text="Starting ID No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="StartingIDNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                        onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                </div>
                                            </div>


                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                <asp:Button ID="GenerateButton" Text="&#xf079; Auto Generate" runat="Server" CssClass="btn-generate btn fas" OnClick="GenerateButton_Click" SkinID="0" />
                                                <%--<asp:Button ID="LastIDNoButton" Text="Last ID No" runat="Server" OnClick="LastIDNoButoon_Click" Style="width: 100px;" />--%>
                                                <asp:Button ID="ExportButton" Text="&#xf093; Export" CssClass="btn-examcommon btn fas" SkinID="0" runat="Server" OnClick="ExportButton_Click" />
                                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                    <i class="fas fa-upload"></i>Browse</a>
                                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                <%--<asp:Button ID="ImportButton" runat="Server" Text="&#xf019; Import" CssClass="btn-upload btn fas" SkinID="0" OnClick="ImportButton_Click" />--%>
                                                <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel"
                                                    SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ImportFromExcelButton_Click" />
                                                <asp:Button ID="ResetButton" runat="Server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                            </div>
                                            <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                            <div class="cBoth">
                                            </div>
                                            <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="false" style="width: 99%; height: 100%">
                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="gridHeaderText">
                                                            <header>
                                                                <asp:Label ID="GridViewLabel" Text="Available Academic List To View" runat="server" meta:resourcekey="GridViewLabelResource1" />
                                                            </header>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                        visible="False">
                                                    </div>
                                                    <div id="Div4" runat="server" class="table-responsive">
                                                        <asp:GridView ID="AcademicGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!"
                                                            AllowPaging="false"
                                                            ShowHeader="true" DataKeyNames="EmployeeId" OnRowDataBound="AcademicGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
                                                                    ItemStyle-Wrap="true">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="50%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:TemplateField HeaderText="ID No" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="IDNoTextBox" runat="server" ClientIDMode="Static" Text='<%# ((System.Data.DataRowView)Container.DataItem)["Code"] %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/grno-generation-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/grno-generation")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
