<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_FAGroupMaster, 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" %>
<%--<%@ Register Src="~/UserControls/Emrd/EmrdPatientSearch.ascx" TagName="EmrdPtSearch" TagPrefix="EPS" %>
<%@ Register Src="~/UserControls/Common/PatientSearch/PatientSearch.ascx" TagName="PatientSearchUserControl" TagPrefix="PS" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse; background-color: White"
                        cellpadding="0" cellspacing="0">
                        <tr>
                            <td 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="200px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="111"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top; padding-left: 10px" width="99%">
                                <div class="himssuHeader5WireBox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                </div>
                                                <div class="fRight" style="margin-top: -20px">
                                                    <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                                        CssClass="AddButton" Text="Add" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="SearchPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <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" Width="150px" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <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" Width="150px" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div align="center">
                                                    <asp:Button ID="SearchButton" Text="Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" CssClass="PrimaryButton" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="Clear" OnClick="ResetButton_Click" />
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div id="Div2" class="himssuHeader1WireBox" runat="server" style="width: 99%; margin-right: 5px;">
                                                    <div id="GradeSetMasterListDetailDiv" runat="server" visible="false">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                        </div>
                                                        <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 align="right" class="fRight" style="margin-top: -0px;">
                                                                    <uc1:GridViewPager ID="FAGroupMasterGridViewPager" runat="server" ParentGridView="FAGroupMasterGridView"
                                                                        OnFirstRecordClick="FAGroupMasterGridViewPager_FirstRecordClick" OnLastRecordClick="FAGroupMasterGridViewPager_LastRecordClick"
                                                                        OnNextRecordClick="FAGroupMasterGridViewPager_NextRecordClick" OnPrevRecordClick="FAGroupMasterGridViewPager_PrevRecordClick"
                                                                        OnTextBoxValueChange="FAGroupMasterGridViewPager_TextBoxValueChange" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <div id="Div5" runat="server" visible="false">
                                                                <asp:GridView ID="FAGroupMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    AllowPaging="true" PageSize="5" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="Id" OnRowDataBound="FAGroupMasterGridView_RowDataBound" OnPageIndexChanging="FAGroupMasterGridView_PageIndexChanging">
                                                                    <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="20%" />
                                                                        <asp:BoundField DataField="Number" HeaderText="Number" ItemStyle-Width="20%" />
                                                                        <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="30%" />
                                                                        <asp:BoundField DataField="OrderIndex" HeaderText="OrderIndex" ItemStyle-Width="30%" />
                                                                        <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>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="himssuHeader1WireBox" id="DetailDiv" runat="server" visible="false">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="Label1" runat="server" Text="FA Group Master"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="fRight" style="margin-top: -20px">
                                            <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                            <asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" />
                                                            <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" />
                                                            <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" />
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                            CssClass="BackButton" Text="Back" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="FAGroupCodeLabel" Text="Code" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="FAGroupCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="20" Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <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"
                                                            Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="FAGroupTitleLabel" Text="Name" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="FAGroupTitleTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="100"
                                                            Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="spacer">
                                                    <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="GradeSetLabel" Text="Grade Set" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="GradeSetDropDownList" SkinID="CustomWidthDropDownList"
                                                            Width="150px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <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" Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>



                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pTop5">
                                                        <asp:CheckBox ID="ObsoleteCheckBox" runat="server" />
                                                        <asp:Label ID="ObsoleteLabel" runat="server" Text="InActive" class="pLeft5"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="fLeft pRight5">
                                                        <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="spacer">
                                                    <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                </div>
                                                <div id="Div1" class="himssuHeader6WireBox" runat="server" visible="true" style="width: 99%; height: 100%">
                                                    <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText fLeft">
                                                                <asp:Label ID="GridViewLabel" Text="FA Master" runat="server" />
                                                            </div>
                                                            <div class="fRight -pTop10">
                                                                <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList"
                                                                    Width="50px" runat="server" 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" Width="60px" class="buttonLBlue" OnClick="AddButton_Click"
                                                                    Text="Add" Style="vertical-align: top; margin-top: -4px;" />
                                                            </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%;"> --%>
                                                        <asp:GridView ID="FAMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" OnRowDataBound="FAMasterGridView_OnRowDataBound"
                                                            DataKeyNames="FAMasterId,Index,CCEFAGroupId">
                                                            <Columns>
                                                                <asp:BoundField DataField="FAMasterId" HeaderText="FAMasterId" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="Index" HeaderText="Index" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="CCEFAGroupId" HeaderText="CCEFAGroupId" Visible="false"></asp:BoundField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="FATitleTextBox" runat="server" SkinID="CustomWidthTextBox" Width="225px"
                                                                            MaxLength="20" Text='<%# Bind("FAMasterTitle") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Remark" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="FARemarkTextBox" runat="server" SkinID="CustomWidthTextBox" Width="225px"
                                                                            MaxLength="100" Text='<%# Bind("Remark") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="OrderIndex" ItemStyle-Width="12%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="FAOrderIndexTextBox" 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,"FAOrderIndex").ToString()=="0"? "":Eval("FAOrderIndex") %>'></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>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                            </td>
                        </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/fagroup-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/fagroup-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>