<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_OMR_MarkUpdate, App_Web_1oavcyoo" 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>
                                                    
                                                    <div id="Div1" class="himssuHeader1WireBox col-md-12"  runat="server" visible="true" >
                                                        <div id="GridViewPagerDiv" runat="server" visible="True">
                                                            <div class="leftdiv">
                                                            </div>                                                          
                                                        </div>
                                                        <div class="himsBoxContent card-body table-responsive">   
                                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                            </div>                                                           
                                                            <asp:GridView ID="ExamGridView" runat="server" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="ExamDetailId,ClassSubjectId"
                                                                 CssClass="table table-striped table-bordered table-hover" 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 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="Status" ItemStyle-Width="11%" ItemStyle-Wrap="true"  HeaderStyle-HorizontalAlign="Left" >
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusLabel" runat="server" Width="130px" Text='<%# Bind("IsUpdated") %>'>' </asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="11%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField  HeaderStyle-HorizontalAlign ="Left" ItemStyle-Width="20%"  >                                
                                                                        <HeaderTemplate>
                                                                              <ItemStyle HorizontalAlign="Left" />
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="HeaderLable" Text="Update" runat="server"  AutoPostBack="True"></asp:Label>
                                                                                </ItemTemplate>    
                                                                         </HeaderTemplate>
                                                                          <ItemTemplate>
                                                                                    <asp:Button ID="UpdateButton" runat="server" SkinID="CustomWidthButton" 
                                                                                    AutoPostBack="true" onclick="UpdateButton_Click" CssClass="btn btn-assign"
                                                                                    Text="Update" />
                                                                         </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>                                                          
                                                        </div>
                                                    </div>                                                   
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                </div>                               
                            </td>
                        </tr>
                    </table>                 
                </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>