<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_MarkEntryAllSubject, App_Web_k11ba3xi" 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">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <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="contentHolder">
                        <div class="himssuHeader1WireBox card card-box html5-fullscreen-api" id="fullscreen">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fal fa-edit"></i>
                                            <asp:Label ID="Label1" runat="server" Text="Mark Entry"></asp:Label>

                                        </header>
                                    </div>
                                </div>
                                <span class="fs-button" style="font-size: 20px"><i class="fas fa-expand-arrows-alt" style="position: relative; top: -6px;"></i></span>
                            </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="DepartmentLabel" runat="server" SkinID="MandatoryLabel" Text="Department"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                    AutoPostBack="true" onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <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">
                                                <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="DivisionLabel" Text="Division" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="True" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ExamGroupLabel" Text="Exam Group" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="ExamGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ExamGroupDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>

                                        </div>


                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ExamLabel" Text="Exam" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList runat="server" ID="ExamDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ExamDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>

                                        </div>
                                        <div class="outerBox pTop5 col-md-3" style="display: none" id="TabIndexDiv" runat="server">

                                            <div class="fLeft">

                                                <asp:CheckBox ID="ChkSetTabIndex" runat="server" Text="Set Veritical Tab Index" onclick="SetTabIndexOnClick(this)" />
                                            </div>

                                        </div>

                                        <div id="info" runat="server" class="col-md-12" visible="false">
                                            <div class="alert alert-info">
                                                <i class="material-icons">info</i> |
                                        <asp:Label ID="Label3" runat="server"></asp:Label>
                                            </div>
                                        </div>

                                        <%--  <div class="outerBox pTop5 col-md-3">
                                    <div class="fLeft pRight5">
                                        <asp:LinkButton ID="UploadToExcelLinkButton" Text="Export To Excel" runat="server" SkinID="CustomWidthLinkButton" Width="125px" CausesValidation="false"></asp:LinkButton>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="fLeft pRight5">
                                     

                                         <asp:Button ID="AddFileButton" Text="Import From Excel" runat="Server" OnClick="AddFileButton_Click"
                                                    SkinID="0" CssClass="PrimaryButton"/>
                                        <br />
                                        <asp:LinkButton runat="server" Text="Refresh Uploaded File" ID="ImportLinkButton" SkinID="CustomWidthLinkButton" Width="120px" />
                                    </div>
                                </div>--%>


                                        <div id="GridDiv" class="himssuHeader6WireBox width-100" runat="server" visible="false" style="width: 100%; height: 100%">
                                            <div class="pTop5 col-md-12 alignCenter">
                                                <%--   <asp:FileUpload ID="FileUpload1" runat="server" SkinID="CustomWidthFileUpload" Width="75px" />--%>
                                                <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                <asp:Button ID="UploadToExcelLinkButton" Text="&#xf093; Export" runat="Server" OnClick="UploadToExcelLinkButton_Click"
                                                    SkinID="0" CssClass="fa btn btn-examcommon m-b-10" />
                                                <asp:Button ID="AddFileButton" Text="&#xf019; Import From Excel" runat="Server" OnClick="AddFileButton_Click"
                                                    SkinID="0" CssClass="fas btn btn-examcommon m-b-10" />
                                                <asp:Button ID="ImportLinkButton" Text="&#xf0e2; Refresh" runat="Server" OnClick="ImportLinkButton_Click"
                                                    SkinID="0" CssClass="fas btn btn-refresh m-b-10" />

                                            </div>
                                            <div class="col-md-12 pTop5">
                                                <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="Student List For Mark Entry" runat="server" />
                                                    </header>--%>
                                                            <div class="pull-right col-md-6 display-flex mt-7">
                                                                <asp:TextBox ID="FromTextBox" runat="server" AutoPostBack="false" SkinID="CustomWidthTextBox" Visible="false" Style="top: 10px; position: relative;"></asp:TextBox>
                                                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="FromTextBox" FilterType="Numbers">
                                                                </cc1:FilteredTextBoxExtender>
                                                                &nbsp;&nbsp;&nbsp;&nbsp; 
                                                <asp:TextBox ID="ToTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="false" Style="top: 10px; position: relative;"></asp:TextBox>
                                                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="ToTextBox" FilterType="Numbers">
                                                                </cc1:FilteredTextBoxExtender>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;      
                                                                <asp:Button ID="GenerateButton" runat="server" SkinID="0" Text="Generate" CssClass="fas btn btn-generate" Visible="false" OnClick="GenerateButton_Click" />
                                                            </div>


                                                        </div>

                                                    </div>

                                                </div>


                                                <div class="himsBoxContent col-md-12 padd-0">
                                                    <%-- <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                                            <asp:Table ID="ExamDetailTable" runat="server" CellPadding="0" CellSpacing="0"
                                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow">
                                                            </asp:Table>
                                                        </div>  --%>
                                                    <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                    </div>
                                                    <%--          <div id="DivData" class="Container" style="vertical-align: top; height: 250px; width: 99.6%;">  --%>

                                                    <div class="table-responsive">
                                                        <asp:GridView ID="MarkEntryGridView" runat="server" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                            DataKeyNames="AcademicId,ResultId,ResultDetailId,IsMarkInDecimal" CssClass="table table-striped table-bordered fixed_header"
                                                            OnRowDataBound="MarkEntryGridView_RowDataBound">
                                                            <Columns>
                                                                <asp:BoundField DataField="AcademicId" HeaderText="AcademicId" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ResultId" HeaderText="ResultId" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ResultDetailId" HeaderText="ResultDetailId" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="IsMarkInDecimal" HeaderText="MarkInDecimal" Visible="false"></asp:BoundField>

                                                                <asp:TemplateField HeaderText="RollNo" ItemStyle-Wrap="true" ItemStyle-Width="53px" HeaderStyle-Width="53px" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RollNoLabel" runat="server" Text='<%# Bind("RollNo") %>'>' </asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="IDNo" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="GRNoLabel" runat="server" Text='<%# Bind("Code") %>'>' </asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Wrap="true" ItemStyle-Width="195px" HeaderStyle-Width="195px" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentNameLabel" runat="server" Text='<%# Bind("Name") %>'>' </asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Obtain1" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain1HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain1TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain1(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain2" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain2HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain2TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain2(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain3" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain3HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain3TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain3(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain4" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain4HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain4TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain4(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain5" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain5HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain5TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain5(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain6" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain6HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain6TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain6(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain7" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain7HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain7TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain7(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain8" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain8HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain8TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain8(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain9" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain9HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain9TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain9(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain10" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain10HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain10TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain10(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain11" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain11HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain11TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain11(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain12" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain12HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain12TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain12(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain13" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain13HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain13TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain13(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Obtain14" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain14HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain14TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain14(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain15" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain15HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain15TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain15(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                 <asp:TemplateField HeaderText="Obtain16" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain16HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain16TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain16(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain17" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain17HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain17TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain17(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain18" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain18HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain18TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain18(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain19" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain19HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain19TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain19(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Obtain20" ItemStyle-Wrap="true" ItemStyle-Width="73px" HeaderStyle-Width="73px" HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="Obtain20HeaderLabel" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="Obtain20TextBox" SkinID="CustomWidthTextBox" runat="server" onchange="calobtain20(this);"
                                                                            MaxLength="100"
                                                                            Text=''></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>



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



                                                    </div>
                                                    <%--   </div>--%>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--   <script data-main="../../../JavaScript/rjs/encrypt/markentry-allsubject-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/markentry-allsubject")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>

    <script type="text/javascript">
        function calobtain1(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain1HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain2(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain2HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain3(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain3HeaderLabel').text().split('-');

            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain4(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain4HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain5(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain5HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain6(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain6HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain7(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain7HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain8(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain8HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain9(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain9HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain10(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain10HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain11(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain11HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain12(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain12HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain13(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain13HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain14(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain14HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain15(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain15HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain16(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain16HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain17(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain17HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain18(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain18HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain19(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain19HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain20(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain20HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function ConfirmExecute(obj) {
            alert(obj);

        }


    </script>
    <script>


        //function toggleFullScreen() {
        //    $("body").toggleClass("sidebar-collapse");
        //    $.AdminLTE.layout.fixSidebar();
        //    //var elem = document.getElementById('fullscreen');
        //    FullScreenMethod();
        //}

        //var elem = document.documentElement;

        /* View in fullscreen */
        function toggleFullScreen() {
            $("body").toggleClass("sidebar-collapse");
            $.AdminLTE.layout.fixSidebar();
            //var elem = document.getElementById('ctl00_CP_MarkEntryGridView');
            var elem = document.documentElement;
            if (elem.requestFullscreen) {
                elem.requestFullscreen();
            } else if (elem.mozRequestFullScreen) { /* Firefox */
                elem.mozRequestFullScreen();
            } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
                elem.webkitRequestFullscreen();
            } else if (elem.msRequestFullscreen) { /* IE/Edge */
                elem.msRequestFullscreen();
            }
        }



        function FullScreenMethod() {
            $("body").toggleClass("sidebar-collapse");
            $.AdminLTE.layout.fixSidebar();
            $(".row").attr("display", "none");
            //alert("hi");
            var elem = document.getElementById('fullscreen');

            if (
                document.fullscreenEnabled ||
                document.webkitFullscreenEnabled ||
                document.mozFullScreenEnabled ||
                document.msFullscreenEnabled
            ) {
                if (
                    document.fullscreenElement ||
                    document.webkitFullscreenElement ||
                    document.mozFullScreenElement ||
                    document.msFullscreenElement
                ) {
                    if (document.exitFullscreen) {
                        document.exitFullscreen();
                    } else if (document.webkitExitFullscreen) {
                        document.webkitExitFullscreen();
                    } else if (document.mozCancelFullScreen) {
                        document.mozCancelFullScreen();
                    } else if (document.msExitFullscreen) {
                        document.msExitFullscreen();
                    }
                } else {
                    if (elem.requestFullscreen) {
                        elem.requestFullscreen();
                    } else if (elem.webkitRequestFullscreen) {
                        elem.webkitRequestFullscreen();
                    } else if (elem.mozRequestFullScreen) {
                        elem.mozRequestFullScreen();
                    } else if (elem.msRequestFullscreen) {
                        elem.msRequestFullscreen();
                    }
                }
            } else {
                console.log('Fullscreen is not supported on your browser.');
            }

        }
        $(document).ready(function () {
            $('#divContentPage').on('click', '.fs-button', function () {
                //FullScreenMethod();
                toggleFullScreen();
            });


            //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(FullScreenMethod);
        });

        function SetTabIndex() {
            // alert("hi");
            var maxRowCount = 0;

            // Set columnCount to the count of the row with the most cells
            // Loop through all rows in case some rows are larger than others
            $('#ctl00_CP_MarkEntryGridView tr:not(:first)').each(function () {
                maxRowCount = Math.max(maxRowCount, $(this).children('td').length);
            });

            // Number all of the cells in the table
            var cellCounter = 1;

            // Loop through the table, column first instead of row first
            for (var columnIndex = 0; columnIndex < maxRowCount; ++columnIndex) {
                // Loop through all the rows for the current column
                $('table tr').each(function () {
                    // ...but only look at cells matching the current column
                    var cellForCurrentColumn = $(this)
                    .children('td')
                    .eq(columnIndex)
                    .find('input');

                    // Some rows could be bigger than others,
                    // so cellForCurrentColumn might not exist for shorter rows
                    if (cellForCurrentColumn != null) {
                        // Set the tab index and then increment the counter
                        cellForCurrentColumn.attr('tabindex', cellCounter++);
                    }
                });
            }
        }

</script>
    <script type="text/javascript">
        function SetTabIndexOnClick(chkPassport) {
            //salert(chkPassport.checked);
            if (chkPassport.checked == true) {
                SetTabIndex();
                $($("#ctl00_CP_MarkEntryGridView tr:not(:first)").closest('tr').find("input:text")[0]).focus();
            }
            else {
                $('#ctl00_CP_MarkEntryGridView td').find("input").removeAttr("tabindex");
                $($("#ctl00_CP_MarkEntryGridView tr:not(:first)").closest('tr').find("input:text")[0]).focus();
            }

        }
        function validate(obj, e) {
            var r = e.charCode ? e.charCode : e.keyCode;
            if (r == 189 || r == 109) {
                obj.text = "";
                return false;
            }
            else
                return true;
        }
    </script>




</asp:Content>

