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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/EExam/TestMasterDetail.ascx" TagName="TestDetailControl" TagPrefix="TestDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <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">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="far fa-check-circle"></i>
                                        <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Test Participant Setup"></asp:Label>
                                    </header>
                                </div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                </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 class="active">
                                                <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>
                                                <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>

                                    <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1">
                                        <div class="himsBoxContent col-md-12">
                                            <div class="contentHolder">
                                                <div class="col-md-4 padd-0">
                                                    <div class="outerBox  col-md-12" id="DivisionDiv" runat="server" visible="false">
                                                        <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"
                                                                onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </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 card-head">
                                                                    <div class="headerText">
                                                                        <header>
                                                                            <asp:Label ID="GridViewLabel" Text="Available Source List" runat="server" />
                                                                        </header>
                                                                    </div>
                                                                    <div class="fRight mt-27 ">
                                                                        <asp:Button ID="AssignTestButtonId" runat="Server" OnClick="AssignTestButtonId_Click" SkinID="0" CssClass="btn btn-assign fas" Text="Assign" />
                                                                    </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="TestParticipantGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover" AllowPaging="False" OnRowDataBound="TestParticipantGridView_RowDataBound"
                                                                        DataKeyNames="SourceId,SourceTypeId" 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="RollNo" HeaderText="RollNo" ItemStyle-Width="15%"
                                                                                HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="65%"
                                                                                HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="himssuHeader6WireBox col-md-8 padd-0">
                                                    <div id="AssignSelectedTestDiv" runat="server" visible="false">
                                                        <div class="himsBoxHeader" id="AssignGridViewPagerDiv" runat="server" visible="true">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="col-md-12 outerBox pb15">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label1" Text="Division" runat="server" />
                                                                </div>
                                                                <asp:DropDownList runat="server" ID="DivisionSearchDropDownList1" SkinID="CustomWidthDropDownList" Visible="false"
                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="DivisionSearchDropDownList1_SelectedIndexChanged">
                                                                </asp:DropDownList>

                                                            </div>
                                                            <div class="himsBoxTitle card-head  pTop15">
                                                                <div class="headerText">
                                                                    <header>
                                                                        <asp:Label ID="AssignLabel" Text="Assign Test" runat="server" />
                                                                    </header>
                                                                </div>
                                                                <div class=" fRight mt-27 ">
                                                                    <asp:Button ID="ActivateAllButton" runat="Server"
                                                                        OnClick="ActivateAllstudentButton_Click" SkinID="0" CssClass="btn btn-examcommon fas"
                                                                        Text="ActivateAll" />

                                                                    <asp:Button ID="DeactivatedAllstudentButton" runat="Server"
                                                                        OnClick="DeactivatedAllstudentButton_Click" SkinID="0" CssClass="btn btn-examcommon fas"
                                                                        Text="DeActivatedAll" />

                                                                    <asp:Button ID="DeleteAllButton" runat="Server"
                                                                        OnClick="DeactivatedAllstudentButton_Click"
                                                                        SkinID="0" CssClass="btn btn-delete fas"
                                                                        Text="&#xf2ed; Delete All" />
                                                                </div>

                                                            </div>
                                                        </div>

                                                        <div class="himsBoxContent">
                                                            <div id="ffffff" runat="server" visible="true" class="table-responsive">
                                                                <asp:GridView ID="AssignTestGridView" runat="server" Width="100%" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" AllowPaging="False" OnRowDataBound="AssignTestGridView_RowDataBound"
                                                                    DataKeyNames="TestParticipantId,SourceId,SourceTypeId,TestStatusId" ShowHeader="True">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="DivisionName" HeaderText="Division Name" ItemStyle-Width="13%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="7%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="35%"
                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="ActivatedLinkButton" runat="server" Text="Activated"
                                                                                    OnClick="ActivatedLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="DeactiveLinkButton" runat="server" Text="Deactivated"
                                                                                    OnClick="DeActivatedLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ShowHeader="true" HeaderText="Delete">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server"
                                                                                    OnClick="DeleteImageButton_Click" ToolTip="Delete" />
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                        
                                                    </div>
                                                </div>
                                                 <div class="cBoth">
                                                                    </div>
                                                 <div class="cBoth">
                                                                    </div>
                                                 <div class="cBoth">
                                                                    </div>
                                                 <div class="col-md-12">
                                                    <div class="alert alert-info">
                                                        <span class="pTop15">
                                                            <i class="material-icons pos-rel">info</i> |&nbsp;
                                                            <b>Note  : </b>When Reactive Students or Division Students Answers Remove<b>.
                                                        </span>
                                                        </div>
                                                 </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--    <script data-main="../../JavaScript/rjs/encrypt/test-assign-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/test-assign")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
