<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_SubjectActivityScore, App_Web_dztk0gwk" maintainscrollpositiononpostback="true" 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="leftUlMenu">
                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="220"
                                            Visible="true" runat="server" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-tasks"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Activity Grade Score"></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="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                AutoPostBack="true" CssClass="form-control"
                                                OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="ClassLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" AutoPostBack="True"
                                                OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="DivisionLabel" Text="Division" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" AutoPostBack="True"
                                                OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

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

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="SubjectLabel" Text="Subject" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="SubjectDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="StudentLabel" Text="Student" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="StudentDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" AutoPostBack="True"
                                                OnSelectedIndexChanged="StudentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div id="info" class="outerBox col-md-12" runat="server" 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="alignCenter pTop5 col-md-12">
                                        <asp:Button ID="ExportToExcelButton" Text="&#xf093; Export To Excel" runat="Server" CssClass="btn-examcommon btn fas" SkinID="0"
                                            OnClick="ExportToExcelButton_OnClick" Visible="false" />
                                    </div>
                                    <div id="Div1" class="himssuHeader6WireBox pTop5 col-md-12" runat="server" visible="true" style="width: 100%; height: 100%">
                                        <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 Indicator Assign List"
                                                            runat="server" />
                                                    </header>
                                                </div>--%>
                                                <div class="pull-right  display-flex ">
                                                    <asp:DropDownList ID="ApplyDropDownList" runat="server" CssClass="form-control"
                                                        SkinID="CustomWidthButton">
                                                    </asp:DropDownList>&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="100"
                                                        SkinID="CustomWidthTextBox" CssClass="pTop5"></asp:TextBox>&nbsp;&nbsp;
                                                    <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_click"
                                                        Text="Apply All" SkinID="0" CssClass="btn btn-apply" />&nbsp;&nbsp;
                                                    <asp:Button ID="ConvertGradeButton" runat="server" OnClick="ConvertGradeButton_click"
                                                        Text="&#xf0ec; Convert Grade" SkinID="CustomWidthButton" Visible="false" CssClass="btn btn-assign fas" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent table-responsive">
                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                >
                                                <asp:GridView ID="CSExamScoreGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false" ShowHeader="True"
                                                    DataKeyNames="Index,ActivityId,SubActivityId" OnRowDataBound="CSExamScoreGridView_RowDataBound"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="SubActivityId" HeaderText="SubActivityId" Visible="false"></asp:BoundField>
                                                        <asp:BoundField DataField="ActivityId" HeaderText="ActivityId" Visible="false"></asp:BoundField>
                                                        <asp:BoundField DataField="Index" HeaderText="Index" Visible="false"></asp:BoundField>

                                                        <asp:BoundField DataField="ActivityTitle" HeaderText="Activity" Visible="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"></asp:BoundField>
                                                        <asp:BoundField DataField="SubActivityTitle" HeaderText="Sub Activity" Visible="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px"></asp:BoundField>

                                                        <asp:TemplateField HeaderText="Grade" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px">
                                                            <ItemTemplate>
                                                                <asp:DropDownList runat="server" ID="GradeSetDetailDropDownList" SkinID="CustomWidthDropDownList"
                                                                    AutoPostBack="True"
                                                                    OnSelectedIndexChanged="GradeSetDetailDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Grade Indicator" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList runat="server" ID="GradeIndicatorDropDownList" SkinID="CustomWidthDropDownList"
                                                                    AutoPostBack="True" Enabled="false"
                                                                    OnSelectedIndexChanged="GradeIndicatorDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                            <HeaderTemplate>
                                                               
                                                                                <label class="rt-chkbox rt-chkbox-outline">

                                                                                <asp:CheckBox ID="IndicatorsIdCheckBox" runat="server" OnCheckedChanged="IndicatorsIdCheckBox_CheckedChanged"
                                                                                    AutoPostBack="True" TabIndex="8" meta:resourcekey="ReadAllCheckBoxResource1" />
                                                                                    Indicator Code
                                                                                <span></span>
                                                                       
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:TextBox runat="server" ID="IndicatorIdsTextBox" SkinID="CustomWidthTextBox" Text='<%# Bind("Indicator") %>' AutoPostBack="true">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                            <HeaderTemplate>
                                                               
                                                                                <label class="rt-chkbox rt-chkbox-outline">

                                                                                <asp:CheckBox ID="MarkCheckBox" runat="server" OnCheckedChanged="MarkCheckBox_CheckedChanged"
                                                                                    AutoPostBack="True" TabIndex="8" meta:resourcekey="ReadAllCheckBoxResource1" />
                                                                                    Marks
                                                                                <span></span>
                                                                      
                                                            </HeaderTemplate>

                                                            <ItemTemplate>
                                                                <asp:TextBox runat="server" ID="MarkTextBox" SkinID="CustomWidthTextBox" Text='<%# Bind("Marks") %>'>
                                                                </asp:TextBox>
                                                            </ItemTemplate>

                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Indicator" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:TextBox runat="server" ID="IndicatorTextBox" SkinID="CustomWidthTextBox" Text='<%# Bind("DescriptiveIndicator") %>'>
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

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

                    <%--HEDP History Ends Here--%>
                </div>
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/csexam-score-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/csexam-score")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function ConfirmExecute(obj) {
            alert(obj);
        }
    </script>
</asp:Content>
