<%@ page title="Student Search" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_StudentFull, App_Web_rq25k5je" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="102"
                                    Visible="true" runat="server" />
                            </div>
                        </table>
                    </div>
                </div>

                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText fLeft">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>

                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="IDNoLabel" runat="server" Text="ID No" meta:resourcekey="IDNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="IDNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                onmouseenter="showHideTooltip()" meta:resourcekey="IDNoSearchTextBoxResource1"
                                                MaxLength="20"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FirstNameSearchLabel" runat="server" Text="First Name" meta:resourcekey="FirstNameSearchLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="FirstNameSearchTextBox" SkinID="CustomWidthTextBox"
                                                runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="FirstNameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="MiddleNameSearchLabel" runat="server" Text="Middle Name" meta:resourcekey="MiddleNameSearchLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="MiddleNameSearchTextBox" SkinID="CustomWidthTextBox"
                                                runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="MiddleNameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="LastNameLabel" runat="server" Text="Last Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="LastNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="LastNameTextBoxResource1"
                                                MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="BatchLabel" runat="server" Text="Batch"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="BatchDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="BatchDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <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()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <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">
                                            <asp:Label ID="RollNoLabel" runat="server" Text="Roll No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="RollNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                MaxLength="100" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                        </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="BatchStsLabel" runat="server" Text="Class Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassStatusDrpDownList" 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="BatchStatusLabel" runat="server" Text="Enrollment Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="BatchStatusDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div id="SUIdDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SUIdLabel" runat="server" Text="SU Id" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                MaxLength="50"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop15 col-md-3">

                                        <asp:CheckBox ID="ShowWithPhotoCheckBox" runat="server" AutoPostBack="false" Text="Show With Photo" />
                                    </div>
                                    <div class="outerBox pTop15 col-md-3">
                                        <asp:CheckBox ID="CurruntBatchCheckBox" runat="server" Checked="true" Text="Search in Current Batch" />

                                    </div>
                                    <%--<div class="outerBox pTop15 col-md-3">
                                        <asp:CheckBox ID="ActiveBatchCheckBox" runat="server" Checked="true" Text=" Search No of Student" />
                                    </div>--%>
                                    <div class="alignCenter col-md-12 pTop5 pb5">
                                        <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                            SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset" OnClick="ClearSearchControls_Click"
                                            meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />
                                    </div>
                                    <div id="StudentMasterGridDiv" runat="server" visible="false">
                                        <div class="himssuHeader7WireBox col-md-12 pTop5">
                                            <div class="himsBoxHeader" id="StudentDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <div>
                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="col-md-12 padd-0">
                                                        <div class="col-md-5">
                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-md-7">
                                                            <uc1:GridViewPager ID="StudentFullGridView_GridViewPager" runat="server" OnFirstRecordClick="StudentFullGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="StudentFullGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StudentFullGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="StudentFullGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StudentFullGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="StudentFullGridView" />
                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" class="table-responsive" visible="false" style="font-size: smaller; margin-top: 12px">
                                                            <asp:GridView ID="StudentFullGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                OnRowDataBound="StudentFullGridView_RowDataBound" OnPageIndexChanging="StudentFullGridView_PageIndexChanging"
                                                                AllowPaging="true" PageSize="10" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                DataKeyNames="Id,OrgId,BatchId,AcademicId" CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="8%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="8%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="CheckStudentDataLinkButton" runat="server" CommandName="Select1" OnClick="CheckStudentDataLinkButton_Click"
                                                                                Text="History" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="ID No" ItemStyle-Width="70px">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IdNoCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="190px" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Student)Container.DataItem).Name %>' runat="server"
                                                                                Text='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Student)Container.DataItem).Name %>' Width="185px"></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="70px"
                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="BatchName" HeaderText="Batch" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="ClassName" HeaderText="Class" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="DivisionName" HeaderText="Division" ItemStyle-Width="70px"
                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="Status" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatLabel" CssClass="boxEllips" Font-Bold="true"
                                                                                runat="server" Text='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Student)Container.DataItem).StatusName %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Class Status" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ClassStatLabel" CssClass="boxEllips" Font-Bold="true"
                                                                                runat="server" Text='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Student)Container.DataItem).ClassStatusName %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="BatchStatus" HeaderText="Enrollment Status" ItemStyle-Width="70px"
                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="Photo" ItemStyle-Width="190px" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Image ID="StudentPhoto" Height="60px" Width="60px" runat="server" ImageUrl='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.StudentManagementBE.Student)Container.DataItem).StudentPhoto%>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/student-search-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <%--<script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-search-encrypt")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-full")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
