<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_CSIndicatorMaster, 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>
    <%--<link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <script src="/../../../JavaScript/Validations.js" type="text/javascript"></script>
    <script src="/../../../JavaScript/jquery.uploadify.js" type="text/javascript"></script>
    <link href="/App_Themes/Default/uploadify.css" rel="Stylesheet" type="text/css" />
    <script src='<%# ResolveUrl("~/App_Themes/BlackTheme/plugins/jQuery/jQuery-2.1.3.min.js")%>' type="text/javascript"></script>
    <script src="/../../../JavaScript/jquery-migrate-1.2.1.js" type="text/javascript"></script>
    <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="111"
                                    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="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <i class="fas fa-chess-king"></i>
                                    <asp:Label ID="Label1" runat="server" Text="Co-Scholastic Indicator Master"></asp:Label>
                                </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="controLabelWidth">
                                            <asp:Label ID="CSGroupLabel" Text="Co-Scholastic Group" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="CSGroupMasterDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                OnSelectedIndexChanged="CSGroupMasterDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5  col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="CALabel" Text="Co-Scholastic" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="CSMasterDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                OnSelectedIndexChanged="CSMasterDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </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 class="outerBox pTop5">
                                        <div class="fLeft pRight5">
                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                        </div>
                                    </div>

                                    <div id="Div1" class="himssuHeader6WireBox pTop5 col-md-12 " runat="server" visible="true">
                                        <div class="himsBoxHeader" 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" OnClick="AddButton_Click" SkinID="0"
                                                                    Text="&#xf067; Add" class="btn-add btn fas" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <%--<div id="DivHeader" style="vertical-align: top; width: 100%;">
                        <asp:Table ID="GradeSetDetailTable" runat="server" CellPadding="0" CellSpacing="0"
                            BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow">
                        </asp:Table>
                    </div>  --%>
                                            <%-- <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" 
                            visible="False"></div>  --%>
                                            <%--<div id="DivData" class="Container" style="vertical-align: top; height: 250px; width: 99.6%;">          --%>
                                            <div class="table-responsive pTop5">
                                                <asp:GridView ID="CSMasterGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false" ShowHeader="True"
                                                    DataKeyNames="Id,Index,CCECSId,GradeSetDetailId" OnRowDataBound="CSMasterGridView_RowDataBound"
                                                    CssClass="table table-striped table-bordered table-hover col-md-12">
                                                    <Columns>

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



                                                        <%-- <asp:TemplateField HeaderText="Code" ItemStyle-Width="20%" ItemStyle-Wrap="true"  HeaderStyle-HorizontalAlign="Left" >
                                <ItemTemplate>
                                    <asp:TextBox ID="CodeTextBox" runat = "server" SkinID="CustomWidthTextBox" Width="150px" MaxLength="200" Text='<%# Bind("Code") %>' 
                                    ></asp:TextBox>  
                                </ItemTemplate>
                            </asp:TemplateField>--%>

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

                                                        <asp:TemplateField HeaderText="Grade Set" ItemStyle-Width="12%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                            <ItemTemplate>
                                                                <asp:DropDownList runat="server" ID="GradeSetDetailDropDownList" SkinID="CustomWidthDropDownList"
                                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="false">
                                                                </asp:DropDownList>
                                                            </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"
                                                                    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" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                            </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/csindicator-master" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/csindicator-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
