<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_GRNoGeneration, App_Web_kfy3rwhb" 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">
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="103"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="whiteboxpaddingleft row">
                        <div class="himssuHeader5WireBox card card-box">
                            <div class="himsBoxHeader  card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Roll No Generation "></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth pTop5">
                                                <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="ClassDropDown_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RecordStatusLabel" runat="server" Text="Record Tag" meta:resourcekey="RecordStatusLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="RecordStatusDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                    meta:resourcekey="RecordStatusDropDownResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth pTop5">
                                                <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth pTop5">
                                                <asp:Label ID="StartingGRNoLabel" runat="server" Text="Starting GR No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="StartingGRNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                    onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="alignCenter pTop5 col-md-12">
                                            <asp:Button ID="SearchButton" CssClass="btn-search btn fas" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" />
                                            <asp:Button ID="GenerateButton" Text="&#xf0e2; Auto Generate" CssClass="btn-assign btn fas" SkinID="0" runat="Server" OnClick="GenerateButton_Click" />
                                            <asp:Button ID="LastGRNoButoon" Text="&#xf2c2; Last GR No" CssClass="btn-assign btn fas" SkinID="0" runat="Server" OnClick="LastGRNoButoon_Click" />
                                            <asp:Button ID="ResetButton" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" runat="Server" OnClick="ResetButton_Click" />
                                        </div>
                                        <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop5" runat="server" visible="false">
                                            <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="gridHeaderText fLeft">
                                                        <header>
                                                            <asp:Label ID="GridViewLabel" Text="Available Academic List To View"
                                                                runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent table-responsive">
                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                    visible="False">
                                                </div>
                                                <asp:GridView ID="AcademicGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false"
                                                    ShowHeader="true" DataKeyNames="StudentId" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="ClassDivisionName" HeaderText="Class" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="GR No" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <cc1:FilteredTextBoxExtender ID="GRNoExtender" runat="server" TargetControlID="GRNoTextBox"
                                                                    FilterType="Numbers" Enabled="True">
                                                                </cc1:FilteredTextBoxExtender>
                                                                <asp:TextBox ID="GRNoTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("Number") %>'
                                                                    Width="20px"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </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>
