<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_EExamMarking, App_Web_zapnm0jp" enableEventValidation="false" viewStateEncryptionMode="Never" %>


<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" 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="213"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex display-flex">
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                                             
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchTestLabel" Text="Test" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchTestDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"  AutoPostBack="true" OnSelectedIndexChanged="SearchTestDropDownList_SelectedIndexChanged"
                                                    class="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                             <div class="controlLabelWidth">
                                                <asp:Label ID="TestStatusLabel" Text="Test Status" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <asp:DropDownList ID="TestStatusDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                AutoPostBack="true">
                                                <asp:ListItem Text="Completed" Value="545"></asp:ListItem>
                                                <asp:ListItem Text="Checking" Value="724" Selected="True"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                             <div class="controlLabelWidth">
                                                <asp:Label ID="MarkEntryLabel" Text="Mark Entry" runat="server"></asp:Label>
                                            </div>
                                            <asp:DropDownList ID="MarkEntryDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control" OnSelectedIndexChanged="MarkEntryDropDownList_SelectedIndexChanged"
                                                AutoPostBack="true">
                                                <asp:ListItem Text="-All-" Value="0" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Mark Enter" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Not Applicable" Value="2"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <asp:Button ID="SaveStatusButton" runat="server" SkinID="0" OnClick="SaveStatusButton_Click"
                                                Text="Save" CssClass="btn btn-apply" style="margin-top:15px;width:100px;" />
                                            <asp:Button ID="PublishMarksButton" runat="server" Text="Publish Marks" SkinID="0" 
                                                CssClass="btn btn-assign fas" OnClick="PublishMarksButton_Click" style="margin-top:15px;width:100px;" Visible="false" />
                                        </div>
                                    </asp:Panel>
                                    <%-- <div class="himsBoxContent card-body">--%>
                                <asp:Panel ID="Panel2" runat="Server">
                                    <div class="contentHolder">
                                        <div class="himssuHeader6WireBox col-md-12" id="TestParticipantDetailDiv" runat="server">
                                            <div class="himsBoxContent table-responsive">
                                               
                                                <asp:GridView ID="AvailableTestsGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="Not any Tests Available !!" AllowPaging="False"  OnRowDataBound="AvailableTestsGridView_RowDataBound"
                                                    DataKeyNames="TestParticipantId,IsDisplayResultOnComplete,IsAllowReview" ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <%--<asp:BoundField DataField="Test" HeaderText="Test" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                        <asp:BoundField DataField="ClassDivisionName" HeaderText="Class-Division" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="3%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="4%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                    
                                                        <asp:BoundField DataField="SubjectName" HeaderText="Subject" ItemStyle-Width="15%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="TotalMarks" HeaderText="Total Marks" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="ScoredMarks" HeaderText="Scored Marks" ItemStyle-Width="5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="TestStatus" HeaderText="Test Status" ItemStyle-Width="15%" visible="true"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="TestStatusId" HeaderText="Test Status" ItemStyle-Width="15%" visible="true"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                       <%-- <asp:TemplateField HeaderText="Test Time" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TestTimeLabel" runat="server" Text='<%# Eval("FromDateTime") +" - "+ Eval("ToDateTime")%>'></asp:Label>
                                                                
                                                            </ItemTemplate>
                                                        </asp:TemplateField>--%>
                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="left" ItemStyle-Wrap="true"  HeaderText="Mark Entry">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" 
                                                                    CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                       <asp:TemplateField HeaderText="Test StatusId" ItemStyle-Width="1%" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TestStatusIdLabel" runat="server" Text='<%# Eval("TestStatusId")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        
                                                       
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            <%--</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>