<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_SubjectActivityIndicatorMaster, App_Web_gkilpvrh" 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">
    <style type="text/css">
    input:disabled + input[type=image], input:read-only + a {
    pointer-events: visible;
    cursor: pointer !important;
    }
    </style>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage">
                <!-- 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="220"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">

                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-book"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Subject Activity Indicator Master"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <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" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controLabelWidth">
                                                <asp:Label ID="CALabel" Text="Subject" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SubjectMasterDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                    OnSelectedIndexChanged="SubjectMasterDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controLabelWidth">
                                                <asp:Label ID="ActivityLabel" Text="Activity" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ActivityDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ActivityDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controLabelWidth">
                                                <asp:Label ID="SubActivityLabel" Text="Sub Activity" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SubActivityDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                    OnSelectedIndexChanged="SubActivityDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                  <%--    <div class="cBoth">
                                      </div>
                                    --%>
                                    <div class="outerBox pTop5">
                                        <div class="fLeft pRight5">
                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="SubjectActivityIndicatorMasterTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="SubjectActivityIndicatorMasterTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="DetailTabPanel" runat="server" HeaderText="Subject Activity Indicator Master">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Subject Activity Indicator Master</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel" runat="Server">
                                                        <div class="contentHolder">
                                         
                                                            
                                                            <div id="Div1" class="himssuHeader6WireBox pTop15 col-md-12" runat="server" visible="true">
                                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True" >
                                                                    <div class="leftdiv"></div>

                                                                    <div class="himsBoxTitle">                                              
                                                                        <div class="pull-right display-flex">
                                                                            <asp:DropDownList ID="AddRowsToGridDropDownList" runat="server" Width="60px" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="false">
                                                                                <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Button ID="AddButton" runat="server" SkinID="0" class="fas btn btn-add " OnClick="AddButton_Click"
                                                                                            Text="&#xf067; Add" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent table-responsive pTop15">
                                                                    <asp:GridView ID="SubjectMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!"
                                                                        AllowPaging="false" ShowHeader="True"
                                                                        DataKeyNames="Id,Index,SubActivityId,GradeSetdetailId" OnRowDataBound="SubjectMasterGridView_RowDataBound"
                                                                        CssClass="table table-striped table-bordered  table-hover">
                                                                        <Columns>

                                                                            <asp:BoundField DataField="Id" HeaderText="Id" Visible="false"></asp:BoundField>
                                                                            <asp:BoundField DataField="Index" HeaderText="Index" Visible="false"></asp:BoundField>
                                                                            <asp:BoundField DataField="SubActivityId" HeaderText="CCECSId" Visible="false"></asp:BoundField>


                                                                            <asp:TemplateField HeaderText="Number" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="NumberTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                        MaxLenght="5" onblur="javascript:return fnValidateDecimal(this,5,2)" onKeypress="javascript:return MaskDecimal(event,5,2)"
                                                                                        Text='<%# DataBinder.Eval(Container.DataItem,"Number").ToString()=="0"? "":Eval("Number") %>'>
                                                                                    </asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

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

                                                                            <asp:TemplateField HeaderText="Grade" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:DropDownList ID="GradeSetdetailDropDownList" CssClass="form-control" runat="server"></asp:DropDownList>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderText="OrderIndex" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="OrderIndexTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                        MaxLength="5" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                        Text='<%# DataBinder.Eval(Container.DataItem,"OrderIndex").ToString()=="0"? "":Eval("OrderIndex") %>'></asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>




                                                                            <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton SkinID="0" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                        ToolTip="Delete" ImageUrl="../../../Images/Del.png" />
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                                            </asp:TemplateField>

                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                    <%--  </div>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="ImportTabPanel" runat="server" HeaderText="Import Subject Activity Indicator">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Subject Activity Indicator</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="ImportPanel" runat="Server">
                                                        <div class="contentHolder">
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" Text=" Download Template" NavigateUrl="~/ContentTemplates/Import/SubjectActivityIndicator.xls" CssClass="pointer fas"></asp:HyperLink>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox  col-md-3">
                                                                <asp:Label ID="Label7" runat="server" Text=""></asp:Label>
                                                            </div>
                                                            <div class="alignCenter pTop5  col-md-12">
                                                                <%--<asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />--%>
                                                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn-browser btn fas">
                                                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                                <asp:Button ID="ImportButton" runat="server" Text="&#Xf019; Import" OnClick="ImportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />

                                                            </div>

                                                            <div id="Div2" class="himssuHeader6WireBox pTop15 col-md-12" runat="server" visible="true">
                                                               <%-- <div class="himsBoxHeader card-head inner" id="Div3" runat="server" visible="True" >
                                                                    <div class="leftdiv"></div>

                                                                    <div class="himsBoxTitle">                                              
                                                                        <div class="pull-right display-flex">
                                                                            <asp:DropDownList ID="DropDownList5" runat="server" Width="60px" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="false">
                                                                                <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Button ID="Button3" runat="server" SkinID="0" class="fas btn btn-add " OnClick="AddButton_Click"
                                                                                            Text="&#xf067; Add" />
                                                                        </div>
                                                                    </div>
                                                                </div>--%>
                                                                <div class="himsBoxContent table-responsive pTop15">
                                                                    <asp:GridView ID="ImportSubjectActivityIndicatorGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!"
                                                                        AllowPaging="false" ShowHeader="True"
                                                                        DataKeyNames="Id,Index,SubActivityId,GradeSetdetailId" OnRowDataBound="ImportSubjectActivityIndicatorGridView_RowDataBound"
                                                                        CssClass="table table-striped table-bordered  table-hover">
                                                                        <Columns>

                                                                            <asp:BoundField DataField="Id" HeaderText="Id" Visible="false"></asp:BoundField>
                                                                            <asp:BoundField DataField="Index" HeaderText="Index" Visible="false"></asp:BoundField>
                                                                            <asp:BoundField DataField="SubActivityId" HeaderText="CCECSId" Visible="false"></asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Number" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="NumberTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                        MaxLenght="5" onblur="javascript:return fnValidateDecimal(this,5,2)" onKeypress="javascript:return MaskDecimal(event,5,2)"
                                                                                        Text='<%# DataBinder.Eval(Container.DataItem,"Number").ToString()=="0"? "":Eval("Number") %>'>
                                                                                    </asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

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

                                                                            <asp:TemplateField HeaderText="Grade" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:DropDownList ID="GradeSetdetailDropDownList" CssClass="form-control" runat="server"></asp:DropDownList>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderText="OrderIndex" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="OrderIndexTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                        MaxLength="5" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                        Text='<%# DataBinder.Eval(Container.DataItem,"OrderIndex").ToString()=="0"? "":Eval("OrderIndex") %>'></asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

<%--                                                                            <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton SkinID="0" ID="ActivityDeleteImageButton" runat="server" OnClick="ActivityDeleteImageButton_Click" CommandName="Delete"
                                                                                        ToolTip="Delete" ImageUrl="../../../Images/Del.png" />
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                                            </asp:TemplateField>--%>

                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                    <%--  </div>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>


                </div>

            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
 <%--   <script data-main="../../../JavaScript/rjs/subject-activity-indicator-master" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/subject-activity-indicator-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
