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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ 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="StudentReportUpdatePanel"
        runat="server">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <%-- <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>

                        <div class="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="170"
                                    Visible="true" runat="server" />
                            </div>
                        </div>

                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader2WireBox">
                        <div class="contentHolder">
                            <div class="himssuHeader1WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fa fa-asterisk"></i>Criteria
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                        <asp:Panel ID="StudentReportListDiv" runat="server" meta:resourcekey="SkillDivResource1">

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="">
                                                    <asp:Label ID="ReportLabel" runat="server" Text="Report" Font-Bold="true" SkinID="MandatoryLabel"></asp:Label>
                                                &nbsp;<asp:Label ID="ClientSpecificReportLabel" runat="server" ForeColor="BlueViolet" Text=" (CS)" visible="false"></asp:Label>
                                                     </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ReportDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                                        class="form-control" SkinID="CustomWidthDropDownList" AutoPostBack="true" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ReportDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ViewModeLabel" runat="server" Text="View Mode"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ViewModeDropDownList" runat="server" class="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ViewModeDropDownListResource" />
                                                </div>
                                            </div>


                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ClassLabel" runat="server" Text="Class" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ClassDropDownList" runat="server" class="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" meta:resourcekey="ClassDropDownListResource" AutoPostBack="true"
                                                        OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged" />
                                                </div>
                                            </div>




                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                                </div>
                                                <asp:DropDownList ID="DivisionDropDownList" runat="server"
                                                    class="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" />
                                            </div>


                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ExamLabel" runat="server" Text="Exam" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <asp:DropDownList ID="ExamDropDownList" runat="server" class="form-control" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                    OnSelectedIndexChanged="ExamDropDownList_OnSelectedIndexChanged" />
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SubjectLabel" runat="server" Text="Subject"></asp:Label>
                                                </div>
                                                <asp:DropDownList ID="SubjectDropDownList" runat="server"
                                                    class="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" />
                                            </div>


                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="FromRollNoLabel" runat="server" Text="From Roll No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="FromRollNoTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ToRollNoLabel" runat="server" Text="To Roll No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="ToRollNoTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)" />
                                                </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="FAGroupLabel" runat="server" Text="FA Group"></asp:Label>
                                                </div>
                                                <asp:DropDownList ID="FAGroupDropDownList" runat="server"
                                                    class="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="FAGroupDropDownList_OnSelectedIndexChanged" />
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="FALabel" runat="server" Text="FA"></asp:Label>
                                                </div>
                                                <asp:DropDownList ID="FADropDownList" runat="server"
                                                    class="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" />
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="alignCenter pTop5 col-md-12">
                                        <asp:Button ID="PrintButton" Text="&#xf15b;  Print" runat="server"
                                            OnClick="PrintButton_Click" meta:resourcekey="PrintButtonResource1" SkinID="0" CssClass="btn-print btn fas" />
                                        <asp:Button ID="ClearButton" Text="&#xf12d;  Clear" runat="server"
                                            OnClick="ClearButton_Click" meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-clear btn fas" />
                                    </div>
                                    <div class="outerBox pTop5 col-md-4">
                                        <div class="controlLabelWidth">
                                            <asp:CheckBox ID="UploadPDFCheckBox" runat="server" OnCheckedChanged="UploadPDFCheckBox_ChekedChanged"
                                                AutoPostBack="true" />
                                            <asp:Label ID="UploadPDFLabel" runat="server" Text="Upload Student Wise ResultSheet pdf" AssociatedControlID="UploadPDFCheckBox"></asp:Label>
                                        </div>
                                    </div>
                                    <div id="Div1" runat="server" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DateLabel" runat="server" Text="Result Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="DatePicker" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <asp:Button ID="UploadButton" Text="&#xf093; Upload" runat="server" OnClick="UploadButton_Click"
                                                meta:resourcekey="PrintButtonResource1" SkinID="0" CssClass="btn-examcommon btn fas" />
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="ParticularStudentWiseCheckBox" runat="server" Text="Particular Student Wise" OnCheckedChanged="ParticularStudentWiseCheckBox_CheckedChanged" AutoPostBack="true" Visible="false" />
                                                <%--<asp:Label ID="UploadPDFLabel" runat="server" Text="Upload Student Wise ResultSheet pdf"></asp:Label>--%>
                                            </div>
                                        </div>
                                        <div class="alignright col-md-12 pTop5" runat="server" visible="true">
                                             <div class="leftdiv">
                                             </div>
                                            <div class="fRight mt-27">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="ExportButton" Text="&#xf093; Export" CssClass="btn-examcommon btn fas" SkinID="0" runat="Server" OnClick="ExportButton_Click" Visible="false"/>
                                            </div>
                                           
                                        </div>
                                        <div id="ParticularStudentWise" runat="server" visible="false" class="col-md-12">
                                            <asp:GridView ID="ParticularStudentWiseGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" OnRowDataBound="ParticularStudentWiseGridView_RowDataBound"
                                                AllowPaging="false" ShowHeader="true" DataKeyNames="Code" CssClass="table table-striped table-bordered table-hover">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
                                                        ItemStyle-Wrap="true">
                                                        <HeaderTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                    Visible="true" OnCheckedChanged="HeaderSelectCheckBox_CheckedChanged" />
                                                                <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:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                    <asp:TemplateField HeaderText="Code" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:BoundField DataField="RollNo" HeaderText="RollNo" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                    <asp:TemplateField HeaderText="RollNo" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="RollNoLabel" runat="server" Text='<%# Bind("RollNo") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="50%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="50%" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Status" ItemStyle-Width="70px" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                        <ItemTemplate>
                                                            <asp:Label ID="StatLabel" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="alert alert-info">
                                                <i class="material-icons">info</i>
                                                <asp:Label ID="Label1" runat="server" Text="Uploaded pdf can viewed from Communication > Upload Result"
                                                    SkinID="MandatoryLabel" Font-Size="X-Small"></asp:Label><br />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="pTop5 col-md-12">
                                        <div class="alert alert-info">
                                            <i class="material-icons">info</i>
                                            <asp:Label ID="Label3" runat="server" Text="To display Value set number as odd number in Co-Scholastic Exam Group detail section.
                                To display Life Skills set number as even number in Co-Scholastic Exam Group detail section."
                                                SkinID="MandatoryLabel" Font-Size="X-Small"></asp:Label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <%--HEDP History Ends Here--%>
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../../JavaScript/rjs/encrypt/gsebexam-reportcriteria-encrypt" src="../../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/gsebexam-reportcriteria")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function RedirectToMigration(MigrationUrl) {
            var newTab = window.open(MigrationUrl, '_blank');
            window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
        }
</script>
</asp:Content>

