<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_EExam_Result, App_Web_oilchntj" title="Result" 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" %>
<%@ Register Src="~/UserControls/EExam/TestMasterDetail.ascx" TagName="TestDetailControl" TagPrefix="TestDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                    <div class="himssuHeader3WireBox">
                        
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="145"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                              
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <TestDetail:TestDetailControl ID="TestDetailUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head" id="PagerDiv" runat="server">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-file"></i>
                                        <asp:Label ID="GridViewLabel" Text="Result" runat="server" />
                                    </header>
                                </div>
                                <div class="fRight mt-27 pagination display-flex ">
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel2" runat="Server">
                                <div class="contentHolder">
                                    <div class="navgraybackground">
                                        <ul class="nav nav-tabs">
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf02d; Test" ID="TestMendatoryButton" CssClass="transparenttab fas" SkinID="0" OnClick="Test_OnClick"
                                                        runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf079; Auto Generate Questions" ID="AutoGeneratequestionButton" CssClass="transparenttab fas"
                                                        OnClick="AutogeneratedQuestion_OnClick" SkinID="0" Enabled="true" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf059; Questions" ID="AddQuestionDetailButton" CssClass="transparenttab fas" OnClick="AddQuestion_OnClick"
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf0ae; Assign" ID="AssignPArticipantDetailButton" CssClass="transparenttab fas"
                                                        OnClick="AssignParticipant_OnClick" SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li class="active">
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf249; Result" ID="ResultButton" CssClass="transparenttab fas" OnClick="Result_OnClick" SkinID="0" Enabled="true" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf201; Analysis" ID="TestAnalysisButton" CssClass="transparenttab fas" OnClick="TestAnalysis_OnClick" SkinID="0" Enabled="true" runat="server" />
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="fRight">
                                        <asp:Button ID="SyncDataFromAzureButton" runat="server" Text="Sync Data From Azure" SkinID="0" Visible="false" CssClass="btn btn-assign fas" OnClick="SyncDataFromAzureButton_Click" ToolTip="Test Participant,Test Participant Answer" />
                                        <asp:Button ID="DeleteButton" runat="server" Text="&#xf2ed; Delete" SkinID="0" CssClass="btn btn-delete fas" OnClick="DeleteButton_Click" />
                                        <asp:Button ID="PrintBulkButton" runat="server" Text="&#xf02f; Print" OnClick="PrintButton_Click" SkinID="0" CssClass="btn btn-print fas"/>
                                    </div>
                                  
                                                    <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1">
                                                        <div class="himsBoxContent">
                                                            <div class="contentHolder">
                                                               
                                                                <div class="himssuHeader6WireBox col-md-12">
                                                                    <div id="TestParticipantDetailDiv" runat="server" visible="false">
                                                                        <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="false">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                            <div class="himsBoxTitle">
                                                                                
                                                                                <div class="width-100"> 
                                                                                    <asp:Label ID="TestTypeLabelL" runat="server" Text="Test Type:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                                                        &nbsp; &nbsp;   <asp:Label ID="TestTypeLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label> 
                                                                                &nbsp; &nbsp; &nbsp; &nbsp;  <asp:Label ID="TotalMarksLabelL" runat="server" Text="Total Marks:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                                                &nbsp; &nbsp;   <asp:Label ID="TotalMarksLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                                                               &nbsp; &nbsp; &nbsp; &nbsp;      <asp:Label ID="TotalQuestionsLabelL" runat="server" Text="Total Questions:" Font-Bold="true" SkinID="CustomWidthLabel"></asp:Label>
                                                                                &nbsp; &nbsp;      <asp:Label ID="TotalQuestionsLabelT" runat="server" SkinID="CustomWidthLabel"></asp:Label>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent">
                                                                            <div id="Div5" runat="server" visible="true">
                                                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="false">
                                                                                </div>
                                                                                <asp:GridView ID="TestParticipantGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    EmptyDataText="No Records Found !!" AllowPaging="False" DataKeyNames="AcademicId,SourceId,SourceTypeId,TestParticipantId"
                                                                                    CssClass="table table-striped table-bordered" ShowHeader="True">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                                                            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_checked" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="SelectCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="SelectCheckBox_checked" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="ParticipantType" HeaderText="Type" ItemStyle-Width="10%" Visible="false" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="ClassName" HeaderText="Class/Dept" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="RollNo" HeaderText="RollNo" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="Code" HeaderText="Id No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:TemplateField HeaderText="Scored Marks" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="ScoredMarksLabel" runat="server" Text='<%# Bind("ScoredMarks") %>'>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="RightQuestions" HeaderText="Right Question" ItemStyle-Width="10%"
                                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="WrongQuestions" HeaderText="Wrong Question" ItemStyle-Width="10%"
                                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="SkippQuestion" HeaderText="Skipped Question" ItemStyle-Width="10%"
                                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="NotAttemptedQuestions" HeaderText="Not Attempted Question" ItemStyle-Width="10%"
                                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>

                                                                    </div>
                                                                </div>
                                                                <div class="width-100">
                                                                   
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ExamLabel" Text="Exam" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="ExamDropDownList" SkinID="CustomWidthDropDownList"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" class="form-control"
                                                                                AutoPostBack="True" OnSelectedIndexChanged="ExamDropDownList_SelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SubjectLabel" Text="Subject" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList" class="form-control"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="alignCenter col-md-12 pTop15 pb5">
                                                                        <div class="fLeft pRight5">
                                                                            <asp:Button ID="ExportToButton" Text="&#xf093; Export To" runat="Server" OnClick="ExportToButton_Click" SkinID="0" CssClass="btn btn-examcommon fas" />
                                                                            <asp:Button ID="ClearExportToButton" Text="&#xf0e2; Clear" runat="Server" OnClick="ClearExportToButton_Click" SkinID="0" CssClass="btn btn-clear fas"/>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth pTop15">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                               
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
