<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" title="Class Setup" autoeventwireup="true" inherits="Pages_Administration_BulkClassSetup, App_Web_k3pxmpml" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ClassSetupUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>

            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <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 width=" 0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="167"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <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-cog"></i>
                                        <asp:Label ID="MainLabel" runat="server" Text="Bulk Class Setup"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <%--<asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                    
                                                <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="FromClassLabel" runat="server" Text="From Class" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                <cc1:FilteredTextBoxExtender ID="FromClassExtender" runat="server" TargetControlID="FromClassTextBox"
                                                        Enabled="True" FilterType="Numbers">
                                                </cc1:FilteredTextBoxExtender> 
                                                <asp:TextBox ID="FromClassTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                        Width="150px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                </div>
                                                </div>

                                                <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ToClassLabel" runat="server" Text="To Class" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                <cc1:FilteredTextBoxExtender ID="ToClassExtender" runat="server" TargetControlID="ToClassTextBox"
                                                        Enabled="True" FilterType="Numbers">
                                                </cc1:FilteredTextBoxExtender> 
                                                <asp:TextBox ID="ToClassTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                        Width="150px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                </div>
                                                </div>

                                            <div class="cBoth">
                                            </div>

                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="ApplyButton" Text="Apply" runat="Server" OnClick="ApplyButton_Click" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="spacer">
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            </asp:Panel>--%>

                                    <div id="Div1" class="himssuHeader6WireBox width-100" runat="server" visible="false">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <%--<div class="gridHeaderText fLeft">
                                                    <header>
                                                    <asp:Label ID="GridViewLabel" Text="Class List"
                                                        runat="server" />
                                                        </header>
                                                </div>--%>
                                               <div class="fRight display-flex">
                                                    <asp:TextBox ID="ApplyTextBox"  runat="server" CssClass="pTop5" ClientIDMode="Static" MaxLength="9" onkeypress="return isNumberKey(event);"></asp:TextBox>
                                                   &nbsp;
                                                    <asp:Button ID="ApplyButton" runat="server" OnClick="ApplyButton_Click" Text="Apply" SkinID="0" CssClass="btn-apply btn fas"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent col-md-12">
                                               <div id="Div4" runat="server" class="table-responsive">
                                            <asp:GridView ID="ClassSetupGridView" runat="server" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover" OnRowDataBound="ClassSetupGridView_OnRowDataBound"
                                                AllowPaging="false"
                                                ShowHeader="true"
                                                DataKeyNames="Id,Index">
                                                <Columns>

                                                    <asp:TemplateField HeaderText="Code" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="CodeTextBox" runat="server"
                                                                SkinID="CustomWidthTextBox" Width="150px" MaxLength="20"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Title" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="TitleTextBox" runat="server"
                                                                SkinID="CustomWidthTextBox" Width="150px" MaxLength="100"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Display Title" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="DisplayTitleTextBox" runat="server"
                                                                SkinID="CustomWidthTextBox" Width="150px" MaxLength="100"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Class(In Words)" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="ClassInWordTextBox" runat="server"
                                                                SkinID="CustomWidthTextBox" Width="150px" MaxLength="100"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Class Group" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:DropDownList runat="server" ID="ClassGroupDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"></asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="Order Index" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <cc1:FilteredTextBoxExtender ID="OrderIndexExtender" runat="server" TargetControlID="OrderIndexTextBox"
                                                                FilterType="Numbers" Enabled="True">
                                                            </cc1:FilteredTextBoxExtender>
                                                            <asp:TextBox ID="OrderIndexTextBox" runat="server" MaxLength="9" Text='<%# Eval("OrderIndex") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Number of Division" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <cc1:FilteredTextBoxExtender ID="DivisionExtender" runat="server" TargetControlID="DivisionTextBox"
                                                                FilterType="Numbers" Enabled="True">
                                                            </cc1:FilteredTextBoxExtender>
                                                            <asp:TextBox ID="DivisionTextBox" runat="server" MaxLength="9"></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="10%" />
                                                    </asp:TemplateField>

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

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


                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>

                </div>
                </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
            </div>
            </div>
            <div class="spacer">
                <img src="../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
   <%-- <script data-main="../../JavaScript/rjs/encrypt/bulkclass-setup-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/bulkclass-setup")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
