<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="StudentManagement_ReportCriteria_StudentReportCriteria, App_Web_20emn04b" 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="StudentReportUpdatePanel" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="102"
                                                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">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-search"></i>
                                        Criteria
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <asp:Panel ID="StudentReportListDiv" runat="server">
                                    <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"
                                                CssClass="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" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ViewModeDropDownListResource" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="pTop5 col-md-12">
                                        <div class="controlLabelWidth alert alert-info">
                                            <i class="material-icons">info</i>
                                            <asp:Label ID="RamarkLabel" runat="server" Text="Add ID No with . Dot separation (Eg. 2. 5. 10)"
                                                Font-Bold="true"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="OgMainGroupDiv" runat="server" Visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationMainGroupLabel" runat="server" Text="Organization Main Group"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="OrganizationMainGroupDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                                CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="OrganizationMainGroupDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="OrgSubGroupDiv" runat="server" Visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationSubGroupLabel" runat="server" Text="Organization Sub Group"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="OrganizationSubGroupDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                                CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="OrganizationSubGroupDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="OrgGroupDiv" runat="server" Visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="OrganizationDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                                CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="DepartmentDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="DepartmentDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                                CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True" OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="CodeDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchCodeLabel" runat="server" Text="ID No" Visible="true"></asp:Label>
                                        </div>
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="MSearchCodeLabel" runat="server" SkinID="MandatoryLabel" Text="ID No" Visible="false"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3" id="ClassDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="ClassDropDownList" runat="server" CssClass="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" id="DivisionDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                        </div>
                                        <asp:DropDownList ID="DivisionDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                            OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged" />
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="StudentDropDownDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentLabel" runat="server" Text="Student"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="StudentDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3" id="StatusDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <asp:DropDownList ID="StatusDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            AutoPostBack="false" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                    </div>

                                    <div class="outerBox pTop5 col-md-3" id="ClassStatusDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassStatusLabel" runat="server" Text="Class Status"></asp:Label>
                                        </div>
                                        <asp:DropDownList ID="ClassStatusDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            AutoPostBack="false" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                    </div>
                                    <%--added by megha for 0026288--%>
                                    <div class="outerBox pTop5 col-md-3" id="ExamDiv" runat="server" Visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ExamLabel" runat="server" Text="Exam"  ></asp:Label>
                                        </div>
                                        <asp:DropDownList ID="ExamDropDownList" runat="server" class="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                             />
                                    </div>
                                    <%--added by megha for 27232--%>
                                     <div class="outerBox pTop5 col-md-3" id="PreviousSchoolDiv" runat="server" Visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="PreviousSchoolLabel" runat="server" Text="PreviousSchool/Board" ></asp:Label>
                                        </div>
                                        <asp:DropDownList ID="PreviousSchoolBoardDropDownList" runat="server" class="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                             />
                                    </div>

                                    <div class="outerBox pTop5 col-md-3" id="FromRollNoDiv" runat="server">
                                        <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" id="ToRollNoDiv" runat="server">
                                        <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>
                                    <div id="MonthDiv" runat="server" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="MonthLabel" runat="server" Text="Month"></asp:Label>
                                            </div>
                                            <asp:DropDownList ID="MonthDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                AutoPostBack="false" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                        </div>
                                    </div>
                                    <%--Changed for mantis : 35958 by Nilesh--%>
                                    <div class="outerBox pTop5 col-md-3" id="HouseDiv" runat="server" Visible ="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="HouseGroupLabel" runat="server" Text="House Group"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="HouseGroupDropDownList" runat="server"
                                                CssClass="form-control" SkinID="CustomWidthDropDownList">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="divFromAdmissionDate" runat="server" style="display: none">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromDateLabel" runat="server" Text="From Date" Visible="True"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" Visible="True"
                                                runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="divToAdmissionDate" runat="server" style="display: none">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToDateLabel" runat="server" Text="To Date" Visible="True"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="True" ID="ToDatePickerControl" Visible="True"
                                                runat="server" />
                                        </div>
                                    </div>
                                    <div id="RemarkNoteDiv" runat="server" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RemarkLabel" runat="server" Text="Remark"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="NoteLabel" runat="server" Text="Note"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="NoteTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>

                                    <div id="StudentDiv" runat="server" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromStudentCodeLabel" runat="server" Text="From ID No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="FromStudentCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToStudentCodeLabel" runat="server" Text="To ID No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="ToStudentCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>

                                    <div id="ReletiveDiv" runat="server" visible="false" class="outerBox pTop5 col-md-12 display-flex">
                                        <%--Changed for mantis : 35958 by Nilesh--%>
                                        <asp:CheckBox ID="FatherCheckBox" runat="server" Text="Display Father Detail" Visible="False"/>
                                        <asp:CheckBox ID="MotherCheckBox" runat="server" Text="Display Mother Detail" Visible="False"/>
                                        <asp:CheckBox ID="ReletiveCheckBox" runat="server" Text="Display Relative Detail" Visible="False"/>
                                        <asp:CheckBox ID="EmployeeCheckBox" runat="server" Text="Display Employee Detail" />
                                    </div>
                                    <div id="MandatoryDiv" class="outerBox11 pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:CheckBox ID="MandatoryFieldCheckBox" runat="server" AutoPostBack="true" Text="Select All" OnCheckedChanged="MandatoryFieldCheckBox_CheckedChanged" />
                                            <asp:Label ID="ApplyForAllLabel" runat="server" class="pLeft5"></asp:Label>
                                        </div>
                                        <div id="ClassDivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                            <asp:CheckBoxList runat="server" ID="MandatoryFieldCheckBoxList" SkinID="CustomWidthCheckBoxList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()" DataTextField="FieldName" DataValueField="MandatoryFeildId">
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <div class="alignCenter col-md-12 pTop5 pb5">
                                <asp:Button ID="PrintButton" Text="&#xf15b; View Report" runat="server" SkinID="0" CssClass="btn btn-print fas" OnClick="PrintButton_Click" />
                                <asp:Button ID="ClearButton" Text="&#xf12d; Clear" runat="server" OnClick="ClearButton_Click"
                                    meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn btn-clear fas" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-report-criteria")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script language="javascript" type="text/javascript">
        function validate() {
            var himsValidator = [new hims_ctl_val('<%= ReportDropDownList.ClientID %>', 'Report', "T", "", "", "", "")
            ];
            if (fnDoValidate(himsValidator))
                return true;
            else
                return false;
        }
    </script>
    <script type="text/javascript" language="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>
