<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_ChangeStudent, App_Web_wcc3110r" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>

<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>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="167"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox 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">
                                        <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"  runat="server" Visible="false" id="chkNewAdmissionDiv">
                                        <%-- <div class="fLeft pRight5">
                                                        <asp:CheckBox ID="IsNewAdmissionCheckBox" runat="server" AutoPostBack="true"  Visible="false" />
                                                        <asp:Label ID="IsNewAdmissionLabel" runat="server" Text="New Admission" Visible="false"></asp:Label>
                                                    </div>--%>
                                        <div class="fLeft pRight5 ">

                                            <asp:CheckBox ID="IsNewAdmissionCheckBox" runat="server" Text="New Admission" AutoPostBack="true" Visible="false" />
                                            <asp:Label runat="server" AssociatedControlID="IsNewAdmissionCheckBox" ID="IsNewAdmissionLabel" Visible="false">
                                                    
                                            </asp:Label>
                                        </div>
                                    </div>
                                    <div id="AdmissionDateDiv" runat="server" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AdmissionDateLabel" SkinID="MandatoryLabel" runat="server"
                                                    Text="Admission Date" meta:resourcekey="AdmissionDateLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <DPC:DatePickerControl ID="AdmissionDateDatePickerControl" runat="server"
                                                    DisplayDatePicker="true" />
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <%-- <div class="fLeft pRight5">
                                                    <asp:CheckBox ID="IsIncludeLeftCheckBox" runat="server" AutoPostBack="true" Visible="false" />
                                                    <asp:Label ID="Label1" runat="server" Text="Include Left Student" Visible="false"></asp:Label>
                                                </div>--%>
                                                <div class="fLeft pRight5 ">

                                                    <asp:CheckBox ID="IsIncludeLeftCheckBox" runat="server" Text="Include Left Student" AutoPostBack="true" Visible="false" />
                                                    <asp:Label runat="server" AssociatedControlID="IsIncludeLeftCheckBox" ID="Label1" Visible="false">
                                                    
                                                    </asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromClassLabel" runat="server" Text="From Class" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="FromClassDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="FromClassDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <%--  <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="FromDivisionLabel" runat="server" Text="From Division" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="FromDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                            Width="154px" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                            OnSelectedIndexChanged="FromDivisionDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>--%>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ExamLabel" runat="server" Text="Exam" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ExamDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="ExamDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div runat="server" id="OrganizationDiv" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToOrganizationLabel" runat="server" Text="To Organization" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ToOrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true"
                                                    OnSelectedIndexChanged="ToOrganizationDropDownList_OnSelectedIndexChanged" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToBatchLabel" runat="server" Text="To Batch" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ToBatchDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true"
                                                OnSelectedIndexChanged="ToBatchDropDownList_OnSelectedIndexChanged" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToClassLabel" runat="server" Text="To Class" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ToClassDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ToClassDropDownList_OnSelectedindexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DivisionLabel" runat="server" Text="To Division" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList" Visible="false"
                                                CssClass="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <%-- <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ToDivisionLabel" runat="server" Text="To Division" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ToDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                            Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>--%>
                                    <div class="cBoth">
                                    </div>
                                    <div class="col-md-12 bg-lghtgrey"> 
                                        <div class="controlLabelWidth col-md-6">                                      
                                           <asp:RadioButtonList ID="ArrangeRadioButton" RepeatDirection="Horizontal"  runat="server" OnSelectedIndexChanged="ArrangeRadioButton_SelectedIndexChanged" AutoPostBack="true"></asp:RadioButtonList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FilterLabel" runat="server" Text="Filter" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="FilterDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true"
                                                onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <%--  <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                            <asp:CheckBox ID="ExidCheckBox" runat="server" Text="Exid Capacity" />
                                                        </div>
                                                    </div>--%>
                                    <div class="cBoth">
                                    </div>
                                    <div class="alignCenter pTop5">
                                        <asp:Button ID="ArrangeButton" runat="server" CssClass="btn-search btn fas" Text="&#xf002; Search" SkinID="0" OnClick="ArrangeButton_Click" />
                                        <asp:Button ID="ImportButton" runat="server" CssClass="btn-examcommon btn fas" Text="&#xf093; Export To New Batch" SkinID="0" Visible="false" OnClick="ImportButton_Click" />
                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ClearSearchControls_Click" />
                                        <asp:Button ID="GenerateButton" runat="server" CssClass="btn-update btn fas" Text="&#xf021; Update Student Class" OnClick="GenerateButton_Click" SkinID="0" />
                                        <asp:Button ID="ExportButton" runat="server" CssClass="btn-examcommon btn fas" Text="&#xf093; Export" OnClick="Export_Click" SkinID="0" />

                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <br />
                                    <div id="StudentMasterGridDiv" runat="server" visible="false">
                                        
                                        <div class="himssuHeader7WireBox col-md-12">
                                            <div class="himsBoxHeader" id="StudentDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <%--<div class="headerText">
                                                        <div class="">
                                                            <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="true" />
                                                        </div>
                                                    </div>--%>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div1" runat="server" visible="false">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Record Found"
                                                                    AllowPaging="false" PageSize="10" SkinID="" ShowHeader="True" DataKeyNames="DivisionId"
                                                                    ShowFooter="True" OnRowDataBound="GridView1_RowDataBound">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Class">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ClassLabel" runat="server" Text='<%#Eval("ClassName") %>'></asp:Label>
                                                                            </ItemTemplate>

                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Male">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="MaleLinkButton" runat="server" Text='<%#Eval("Male") %>' OnClick="MaleLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:Label ID="FooterMaleLabel" runat="server"></asp:Label>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Female">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="FeMaleLinkButton" runat="server" Text='<%#Eval("FeMale") %>' OnClick="FeMaleLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:Label ID="FooterFemaleLabel" runat="server"></asp:Label>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Total">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="TotalLabel" runat="server" Text='<%#Eval("Total") %>' OnClick="TotalLabel_Click"></asp:LinkButton>

                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:Label ID="FooterTotalLabel" runat="server"></asp:Label>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="AVG" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="AvgLabel" runat="server"></asp:Label>

                                                                            </ItemTemplate>

                                                                        </asp:TemplateField>
                                                                    </Columns>



                                                                </asp:GridView>
                                                            </div>
                                                            <div id="Div2" runat="server" class="table-responsive">
                                                                <asp:GridView ID="GridView2" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Record Found" OnRowDataBound="GridView2_RowDataBound"
                                                                    AllowPaging="false" PageSize="10" SkinID="" ShowHeader="True" DataKeyNames="Academicid,StudentId,ClassId,DivisionId,RollNo,DivisionName,Div_Id">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Current Class" ItemStyle-Width="20px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CurrentClassLabel" runat="server" Text='<%#Eval("Class") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Id No" ItemStyle-Width="20px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="20px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="RollNoLabel" runat="server" Text='<%#Eval("RollNo") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Name" ItemStyle-Width="50px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Percentage" ItemStyle-Width="20px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="PercentageLabel" runat="server" Text='<%#Eval("Percentage") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Convert To Class" ItemStyle-Width="20px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ConvertedClassLabel" runat="server" Text='<%#Eval("DivisionName") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="20px">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CopnvertClassRollNoLabel" runat="server" Text='<%#Eval("RollNo_Convert") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                    </Columns>

                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div id="Div3" runat="server" class="table-responsive">
                                                                <asp:GridView ID="StudentImportGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" OnRowDataBound="StudentImportGridView_RowDataBound"
                                                                    AllowPaging="false" PageSize="10" SkinID="" ShowHeader="True"
                                                                    DataKeyNames="StudentId,Code,ExemptionTypeId">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Active/InActive" ItemStyle-Width="10%">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ActiveOrInactiveCheckBox" runat="server"
                                                                                        AutoPostBack="true" OnCheckedChanged="ActiveOrInactiveCheckBox_OnCheckedChanged" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="StatusActiveOrInactiveCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:TemplateField HeaderText="Name" ItemStyle-Width="190px" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%# Bind("Name") %>' runat="server"
                                                                                    Text='<%# Bind("Name") %>' Width="185px"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <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 HeaderStyle-HorizontalAlign="Center" HeaderText="Percentage" ItemStyle-Width="10%">
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="PercentageLabel" runat="server" Text='<%#Eval("Percentage") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Left" ItemStyle-Width="10%">
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="StatusLeftCheckBox" runat="server" Enabled="false"
                                                                                        Checked='<%# DataBinder.Eval(Container.DataItem,"StatusId").ToString()=="3"?true:false %>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
               
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/student-import-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-import")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
