<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_GSEBResultGenerate, App_Web_co50xtsf" 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="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="170"
                                    Visible="true" runat="server" />
                            </div>
                        </div>
                    </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="fab fa-transfer"></i>
                                        <asp:Label ID="Label1" runat="server" Text="GSEB Secondary Result Generate"></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"
                                                class="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                            </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="himssuHeader6WireBox col-md-12 pb5 mt2" runat="server" visible="true">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="headerText">
                                            <header>
                                                <asp:Label ID="GridViewLabel" Text="GSEB Exam Detail"  runat="server" />
                                            </header>
                                                </div>
                                            <div class="leftdiv"></div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText ">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div id="GridViewMessageDiv" 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="GSEBResultGenerateGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false" ShowHeader="true"
                                                    DataKeyNames="GSEBExamId,ClassId" OnRowDataBound="GSEBResultGenerateGridView_RowDataBound"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="GSEBExamId" HeaderText="GSEBExamId" Visible="false"></asp:BoundField>
                                                        <asp:BoundField DataField="ClassId" HeaderText="ClassId" Visible="false"></asp:BoundField>

                                                        <asp:TemplateField HeaderText="GSEBExamName" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ExamNameLabel" runat="server" Width="130px" Text='<%# Bind("ExamName") %>'>' </asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="10%" Wrap="True" />
                                                        </asp:TemplateField>

                                                        <%--                            <asp:TemplateField HeaderText="MaxMark" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                     <asp:Label ID="MaxMarkLabel" runat="server" Width="130px" Text='<%# Bind("MaxMark") %>'>' </asp:Label>
                                   </ItemTemplate>
                                    <ItemStyle Width="10%" Wrap="True" />
                                </asp:TemplateField>
                                                        --%>
                                                        <asp:TemplateField HeaderText="ExamName" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList runat="server" ID="ExamDropDownList" SkinID="CustomWidthDropDownList"
                                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="false">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="20%" Wrap="True" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%">
                                                            <HeaderTemplate>
                                                                <itemstyle horizontalalign="Left" />
                                                                <itemtemplate>
                                        <asp:Label ID="HeaderLable" Text="Generate" runat="server"  AutoPostBack="True"/>
                                    </itemtemplate>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Button ID="GenerateButton" runat="server" SkinID="0"
                                                                    Text="&#Xf079; Generate" OnClick="GenerateButton_Click" CssClass="btn-generate btn fas" />
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" />
                                                            <ItemStyle Width="20%" />
                                                        </asp:TemplateField>

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

                                </div>
                            </asp:Panel>
                        </div>
                    </div>



                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fal fa-transfer"></i>
                                        <asp:Label ID="Label2" runat="server" Text="GSEB Primary Result Generate"></asp:Label>
                                    </header>

                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel1" runat="Server">
                                <div class="contentHolder">

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassPrimaryLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="PrimaryClassDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                OnSelectedIndexChanged="PrimaryClassDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>


                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="fLeft pRight5">
                                            <asp:HiddenField ID="HiddenField1" runat="server" />
                                        </div>
                                    </div>
                                    <div id="Div2" class="himssuHeader6WireBox pTop5 col-md-12" runat="server" visible="true">
                                        <div class="himsBoxHeader card-head inner" id="Div3" runat="server" visible="True">
                                            <div class="headerText">
                                            <header>
                                                <asp:Label ID="PrimaryExamLabel" Text="GSEB Exam Detail" runat="server" />
                                            </header></div>
                                            <div class="leftdiv"></div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div id="Div4" 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="GSEBPrimaryResultGenerateGridView" runat="server"  AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false" ShowHeader="true"
                                                    DataKeyNames="GSEBExamId,ClassId" OnRowDataBound="GSEBPrimaryResultGenerateGridView_RowDataBound"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="GSEBExamId" HeaderText="GSEBExamId" Visible="false"></asp:BoundField>
                                                        <asp:BoundField DataField="ClassId" HeaderText="ClassId" Visible="false"></asp:BoundField>

                                                        <asp:TemplateField HeaderText="GSEBExamName" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ExamNameLabel" runat="server" Width="130px" Text='<%# Bind("ExamName") %>'>' </asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="10%" Wrap="True" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="ExamName" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList runat="server" ID="PrimaryExamDropDownList" SkinID="CustomWidthDropDownList"
                                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="false">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="20%" Wrap="True" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%">
                                                            <HeaderTemplate>
                                                                <itemstyle horizontalalign="Left" />
                                                                <itemtemplate>
                                        <asp:Label ID="HeaderLable" Text="Generate" runat="server"  AutoPostBack="True"/>
                                    </itemtemplate>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Button ID="PrimaryGenerateButton" runat="server" SkinID="0" CssClass="btn-generate btn fas"
                                                                    Text="&#Xf079; Generate" OnClick="PrimaryGenerateButton_Click" />
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" />
                                                            <ItemStyle Width="20%" />
                                                        </asp:TemplateField>

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

                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                            <%--   </div>--%>
                                        </div>
                                    </div>

                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>

                <%--HEDP History Ends Here--%>
            </div>
          
      
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/gsebresult-generate-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/gsebresult-generate")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>

