<%@ page title="Alumni Convert" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_AlumniConvert, App_Web_os1ovij4" 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" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch"
    TagPrefix="Std" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">

        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <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="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"></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"></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"></asp:TextBox>
                                        </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" style="display: none">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="StatusDropDownList" Enabled="false" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>--%>
                                   <%-- <asp:Panel ID="StudentSearchPanel" runat="server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true">
                                                </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                                    runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                    </asp:Panel>--%>
                                    <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="StudentIdNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                onmouseenter="showHideTooltip()" meta:resourcekey="IDNoSearchTextBoxResource1"></asp:TextBox>
                                        </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"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                <asp:ListItem Value="0" Text=" - ALL -"></asp:ListItem>
                                                <asp:ListItem Value="1" Text="Converted"></asp:ListItem>
                                                <asp:ListItem Value="2" Text="Not Converted"></asp:ListItem>
                                            </asp:DropDownList>

                                        </div>
                                    </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="SendAlertButton" Text="&#xf1d8; Send Alert" runat="Server" OnClick="SendAlertButton_Click"
                                            SkinID="0" CssClass="btn-send btn fas" />--%>
                                        <asp:Button ID="ConvertToAlumniButton" runat="server" Text="&#xf021; Convert To Alumni" OnClick="ConvertToAlumniButton_Click"
                                                SkinID="0" CssClass="btn-update 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 class="cBoth">
                                    </div>
                                    <div class="col-md-12">
                                        <div class="alert alert-info">
                                            <i class="material-icons pos-rel">info</i> |&nbsp;
                                        <asp:Label ID="NoteLabel1" runat="server" Text="To convert students First Name, Last Name and Parent Email should be required." SkinID="MandatoryLabel"></asp:Label><br />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </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-6 display-flex">
                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" CssClass="form-control" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="50" Value="50" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <uc1:GridViewPager ID="StudentGridView_GridViewPager" runat="server" OnFirstRecordClick="StudentGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="StudentGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StudentGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="StudentGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StudentGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="StudentGridView" />
                                                        </div>
                                                    </div>--%>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5">
                                                <div class="cBoth"></div>
                                                <div class="cBoth"></div>
                                                <div id="Div5" runat="server" class="table-responsive " visible="false">
                                            <%--    <div id="Div5" class="pTop5" runat="server" visible="false" style="font-size: smaller">--%>
                                                   <%-- <asp:GridView ID="StudentGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        OnPageIndexChanging="StudentGridView_PageIndexChanging" DataKeyNames="AcademicId"
                                                        AllowPaging="true" SkinID="" ShowHeader="True" PagerSettings-Visible="false" PageSize="50"
                                                        CssClass="table table-striped table-bordered table-hover">--%>
                                                     <asp:GridView ID="StudentGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        OnPageIndexChanging="StudentGridView_PageIndexChanging" DataKeyNames="AcademicId"
                                                        SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                        CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="50px"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox_CheckedChanged"
                                                                            Visible="true" />
                                                                        <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="50px">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IdNoCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <%--<asp:BoundField DataField="SUId" HeaderText="SUId" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="50px"/>--%>
                                                             <asp:TemplateField HeaderText="SUId" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="80px"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="SUIdLabel" CssClass="boxEllips" ToolTip='<%#Eval("SUId")%>' runat="server"
                                                                        Text='<%#Eval("SUId")%>' Width="80px"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="RollNo" HeaderText="Roll No" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="50px"/>
                                                            <asp:TemplateField HeaderText="Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="200px"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%#Eval("Name")%>' runat="server"
                                                                        Text='<%#Eval("Name")%>' Width="200px"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            

                                                            <asp:TemplateField HeaderText="Last Name" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true" Visible="false">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LastNameLabel" CssClass="boxEllips" ToolTip='<%#Eval("LastName")%>' runat="server"
                                                                        Text='<%#Eval("LastName")%>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="ParentContactNo" HeaderText="Parent Contact No"  HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="80px"/>
                                                            <asp:BoundField DataField="StudentContactNo" HeaderText="Student Contact No"  HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="80px"/>
                                                            <asp:BoundField DataField="BatchName" HeaderText="Batch"  HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"/>
                                                            <asp:BoundField DataField="ClassDiv" HeaderText="Class-Division"  HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"/>
                                                            <asp:TemplateField HeaderText="Parent Email"  HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="180px"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="ParentEmailLabel" CssClass="boxEllips" ToolTip='<%#Eval("ParentEmail")%>' runat="server"
                                                                        Text='<%#Eval("ParentEmail")%>' Width="180px"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Status" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="100px"
                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="StatusLabel" CssClass="boxEllips" 
                                                                        runat="server" Text='<%#Eval("StatusName")%>' Width="100px"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/AlumniConvert")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
     <script type="text/javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode != 46 && charCode > 31
            && (charCode < 48 || charCode > 57))
                return false;

            return true;
        }

    </script>
</asp:Content>
