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

                <td 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>
                </td>
                <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="far fa-edit"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Subject Indicator Master"></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="CALabel" Text="Subject" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SubjectMasterDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                OnSelectedIndexChanged="SubjectMasterDropDownList_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">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="headerText">
                                            <header>
                                                <asp:Label ID="GridViewLabel" Text="Indicator List"
                                                    runat="server" />
                                            </header></div>
                                            <div class="leftdiv"></div>

                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                </div>
                                                <div class="fRight mt-27 display-flex">
                                                    <asp:DropDownList ID="AddRowsToGridDropDownList" runat="server" SkinID="CustomWidthDropDownList" class="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;
                                                                <asp:Button ID="AddButton" runat="server" class="btn-add btn fas" OnClick="AddButton_Click"
                                                                    Text="&#xf067; Add" SkinID="0" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="table-responsive">
                                                <asp:GridView ID="SubjectMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false" ShowHeader="True"
                                                    DataKeyNames="Id,Index,SubjectId" 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="SubjectId" HeaderText="CCECSId" Visible="false"></asp:BoundField>

                                                        <asp:TemplateField HeaderText="Number" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="NumberTextBox" runat="server" SkinID="CustomWidthTextBox" Width="100px"
                                                                    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-Width="25%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="TitleTextBox" runat="server" SkinID="CustomWidthTextBox" Width="350px" MaxLength="100" Text='<%# Bind("Title") %>'></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="OrderIndex" ItemStyle-Width="12%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="OrderIndexTextBox" runat="server" SkinID="CustomWidthTextBox" Width="125px"
                                                                    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">
                                                            <ItemTemplate>
                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                    ToolTip="Delete" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                        </asp:TemplateField>

                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                            <%--  </div>--%>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>

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

