<%@ page title="Test Question" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_EExam_TestTemplateQuestion, App_Web_oilchntj" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <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">
                                    <i class="fas fa-question-circle"></i>
                                    <asp:Label ID="HeaderLabel" runat="server" Text="Test Question"></asp:Label>
                                </div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" class="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="col-md-12">
                                        <asp:Button Text="&#xf02d; Test Template" ID="TestTemplateMendatoryButton" CssClass="btn btn-assign fas" SkinID="0" OnClick="Test_OnClick"
                                            runat="server" />
                                        <asp:Button Text="&#xf059; Add Template Question" ID="AddTemplateQuestionDetailButton" CssClass="btn btn-assign fas" OnClick="AddQuestion_OnClick"
                                            SkinID="0" runat="server" />

                                    </div>
                                    <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1">
                                        <div class="himsBoxContent ">
                                            <asp:Panel ID="DetailPanel" runat="Server">
                                                <div class="contentHolder pTop5">

                                                    <div class="col-md-9 padd-0">
                                                        <div class="outerBox pTop5 col-md-6">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TopicLabel" runat="server" Text="Topic"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="TopicDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" CssClass="form-control"
                                                                    OnSelectedIndexChanged="TopicDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                                <asp:HiddenField ID="TotalMarksHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-6">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="DifficultyLevelLabel" runat="server" Text="Difficulty Level"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="DifficultyLevelDropDownList" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="DifficultyLevelLabel_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3">
                                                        <asp:Label ID="TotalMarksLabelL" runat="server" Text="Total Marks : "></asp:Label>
                                                        <asp:Label ID="TotalMarksLabelT" runat="server"></asp:Label>
                                                        <div class="cBoth">
                                                        </div>
                                                        <asp:Label ID="EasyQuestionsWeightageLabelL" runat="server" Text="Easy Questions Weightage (%) : "></asp:Label>
                                                        <asp:Label ID="EasyQuestionsWeightageLabelT" runat="server"></asp:Label>
                                                        <div class="cBoth">
                                                        </div>
                                                        <asp:Label ID="MediumQuestionsWeightageLabelL" runat="server" Text="Medium Questions Weightage (%) : "></asp:Label>
                                                        <asp:Label ID="MediumQuestionsWeightageLabelT" runat="server"></asp:Label>
                                                        <div class="cBoth">
                                                        </div>
                                                        <asp:Label ID="HardQuestionsWeightageLabelL" runat="server" Text="Hard Questions Weightage (%) : "></asp:Label>
                                                        <asp:Label ID="HardQuestionsWeightageLabelT" runat="server"></asp:Label>
                                                    </div>

                                                    <div class="col-md-6 pTop5">
                                                        <div id="Div1" class="himssuHeader6WireBox col-md-12 padd-0" runat="server">
                                                            <div id="ReasonMasterDetailDiv" visible="true" runat="server">

                                                                <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" visible="true" runat="server">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="headerText">
                                                                            <header class="fLeft">
                                                                                <asp:Label ID="GridViewLabel" Text="Question Bank List" runat="server" Font-Bold="true" />
                                                                            </header>
                                                                        </div>

                                                                    </div>
                                                                </div>
                                                                <div class="col-md-12 padd-0">
                                                                    <asp:Label ID="FilterLabelL" runat="server" Text="Filter :" Font-Bold="true"></asp:Label>
                                                                    &nbsp                                                                       
                                                                                                                <asp:CheckBox ID="IsDifficultyLevelCheckBoxL" Text="Difficulty Level" runat="server" Visible="true" OnCheckedChanged="IsDifficultyLevelCheckBoxL_checked"
                                                                                                                    AutoPostBack="true" />
                                                                    <%-- <asp:Label ID="IsDifficultyLevelLabelL" runat="server"  Font-Bold="true"></asp:Label>--%>
                                                                </div>
                                                                <div class="himsBoxContent width-100 pTop5">
                                                                    <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                                        <asp:GridView ID="QuestionBankGridView" runat="server" AutoGenerateColumns="False"
                                                                            OnRowDataBound="QuestionBankGridView_RowDataBound" CssClass="table table-striped table-bordered" AllowPaging="false" EmptyDataText="No Records Found !!"
                                                                            SkinID="" ShowHeader="True" PagerSettings-Visible="false" DataKeyNames="QuestionId,QuestionGroupId">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Question Description" ItemStyle-Width="37%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="QuestionDescriptionTextBox" CssClass="boxEllips"
                                                                                            runat="server" Text='<%# Bind("QuestionDescription") %>' Width="318px"></asp:Label>

                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Marks" ItemStyle-Width="5%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="MarksLabel" runat="server" Text='<%# Bind("Marks") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Difficulty Level" ItemStyle-Width="10%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="DifficultyLevelLabel" runat="server" Text='<%# Bind("DifficultyLevel") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Add" ItemStyle-Width="10%" SortExpression="View" HeaderStyle-HorizontalAlign="Center"
                                                                                    ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Button ID="AddButton" Text="> >" runat="Server" OnClick="AddButton_Click" CssClass="btn btn-add fas"/>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6 pTop5">
                                                        <div id="Div3" class="himssuHeader6WireBox col-md-12" runat="server">
                                                            <div id="Div4" visible="true" runat="server">

                                                                <div class="himsBoxHeader card-head inner" id="Div6" visible="true" runat="server">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="headerText">
                                                                            <header class="fLeft">
                                                                                <asp:Label ID="TestQuestionHeaderLabel" Text="Test Question List" runat="server"
                                                                                    Font-Bold="true" />
                                                                            </header>
                                                                        </div>

                                                                    </div>
                                                                </div>
                                                                <div class="col-md-12 padd-0">

                                                                    <asp:Label ID="FilterLabelR" runat="server" Text="Filter :" Font-Bold="true"></asp:Label>
                                                                    &nbsp
                                                                                          <div class="display-flex">
                                                                                              <asp:CheckBox ID="IsTopicCheckBoxR" runat="server" Visible="true" Text="Topic" OnCheckedChanged="IsTopicCheckBoxR_checked"
                                                                                                  AutoPostBack="true" />
                                                                                              <%--                                                                                                                <asp:Label ID="IsTopicLabelR" runat="server" Text="Topic" Font-Bold="true"></asp:Label>--%>
                                                                                                                &nbsp&nbsp&nbsp
                                                                                                                <asp:CheckBox ID="IsDifficultyLevelCheckBoxR" runat="server" Visible="true" Text="Difficulty Level" OnCheckedChanged="IsDifficultyLevelCheckBoxR_checked"
                                                                                                                    AutoPostBack="true" />
                                                                                              <%--                                                                                                                <asp:Label ID="IsDifficultyLevelLabelR" runat="server" Text="Difficulty Level" Font-Bold="true"></asp:Label>--%>
                                                                                          </div>
                                                                </div>
                                                                <div class="himsBoxContent width-100 pTop5">
                                                                    <div id="Div7" runat="server" visible="true" class="table-responsive">
                                                                        <asp:GridView ID="TestQuestionGridView" runat="server" AutoGenerateColumns="False"
                                                                            OnRowDataBound="TestQuestionGridView_RowDataBound" CssClass="table table-striped table-bordered" AllowPaging="false" EmptyDataText="No Records Found !!"
                                                                            SkinID="" ShowHeader="True" PagerSettings-Visible="false" DataKeyNames="QuestionId">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Question Description" ItemStyle-Width="37%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="QuestionDescription" CssClass="boxEllips"
                                                                                            runat="server" Text='<%# Bind("QuestionDescription") %>' Width="295px"></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Marks" ItemStyle-Width="5%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="MarksLabel" runat="server" Text='<%# Bind("Marks") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Difficulty Level" ItemStyle-Width="10%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="DifficultyLevelLabel" runat="server" Text='<%# Bind("DifficultyLevel") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Remove" ItemStyle-Width="10%" SortExpression="View"
                                                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Button ID="RemoveButton" Text="< <" runat="Server" OnClick="RemoveButton_Click" CssClass="btn btn-add fas" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </asp:Panel>

                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                </div>
            </div>

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