<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_EmployeeViewResult, App_Web_u21icgua" enableEventValidation="false" viewStateEncryptionMode="Never" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="EmployeeViewResultUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont" runat="server" id="ScreenGroupTableId">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="213"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="contentHolder">
                        <div class="himssuHeader1WireBox  card card-box" runat="server" id="SearchDiv">
                            <div class="himsBoxHeader card-head">
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                            <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()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                        OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                                    </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()" AutoPostBack="true"
                                                        OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ExamLabelLabel3" runat="server" Text="Exam"></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_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server" visible="false">
                                            <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                <div class="himsBoxTitle">
                                                    <div class="gridHeaderText fLeft">
                                                        <asp:Label ID="GridViewLabel" Text="" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="gridHeaderText">
                                                    <header>
                                                        <asp:Label ID="Label2" Text="Class Result List" runat="server" Font-Bold="true" />
                                                    </header>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent table-responsive">
                                                <asp:GridView ID="EmployeeViewResultGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover" AllowPaging="false"
                                                    ShowHeader="true" DataKeyNames="AcademicId,Code,StudentName,TotalMarks,TotalObtain,Percentage" SkinID="" OnRowDataBound="EmployeeViewResultGridView_RowDataBound">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select"
                                                                    Text="Select" CausesValidation="false" OnClick="EditLinkButton_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="StudentName" HeaderText="Student Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Code" HeaderText="Code" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="TotalMarks" HeaderText="Total Marks" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="TotalObtain" HeaderText="Total Obtain" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="ResultStatus" HeaderText="Result Status" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Percentage" HeaderText="Percentage" HeaderStyle-HorizontalAlign="Left" />
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>

                        <div class="himssuHeader1WireBox card card-box" runat="server" id="DetailDiv" visible="false">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-users"></i>
                                            <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Student Wise Exam Result"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                                <div class="fRight mt-27 pagination display-flex">
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="BackButton" runat="Server" SkinID="0" class="btn btn-back fas" Text="&#xf30a; Back" OnClick="BackButton_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                    <div class="pTop15 col-md-3 display-flex">
                                        <asp:Label ID="ClassDivisionLabel" runat="server" Text="Class-Division : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label>
                                        <asp:Label runat="server" ID="ClassDivisionTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                        </asp:Label>
                                    </div>
                                    <div class="pTop15 col-md-3 display-flex">
                                        <asp:Label ID="IdNoLabel" runat="server" Text="Id No : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label>
                                        <asp:Label runat="server" ID="IdNoBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                        </asp:Label>
                                    </div>
                                    <div class="pTop15 col-md-6 display-flex">
                                        <asp:Label ID="StudentNameLabel" runat="server" Text="Student Name : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label>
                                        <asp:Label runat="server" ID="StudentNameTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                        </asp:Label>
                                    </div>
                                    <div class="cBoth"></div>
                                    <div class="pTop15 col-md-3 display-flex">
                                        <asp:Label ID="TotalMarksLabel" runat="server" Text="Total Marks : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label>
                                        <asp:Label runat="server" ID="TotalMarksTextboxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                        </asp:Label>
                                    </div>
                                    <div class="pTop15 col-md-3 display-flex">
                                        <asp:Label ID="TotalObtainLabel" runat="server" Text="Total Obtain : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label>
                                        <asp:Label runat="server" ID="TotalObtainTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                        </asp:Label>
                                    </div>
                                    <div class="pTop15 col-md-3 display-flex">
                                        <asp:Label ID="PercentageLabel" runat="server" Text="Percentage : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label>
                                        <asp:Label runat="server" ID="PercentageTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                        </asp:Label>
                                    </div>
                                    <div class="cBoth"></div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ExamLabel" runat="server" Text="Exam" SkinID="MandatoryLabel" Font-Bold="true"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SelectExamDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="SelectExamDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="cBoth"></div>
                                    <div id="StudentWiseExamResultDiv" class="himssuHeader7WireBox col-md-12" runat="server" visible="false">
                                        <div class="himsBoxContent table-responsive">
                                            <asp:GridView ID="StudentWiseExamResultGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover" AllowPaging="false"
                                                ShowHeader="true" SkinID="">
                                                <Columns>
                                                    <asp:BoundField DataField="SubjectName" HeaderText="Subject Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                    <asp:BoundField DataField="Maximum" HeaderText="Maximum Marks" HeaderStyle-HorizontalAlign="Left" />
                                                    <asp:BoundField DataField="Minimum" HeaderText="Minimum Marks" HeaderStyle-HorizontalAlign="Left" />
                                                    <asp:BoundField DataField="Obtain" HeaderText="Obtained" HeaderStyle-HorizontalAlign="Left" />
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/emp-view-result")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
