<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_ActivityGroupMaster, App_Web_sp1zc2i5" 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 -->
               
                                <div 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>
                                </div>
                                <div class="whiteboxpaddingleft row">
                                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                                        <div class="himsBoxHeader card-head">
                                            <asp:Panel ID="Panel1" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">

                                                    <div class="headerText">
                                                        <header>
                                                            <i class="fas fa-search"></i>
                                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                        </header>
                                                        

                                                    </div>
                                                    <div class="fRight mt-27">
                                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                                             class="btn btn-add fas" Text="&#xf067; Add"  />
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <asp:Panel ID="SearchPanel" runat="Server">
                                                <div class="contentHolder">

                                                  

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchTitleLabel" runat="server" Text="Name"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SearchTitleTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                 onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchCodeLable" runat="server" Text="Code"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SearchCodeTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                 onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                   
                                                    <div class="controlLabelWidth"></div>
                                                    <div class="alignCenter pTop5 col-md-12">
                                                        <asp:Button ID="SearchButton"  Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas"  />
                                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf12d; Clear" class="btn-clear btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                                    </div>
                                                    
                                                    <div id="Div2" class="himssuHeader1WireBox col-md-12 pb5 mt2" runat="server" style="width: 100%; margin-right: 5px;">
                                                        <div id="GradeSetMasterListDetailDiv" runat="server" visible="false">
                                                         
                                                            <div id="GradeSetMasterListDiv" visible="false" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle" style="width: 99%">
                                                                    <%-- <div class="headerText">
                                                                    <div class="fLeft">
                                                                        <asp:Label ID="Label2" Text="List" runat="server" Font-Bold="true" />
                                                                    </div>
                                                                </div>--%>
                                                                    <div class="fRight mt-27">
                                                                        
                                                                        <uc1:GridViewPager ID="CSGroupMasterGridViewPager" runat="server" ParentGridView="CSGroupMasterGridView"
                                                                            OnFirstRecordClick="CSGroupMasterGridViewPager_FirstRecordClick" OnLastRecordClick="CSGroupMasterGridViewPager_LastRecordClick"
                                                                            OnNextRecordClick="CSGroupMasterGridViewPager_NextRecordClick" OnPrevRecordClick="CSGroupMasterGridViewPager_PrevRecordClick"
                                                                            OnTextBoxValueChange="CSGroupMasterGridViewPager_TextBoxValueChange" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="Div5" runat="server" visible="false">
                                                                    <div class="table-responsive">
                                                                    <asp:GridView ID="CSGroupMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        AllowPaging="true" PageSize="5" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                        DataKeyNames="Id" OnRowDataBound="CSGroupMasterGridView_RowDataBound" OnPageIndexChanging="CSGroupMasterGridView_PageIndexChanging"
                                                                        CssClass="table table-striped table-bordered table-hover">
                                                                        <Columns>

                                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                                HeaderText="">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                        CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="Id" HeaderText="Id" ItemStyle-Width="7%" Visible="false" />
                                                                            <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="Number" HeaderText="Number" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="OrderIndex" HeaderText="OrderIndex" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:TemplateField HeaderText="InActive" ItemStyle-Width="10%" SortExpression="IsObsolete"
                                                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                        </Columns>
                                                                    </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>

                                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                                        <div class="himsBoxHeader card-head">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fa fa-users"></i>
                                                         <asp:Label ID="Label1" runat="server" Text="Activity Group Master"></asp:Label>
                                                    </header>
                                                   
                                                </div>
                                            </div>
                                            <div class="fRight mt-27">

                                               <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click"  CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                                                </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click"  CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                                                </asp:LinkButton>
                                                            &nbsp;&nbsp;
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                            <asp:Label ID="TotalRecord" runat="server" />
                                                            &nbsp;&nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click"  CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                                </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click"  CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                                                </asp:LinkButton>
                                                        </div>
                                                    </td>
                                                    <td>
                                                       &nbsp;&nbsp; <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                            class="btn btn-back fas" Text="&#xf30a; Back" />
                                                    </td>
                                                </tr>
                                            </table>
                                            </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="CSGroupCodeLabel" Text="Code" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="CSGroupCodeTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                onmouseenter="showHideTooltip()" MaxLength="20" ></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="NumberLabel" Text="Number" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="NumberTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                Onkeydown="return isNumberKey(event)" onmouseenter="showHideTooltip()" MaxLength="20" ></asp:TextBox>
                                                        </div>
                                                    </div>

                                                   

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="CSGroupTitleLabel" Text="Name" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="CSGroupTitleTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                onmouseenter="showHideTooltip()" MaxLength="100" ></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="OrderIndexLabel" Text="OrderIndex" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="OrderIndexTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                Onkeydown="return isNumberKey(event)" onmouseenter="showHideTooltip()" MaxLength="5" ></asp:TextBox>
                                                        </div>
                                                    </div>



                                                    <div class="outerBox pTop5 ">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="GradeSetLabel" Text="" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:CheckBox ID="ObsoleteCheckBox" runat="server"  Text="InActive"/>
                                                            <%--<asp:Label ID="ObsoleteLabel" runat="server" Text="InActive" class="pLeft5"></asp:Label>--%>
                                                        </div>
                                                    </div>


                                                    
                                                        <div class="fLeft pRight5">
                                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                        </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="leftdiv">
                                                            </div>

                                                            <div class="himsBoxTitle">
                                                                <div class="headerText ">
                                                                    <header>
                                                                        <asp:Label ID="GridViewLabel" Text="Activity Master" runat="server" />
                                                                    </header>
                                                                    
                                                                </div>
                                                                <div class="fRight mt-27">
                                                                    <%--  <asp:DropDownList ID="AddRowsToGridDropDownList" runat="server" SkinID="CustomWidthDropDownList" Width="50px" 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>--%>
                                                                    <asp:Button ID="AddButton" runat="server"  OnClick="AddButton_Click" SkinID="0"
                                                                        class="btn btn-add fas" Text="&#xf067; Add"  />
                                                                </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">
                                                            <asp:GridView ID="ActivityMasterGridView" runat="server" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" OnRowDataBound="ActivityMasterGridView_OnRowDataBound"
                                                                AllowPaging="false" ShowHeader="True"
                                                                DataKeyNames="ActivityId,Index,ActivityGroupId"
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>

                                                                    <asp:BoundField DataField="ActivityId" HeaderText="ActivityId" Visible="false"></asp:BoundField>
                                                                    <asp:BoundField DataField="Index" HeaderText="Index" Visible="false"></asp:BoundField>
                                                                    <asp:BoundField DataField="ActivityGroupId" HeaderText="ActivityGroupId" Visible="false"></asp:BoundField>

                                                                    <%-- <asp:TemplateField HeaderText="Code" ItemStyle-Width="17%" ItemStyle-Wrap="true"  HeaderStyle-HorizontalAlign="Left" >
                                <ItemTemplate>
                                    <asp:TextBox ID="CSCodeTextBox" SkinID="CustomWidthTextBox" Width="150px" runat = "server" MaxLength="20" Text='<%# Bind("CSMasterCode") %>' 
                                    ></asp:TextBox>  
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                                                                    <asp:TemplateField HeaderText="Number" ItemStyle-Width="17%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ActivityNumberTextBox" runat="server" SkinID="CustomWidthTextBox" Width="250px" MaxLength="20"
                                                                                onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                Text='<%# DataBinder.Eval(Container.DataItem,"ActivityNumber").ToString()=="0"? "":Eval("ActivityNumber") %>'> 
                                   ></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="17%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ActivityTitleTextBox" runat="server" SkinID="CustomWidthTextBox" Width="250px" MaxLength="100" Text='<%# Bind("ActivityTitle") %>'></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="OrderIndex" ItemStyle-Width="12%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ActivityOrderIndexTextBox" runat="server" Width="60px"
                                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                Text='<%# DataBinder.Eval(Container.DataItem,"ActivityOrderIndex").ToString()=="0"? "":Eval("ActivityOrderIndex") %>'></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="10%" />
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                                </div>
                                                            <%--  </div>--%>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                </div>
                       
                        <%--HEDP History Ends Here--%>
                    </div>
               
        </ContentTemplate>
    </asp:UpdatePanel>
   <%--  <script data-main="../../../JavaScript/rjs/encrypt/activitygroup-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/activitygroup-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>

