<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_OMR_ExamSetup, App_Web_zzxcovko" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <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="165"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader1WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                <i class="fas fa-list-ul"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Exam Set Detail "></asp:Label>
                                                    </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ClassLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ExamNameLabel" Text="Exam Name" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ExamNameDropDownList" SkinID="CustomWidthDropDownList"
                                                            OnSelectedIndexChanged="ExamNameDropDownList_SelectedIndexChanged" AutoPostBack="true"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pRight5">
                                                        <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                              
                                                <br />
                                                <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server"
                                                    visible="true">
                                                    <div id="GridViewPagerDiv" runat="server" visible="True">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent width-100">
                                                        <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                        </div>
                                                        <div class="table-responsive">
                                                        <asp:GridView ID="ExamGridView" runat="server" class="himssuHeader7WireBox " AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                            AllowPaging="false" ShowHeader="true" DataKeyNames="ExamDetailId,ClassSubjectId"
                                                            OnRowDataBound="ExamGridView_RowDataBound">
                                                            <Columns>
                                                                <asp:BoundField DataField="ExamDetailId" HeaderText="Id" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ClassSubjectId" HeaderText="ClassSubjectId" Visible="false"></asp:BoundField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="3%">
                                                                    <HeaderTemplate>
                                                                        <itemstyle horizontalalign="Left" />
                                                                        <itemtemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox"  SkinID="CustomWidthCheckBox"  OnCheckedChanged = "HeaderSelectCheckBox_OnCheckedChanged"   runat="server"  AutoPostBack="True"></asp:CheckBox>
                                                                                <span></span>
                                                                            </label>
                                                                            </itemtemplate>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" SkinID="CustomWidthCheckBox"
                                                                            OnCheckedChanged="SelectCheckBox_Checked" Checked='<%# Eval("Selected") %>' AutoPostBack="True" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Subject" ItemStyle-Width="11%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SubjectLabel" runat="server" Width="130px" Text='<%# Bind("SubjectName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Marks" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="MarksLabel" runat="server" Width="6%" Text='<%# Bind("Marks") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="NumberOfQuestion" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="NumberOfQuestionTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                                           MaxLength="100" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# DataBinder.Eval(Container.DataItem,"NumberOfQuestion").ToString()=="0"? "":Eval("NumberOfQuestion") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="WrongMarkDeduction" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="WrongMarkDeductionTextBox" SkinID="CustomWidthCheckBox" runat="server"
                                                                            MaxLength="100" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# DataBinder.Eval(Container.DataItem,"WrongMarkDeduction").ToString()=="0"? "":Eval("WrongMarkDeduction") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="NonAttemptMarkDeduction" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="NonAttemptMarkDeductionTextBox" SkinID="CustomWidthCheckBox" runat="server"
                                                                            MaxLength="100" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# DataBinder.Eval(Container.DataItem,"NonAttemptMarkDeduction").ToString()=="0"? "":Eval("NonAttemptMarkDeduction") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="MultiAttemptMarkDeduction" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="MultiAttemptMarkDeductionTextBox" SkinID="CustomWidthCheckBox" runat="server"
                                                                            MaxLength="100" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                            onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# DataBinder.Eval(Container.DataItem,"MultiAttemptMarkDeduction").ToString()=="0"? "":Eval("MultiAttemptMarkDeduction") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="PaperSeriese" ItemStyle-Width="9%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList runat="server" ID="PaperSerieseDropDownList" SkinID="CustomWidthDropDownList"
                                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="false">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="IsMultiTrueAns" ItemStyle-Width="10%" SortExpression="IsMultiTrueAns"
                                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="IsMultiTrueAnsCheckBox" Text="" SkinID="CustomWidthCheckBox"
                                                                            Checked='<%# Eval("IsMultiTrueAns") %>' runat="server" AutoPostBack="True" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                            </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>                    
                </div>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/mark-update-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/mark-update")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>