<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_GenerateResult, App_Web_5bql01as" uiculture="auto" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server" UpdateMode="Always">
        <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="105"
                                                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-retweet"></i>
                                        <asp:Label ID="GenerateResultLabel" runat="server" Text="Generate Result"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer ID="GenerateMarksTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="GenerateMarksTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel ID="GenerateMarksDetails" runat="server" HeaderText="Generate Marks">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Generate Result</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ExamGroupLabel" Text="ExamSubGroup" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ExamGroupDropDown" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                                    SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                    OnSelectedIndexChanged="ExamGroupDropDown_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                                    SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                    OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="DivisionLabel" Text="Division" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox col-md-3 pTop5" id="HierarchyWiseDiv" runat="server" visible="false">
                                                            <div class="controlLabelWidth">
                                                                <asp:CheckBox ID="HierarchyWiseCheckBox" runat="server" Text=" Hierarchy Wise" class="pLeft5" />
                                                            </div>
                                                        </div>
                                                        <div class="col-md-12 pTop5">
                                                            <div class="alert alert-info col-md-12">
                                                                <div><i class="material-icons pos-rel">info</i> | &nbsp;<asp:Label ID="NoteLabel1" runat="server" Text="Division is only for Search."></asp:Label></div>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth"></div>

                                                        <br />
                                                        <div class="alignCenter col-md-12 pTop5">

                                                            <asp:Button ID="ExamSearchButton" Text="&#xf002; Search" runat="server"
                                                                SkinID="0" class="btn-search btn fas" OnClick="ExamSearchButton_Click" />
                                                            <asp:Button ID="AnalysisButton" Text="&#xf201; Analysis" runat="server"
                                                                SkinID="0" CssClass="btn-assign btn fas" OnClick="AnalysisButton_Click" />
                                                        </div>
                                                        <div class="outerBox ">
                                                            <div class="fLeft pRight5">
                                                                <asp:HiddenField ID="ExamSettingsHiddenField" runat="server" />
                                                                <asp:HiddenField ID="ExamDetailSettingsHiddenField" runat="server" />
                                                                <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true">
                                                            <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText">
                                                                        <header>
                                                                            <asp:Label ID="GridViewLabel" Text="Result List" runat="server" />
                                                                        </header>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="EmpGridViewMessageDiv" runat="server" visible="true">
                                                                </div>
                                                                <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                                    <asp:GridView ID="GenerateResultGridview"
                                                                        runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                        AllowPaging="False" ViewStateMode="Enabled" DataKeyNames="ExamId,ClassId,DivisionId,ExamStatusId,ClassName,ReportId,ExamSubGroupId"
                                                                        OnRowDataBound="GenerateResultGridview_RowDataBound" CssClass="table table-striped table-bordered table-hover">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="ClassId" HeaderText="ClassId" Visible="false" />
                                                                            <asp:BoundField DataField="ClassName" HeaderText="ClassName" Visible="false" />
                                                                            <asp:BoundField DataField="ExamId" HeaderText="ExamId" Visible="false" />
                                                                            <asp:BoundField DataField="DivisionId" HeaderText="DivisionId" Visible="false" />
                                                                            <asp:BoundField DataField="ExamStatusId" HeaderText="ExamStatusId" Visible="false" />
                                                                            <asp:BoundField DataField="Class" HeaderText="Class" Visible="true" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="Exam" HeaderText="Exam" Visible="true" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="ReportId" HeaderText="Report" Visible="false" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Status" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="StudentNameLabel" runat="server" Text='<%# Bind("Status") %>'>' </asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderText="Sub Exam Status" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="StatusLabel" runat="server">  </asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left">
                                                                                <HeaderTemplate>
                                                                                    <itemstyle horizontalalign="Left" />
                                                                                    <itemtemplate>
                                                                                    <asp:Label ID="HeaderLable" Text="Generate Result" runat="server"  AutoPostBack="True"/>
                                                                                </itemtemplate>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Button ID="GenerateButton" runat="server" SkinID="0" CssClass="btn btn-generate fas"
                                                                                        AutoPostBack="true" OnClick="GenerateButton_Click"
                                                                                        Text="&#xf079; Generate Result" />
                                                                                    <%--CommandName="GenerateResult" 
                                                                                    CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"--%>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />

                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                                                <HeaderTemplate>
                                                                                    <itemstyle horizontalalign="Left" />
                                                                                    <itemtemplate>
                                                                                        <asp:Label ID="HeaderLable" Text="Delete Mark Entry" runat="server"  AutoPostBack="True"/>
                                                                                    </itemtemplate>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Button ID="DeleteResultButton" runat="server" SkinID="0"
                                                                                        AutoPostBack="true" CssClass="btn btn-delete fas"
                                                                                        Text="&#xf2ed; Delete Mark Entry" OnClick="DeleteResultButton_Click" />
                                                                                    <%--CommandName="GenerateResult" 
                                                                                    CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"--%>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="20%" />
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left">
                                                                                <HeaderTemplate>
                                                                                    <itemstyle horizontalalign="Left" />
                                                                                    <itemtemplate>
                                                                                        <asp:Label ID="HeaderLable" Text="Delete Result" runat="server"  AutoPostBack="True"/>
                                                                                    </itemtemplate>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:Button ID="FlushResultButton" runat="server" SkinID="0"
                                                                                        AutoPostBack="true" CssClass="btn btn-delete fas"
                                                                                        Text="&#xf2ed; Delete Result" OnClick="FlushResultButton_Click" />
                                                                                    <%--CommandName="GenerateResult" 
                                                                CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"--%>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText=" Master">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="ExamSettingLinkButton" runat="server" Font-Size="13px" OnClick="ExamSettingLinkButton_Click">Edit Setting</asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Exam Setting">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="ExamSettingReportLinkButton" runat="server" Font-Size="13px" OnClick="ExamSettingReportLinkButton_Click">View Setting</asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Detail Setting">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="ExamDetailSettingReportLinkButton" runat="server" Font-Size="13px" OnClick="ExamDetailSettingReportLinkButton_Click"> View Setting Detail</asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Mark Entry">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="MarkEntryAllSubjectButton" runat="server" Font-Size="13px" OnClick="MarkEntryAllSubjectButton_Click"> Mark Entry All Subject</asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Result Sheet">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="ResultSheetReportLinkButton" runat="server" Font-Size="13px" OnClick="ResultSheetReportLinkButton_Click">Result Sheet</asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Result List">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="ResultListReportLinkButton" runat="server" Font-Size="13px" OnClick="ResultListReportLinkButton_Click"> Result List</asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Apply Siddhi Grace Mark">
                                                                                <ItemTemplate>
                                                                                    <asp:Button ID="ApplySiddhiGraceButton" runat="server" SkinID="0" CssClass="btn btn-generate fas"
                                                                                        AutoPostBack="true" OnClick="ApplySiddhiGraceButton_Click"
                                                                                        Text="Apply Siddhi" />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Apply Krupa Grace Mark">
                                                                                <ItemTemplate>
                                                                                    <asp:Button ID="ApplyKrupaGraceButton" runat="server" SkinID="0" CssClass="btn btn-generate fas"
                                                                                        AutoPostBack="true" OnClick="ApplyKrupaGraceButton_Click"
                                                                                        Text="Apply Krupa" />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="GenerateMarksLog" runat="server" HeaderText="Generate Marks Log">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Generate Result Log</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder pTop15">

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ClassDivisionLabel" runat="server" Text="Class Division" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ClassDivisionDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" runat="server" Width="154Px" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ToDateLabel" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" runat="server" Width="154Px" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OperationLabel" Text="Operation" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft  pRight5">
                                                                <asp:DropDownList ID="OperationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                                    SkinID="CustomWidthDropDownList" class="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="alignCenter pTop5 col-md-12 center">
                                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                                SkinID="0" class="btn-search btn fas" />
                                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click"
                                                                SkinID="0" class="btn-reset btn fas" />
                                                            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                                        </div>
                                                        <div class="himsBoxContent col-md-12 pTop10">
                                                            <div class="table-responsive">
                                                                <asp:GridView ID="GenerateMarkLogGridview"
                                                                    runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                    AllowPaging="False" ViewStateMode="Enabled" DataKeyNames=""
                                                                    CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="ClassDivision" HeaderText="Class Division" />
                                                                        <asp:BoundField DataField="Operation" HeaderText="Activity" />
                                                                        <asp:BoundField DataField="OperationRemark" HeaderText="Activity Remark" />
                                                                        <asp:BoundField DataField="UserName" HeaderText="User Name" />
                                                                        <asp:BoundField DataField="CreatedDateTime" HeaderText="Activity Time" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>

                                            <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Generate Marks">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Exam Setting Changes</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder pTop15">
                                                        <%-- <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TypeLabel" Text="Type" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft  pRight5">
                                                                <asp:DropDownList ID="TypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>--%>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TypeLabel" runat="server" Text="Type" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="TypeDropDownList" SkinID="CustomWidthDropDownList" AutoPostBack="true"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="TypeDropDownList_SelectedIndexChanged">
                                                                    <asp:ListItem Text="- Select -" Value="-1" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="Exam Master" Value="1"></asp:ListItem>
                                                                    <asp:ListItem Text="Generate Required" Value="2"></asp:ListItem>
                                                                    <asp:ListItem Text="Generate Not Required" Value="3"></asp:ListItem>
                                                                    <asp:ListItem Text="Co Scholastic" Value="4"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controLabelWidth">
                                                                <asp:Label ID="ExamSettingClassLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="ExamSettingClassDropDownList" SkinID="CustomWidthDropDownList" AutoPostBack="true"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ExamSettingClassDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controLabelWidth">
                                                                <asp:Label ID="ExamSettingExamLabel" Text="Exam" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="ExamSettingExamDropDownList" SkinID="CustomWidthDropDownList"  AutoPostBack="true"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ExamSettingExamDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="alignCenter pTop5 col-md-12 center">
                                                            <asp:Button ID="ExamSettingSearchButton" Text="&#xf002; Search" runat="Server"
                                                                SkinID="0" class="btn-search btn fas" OnClick="ExamSettingSearchButton_Click" />
                                                            <asp:Button ID="ExamSettingSaveButton" Text=" Save" runat="Server"
                                                                SkinID="0" class="fas btn btn-save" OnClick="ExamSettingSaveButton_Click"/>
                                                            <%-- <asp:Button ID="Button2" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click"
                                                                SkinID="0" class="btn-reset btn fas" />--%>
                                                            <%--   <asp:HiddenField ID="HiddenField1" runat="server" />--%>
                                                        </div>
                                                    </div>

                                                    <div id="Div2" class="himssuHeader6WireBox pTop5 col-md-12" runat="server">
                                                        <div class="himsBoxContent pTop5">

                                                            <div class="table-responsive">
                                                                <asp:GridView ID="ExamSettingGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                                    CssClass="pTop15 table table-striped table-bordered table-hover" DataKeyNames="Id">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%" HeaderStyle-Width="2%"
                                                                            ItemStyle-Wrap="true" Visible="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" runat="server" /> 
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Exam Name" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="18%" HeaderStyle-Width="18%">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ExamNameLabel" runat="server" Text='<%# Bind("Name") %>'>' </asp:Label>
                                                                            </ItemTemplate>
                                                                            <%--   <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>


                                                                        <asp:TemplateField HeaderText="ExamSettingHeader1" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader1Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting1CheckBox" SkinID="CustomWidthTextBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                    <asp:HiddenField ID="ExamSettingHeader1HiddenField" runat="server" />
                                                                            </ItemTemplate>

                                                                            <%-- <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader2" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader2Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting2CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader2HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--   <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader3" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader3Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting3CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader3HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%-- <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader4" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader4Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting4CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader4HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--   <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader5" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader5Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting5CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader5HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--   <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader6" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader6Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting6CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader6HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%-- <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader7" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader7Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting7CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader7HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--  <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader8" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader8Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting8CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader8HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--   <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader9" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader9Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting9CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader9HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--  <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader10" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader10Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting10CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader10HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%-- <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader11" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader11Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting11CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader11HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--  <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader12" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader12Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting12CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader12HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--     <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="ExamSettingHeader13" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" HeaderStyle-Width="20%">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="ExamSettingHeader13Label" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExamSetting13CheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                                <asp:HiddenField ID="ExamSettingHeader13HiddenField" runat="server" />
                                                                            </ItemTemplate>
                                                                            <%--  <ItemStyle Wrap="True" />--%>
                                                                        </asp:TemplateField>

                                                                    </Columns>
                                                                    <%--     <HeaderStyle CssClass="HeaderFreez" />
                                                                <PagerSettings Visible="False" />--%>
                                                                </asp:GridView>


                                                            </div>
                                                        </div>
                                                        <%--   </div>--%>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                </div>

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