<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_IDNoGeneration, App_Web_p0df5im2" 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">
                    <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="IDNoGenerationLabel1" runat="server" Text="Search"></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="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 pTop5">
                                                <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged" AutoPostBack="true"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </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">
                                                <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrderByLabel" runat="server" Text="Order By"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="OrderByDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromIdNoLabel" runat="server" Text="From Id No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="FromIdNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToIdNoLabel" runat="server" Text="To Id No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="ToIdNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div id="Prefixtd" runat="server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth pTop5">
                                                    <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 pTop5">
                                                <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="outerBox pTop15 col-md-3" id="RollNoDivisionUpdateDiv" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="RollNoDivisionCheckBox" runat="server" Text="Roll No and Division Update" />                                                                                               
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <br />
                                            <div class="fLeft pRight5">
                                                <asp:Label runat="server" ID="LastIdNoLabel" Text="Last ID No : " Visible="false" Font-Bold="true"></asp:Label>
                                                <asp:Label runat="server" ID="LastIdNoValueLabel" Visible="false"></asp:Label>
                                            </div>
                                        </div>

                                        <div class="alignCenter pTop15 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="LastIDNoButton" Text="&#xf2c2; Last ID No" CssClass="btn-assign btn fas" SkinID="0" runat="Server" OnClick="LastIDNoButoon_Click" />
                                            <asp:Button ID="ResetButton" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" runat="Server" OnClick="ResetButton_Click" />
                                            <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-arrow-down"></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" />
                                        </div>
                                        <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                        <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop5" runat="server" visible="false">

                                            <div class="himsBoxContent table-responsive">
                                                <div class="himsBoxHeader " 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 class="fRight display-flex  pTop5 pb5">
                                                        <asp:DropDownList ID="RecordTagApplyAllDropDown" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                            meta:resourcekey="RecordStatusDropDownResource1">
                                                        </asp:DropDownList>
                                                        <asp:Button ID="ApplyAllButton" SkinID="0" Text="&#xf058; Apply All" CssClass="btn btn-apply fas" runat="Server" OnClick="ApplyAllButton_Click" />
                                                    </div>
                                                </div>
                                                <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,RecordStatusId,AcademicId" OnRowDataBound="AcademicGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                            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:TemplateField HeaderText="ID No" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="IDNoLabel" runat="server" Text='<%# Bind("Code") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Class" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ClassDivisionNameLabel" runat="server" Text='<%#Eval("ClassDivisionName") %>'></asp:Label>
                                                                <asp:DropDownList ID="ClassDivisionNameDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control" Visible="false">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--<asp:BoundField DataField="ClassDivisionName" HeaderText="Class" ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                        <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="RollNoLabel" runat="server" Text='<%#Eval("RollNo") %>'></asp:Label>
                                                                <asp:TextBox ID="RollNoTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("RollNo") %>' Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--<asp:BoundField DataField="RollNo" HeaderText="RollNo" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>

                                                        <asp:BoundField DataField="AdmissionDate" HeaderText="Admission Date" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="StudentId" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                            <ItemTemplate>
                                                                <asp:Label ID="StudentIdLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="New ID No" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="NewIDNoTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("Code") %>'></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Record Tag" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="RecordStatusGridviewDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </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>
