<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_RollNoGeneration, App_Web_mj3cf1bx" 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">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="103"
                                Visible="true" runat="server" />
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader2WireBox card card-box">
                        <div class="contentHolder">
                            <div class="himssuHeader1WireBox">
                                <div class="himsBoxHeader card-head">

                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-angle-right"></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="col-md-5">
                                                <div class="outerBox11 pTop5 col-md-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="ApplyCheckBox" runat="server" Text="Apply For All Divisions" OnCheckedChanged="ApplyCheckBox_OnCheckedChanged" AutoPostBack="true" class="pLeft5" />
                                                        <%--  <asp:Label ID="ApplyLabel" runat="server" Text="Apply For All Divisions"></asp:Label>--%>
                                                    </div>
                                                    <div id="ClassDiv" runat="server" visible="False" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey overflow-x-hidden padd-0">
                                                        <asp:CheckBoxList ID="ClassCheckBoxList" runat="server">
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-12">
                                                    <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-12">
                                                    <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()" AutoPostBack="true"
                                                            OnSelectedIndexChanged="DivisionDropDown_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-12">
                                                    <div class="controlLabelWidth pTop5">
                                                        <asp:Label ID="StartingRollNoLabel" runat="server" Text="Starting Roll No"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="StartingRollNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                            onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-12">
                                                    <div class="controlLabelWidth pTop5">
                                                        <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="StatusDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="StatusDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="col-md-3">
                                                <div class="outerBox pTop5 pLeft10">
                                                    <div class="controlLabelWidth">
                                                        <asp:Panel ID="DetailPanel2" runat="Server" GroupingText="Arrangement">
                                                            <asp:RadioButtonList ID="ArrangementRadioButtonList" runat="server">
                                                                <asp:ListItem Selected="True" Text="Mix" Value="0"></asp:ListItem>
                                                                <asp:ListItem Text="First Boys" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="First Girls" Value="2"></asp:ListItem>

                                                            </asp:RadioButtonList>

                                                            <asp:CheckBox ID="StatusCheckBox" Text="Left as 0" runat="server" Checked="true" />

                                                        </asp:Panel>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3">
                                                <div class="outerBox pTop5 pLeft10">
                                                    <div class="controlLabelWidth">
                                                        <asp:Panel ID="DetailPanel3" runat="Server" GroupingText="Arrangement As">
                                                            <asp:RadioButtonList ID="ArrangementAsRadioButtonList" runat="server">
                                                                <asp:ListItem Selected="True" Text="Surname" Value="LastName"></asp:ListItem>
                                                                <asp:ListItem Text="Name" Value="FirstName"></asp:ListItem>
                                                                <asp:ListItem Value="Code"></asp:ListItem>
                                                                <asp:ListItem Value="Status" Text="Status"></asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </asp:Panel>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="text-center col-md-12 pTop5">
                                                <asp:Button ID="GenerateButton" Text="&#xf079; Auto Generate" runat="Server" OnClick="GenerateButton_Click" SkinID="0" CssClass="btn btn-generate fas" />
                                                <asp:Button ID="ResetButton" Text="&#xf12d; Clear" runat="Server" OnClick="ResetButton_Click" SkinID="0" CssClass="btn btn-clear fas" />
                                            </div>

                                            <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop5 gridviewfont" 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 fLeft">
                                                            <header>
                                                                <asp:Label ID="GridViewLabel" Text="Available Academic List To View" runat="server" meta:resourcekey="GridViewLabelResource1" />
                                                            </header>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="himsBoxContent width-100">
                                                    <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                        visible="False">
                                                    </div>
                                                    <asp:GridView ID="AcademicGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        EmptyDataText="No Records Found !!"
                                                        AllowPaging="false"
                                                        ShowHeader="true" OnRowDataBound="AcademicGridView_RowDataBound"
                                                        DataKeyNames="Id,RollNo " CssClass="table table-striped table-fixed table-bordered">
                                                        <Columns>
                                                            <asp:BoundField DataField="Id" HeaderText="Id" Visible="false"></asp:BoundField>
                                                            <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <cc1:FilteredTextBoxExtender ID="RollNoExtender" runat="server" TargetControlID="RollNoTextBox"
                                                                        FilterType="Numbers" Enabled="True">
                                                                    </cc1:FilteredTextBoxExtender>
                                                                    <asp:TextBox ID="RollNoTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("RollNo") %>'
                                                                        Width="100px"></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="Name" HeaderText="Name" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:TemplateField HeaderText="ID No">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IdNoLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                </ItemTemplate>

                                                            </asp:TemplateField>

                                                            <asp:TemplateField HeaderText="Status" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusNAme") %>'></asp:Label>
                                                                </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>
