<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_EExam_TestAnalysis, App_Web_1l30h5gc" 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">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="145"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </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-chart-line"></i>
                                        <asp:Label ID="GridViewLabel" Text="Analysis" runat="server" />
                                    </header>
                                </div>
                                <div class="fRight" style="margin-top: -4px">
                                </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>
                                                <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 class="active">
                                                <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>
                                    <table width="100%" style="width: 100%">
                                        <div class="contentHolder">
                                            <tr>
                                                <td style="vertical-align: top; border-top: 0px solid gray !important; margin-top: -5px">
                                                    <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1">
                                                        <div class="himsBoxContent">
                                                            <div class="contentHolder">
                                                                <div class="cBoth">
                                                                </div>
                                                                <div class="himssuHeader6WireBox col-md-12">
                                                                    <div id="TestTopicDetailDiv2" runat="server" visible="false">
                                                                        <div class="himsBoxHeader card-head inner" id="TestTopicGridViewPagerDiv" runat="server" visible="false">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                            <div class="himsBoxTitle">
                                                                                <div class="headerText fLeft">
                                                                                    <header>
                                                                                        <asp:Label ID="Label2" Text="Test Topic Analysis" runat="server" />
                                                                                    </header>
                                                                                </div>

                                                                            </div>
                                                                        </div>
                                                                        <div class="col-md-12">
                                                                            <div class="pull-right ">
                                                                                <asp:Button ID="AllQuestionButton" runat="server" Text="All Question"
                                                                                    SkinID="0" CssClass="btn btn-examcommon fas" OnClick="AllQuestionButton_Click" />
                                                                                <asp:Button ID="PrintButton" runat="server" Text="&#xf02f; Print" OnClick="PrintButton_Click"
                                                                                    SkinID="0" CssClass="btn btn-print fas" />
                                                                                <asp:Button ID="ViewReportButton" runat="server" Text="&#xf15c; View Report" OnClick="ViewReportButton_Click"
                                                                                    SkinID="0" CssClass="fas btn btn-report" />
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent">
                                                                            <div id="Div1" runat="server" visible="true" class="table-responsive">
                                                                                <div id="GridviewTopicMassegDiv" class="himsBoxContentMsg" runat="server" visible="false">
                                                                                </div>
                                                                                <asp:GridView ID="TestTopicAnalysisGridView1" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    EmptyDataText="No Records Found !!" AllowPaging="False" DataKeyNames="TopicId"
                                                                                    CssClass="table table-striped table-bordered table-hover" ShowHeader="True">
                                                                                    <Columns>
                                                                                        <asp:TemplateField ItemStyle-Width="15%" HeaderText="Question Wise">
                                                                                            <ItemTemplate>
                                                                                                <asp:LinkButton ID="TestTopicLinkButtonId" runat="server" Text="View" OnClick="TestTopicLinkButton_Click"></asp:LinkButton>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                         <asp:TemplateField ItemStyle-Width="15%" HeaderText="Student Wise">
                                                                                            <ItemTemplate>
                                                                                                <asp:LinkButton ID="StudentWiseLinkButtonId" runat="server" Text="View" OnClick="StudentWiseLinkButton_Click"></asp:LinkButton>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="TopicName" HeaderText="Topic" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="RightquestionCount" HeaderText="Right" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="WrongquestionCount" HeaderText="Wrong" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="SkipquestionCount" HeaderText="Skip" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="NotAttemptQuestionCount" HeaderText="Not Attempt" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>

                                                                       
                                                                    </div>
                                                                    <div class="cBoth">
                                                                	</div>
                                                                    &nbsp&nbsp&nbsp&nbsp
                                                                    <div id="StudentWiseDiv" runat="server" visible="true">
                                                                     <div class="himsBoxContent">
                                                                            <div id="Div2" runat="server" visible="true">
                                                                                <div id="TestParticipantDiv" class="himsBoxContentMsg" runat="server" visible="true">
                                                                                    <asp:PlaceHolder ID="TestParticipantDetail" runat="server" />
                                                                                </div>
                                                                               
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent" id="TestQuestionAnalysisDiv" runat="server" visible="false">
                                                            <div class="contentHolder">
                                                                <div class="cBoth">
                                                                </div>
                                                                <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="gridHeaderText fLeft">
                                                                                    <header>
                                                                                        <asp:Label ID="Label1" Text="Test Question Analysis" runat="server" />
                                                                                    </header>
                                                                                </div>
                                                                                <div class="pull-right col-md-3 display-flex">
                                                                                    <asp:Button ID="PrintBulkButton" runat="server" Text="&#xf02f;  Print" OnClick="PrintBulkButton_Click"
                                                                                        SkinID="0" CssClass="btn btn-print fas" />
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent">
                                                                            <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="false">
                                                                                </div>
                                                                                <asp:GridView ID="TestAnalysisGridview" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    EmptyDataText="No Records Found !!" AllowPaging="False" DataKeyNames=""
                                                                                    CssClass="table table-striped table-bordered table-hover" ShowHeader="True">
                                                                                    <Columns>
                                                                                        <asp:TemplateField ItemStyle-Width="4%" HeaderText="Number">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label runat="server" ID="OrderIndexLable" Text='<%#Bind("OrderIndex") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField ItemStyle-Width="40%" HeaderText="Question">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label runat="server" ID="QuestionDescriptionLable" Text='<%#Bind("QuestionDescription") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="TopicName" HeaderText="Topic" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="RightquestionCount" HeaderText="Right" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="WrongquestionCount" HeaderText="Wrong" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="SkipquestionCount" HeaderText="Skip" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                        <asp:BoundField DataField="NotAttemptQuestionCount" HeaderText="Not Attempt" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </div>
                                    </table>
                                </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>

     <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                args.set_errorHandled(true);
            }
        }

        function StudentWiseDetails(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.Detail_' + id).css('display') == 'none') {
                $('.Detail_' + id).css('display', 'table-row');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');
               
            }
        }

        function RightQuestionDetail(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.RightQuestionsDetail_' + id).css('display') == 'none') {
                $('.RightQuestionsDetail_' + id).css('display', 'table-row');
                $('.Detail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');
             
            }
     
        }
        function WrongQuestionDetail(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.WrongQuestionsDetail_' + id).css('display') == 'none') {
                $('.WrongQuestionsDetail_' + id).css('display', 'table-row');
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');

            }

        }

        function NotAttQuestionDetail(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.NotAttQuestionsDetail_' + id).css('display') == 'none') {
                $('.NotAttQuestionsDetail_' + id).css('display', 'table-row');
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');

            }
        }

        function SkippQuestionDetail(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.SkippQuestionsDetail_' + id).css('display') == 'none') {
                $('.SkippQuestionsDetail_' + id).css('display', 'table-row');
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
                $('.RightQuestionsDetail_' + id).css('display', 'none');
                $('.WrongQuestionsDetail_' + id).css('display', 'none');
                $('.NotAttQuestionsDetail_' + id).css('display', 'none');
                $('.SkippQuestionsDetail_' + id).css('display', 'none');

            }

        }
 
    </script>

</asp:Content>
