<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_LevelSetMaster, App_Web_b1ihfkya" 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" 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="0px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="105"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top" width="100%" class="whiteboxpaddingleft">
                                <div class="himssuHeader5WireBox whitebox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <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="cBoth">
                                                </div>
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="SearchButton" Text="Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" CssClass="btn-primary" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="Clear" OnClick="ResetButton_Click" />
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div id="Div2" class="himssuHeader1WireBox box-body box-solid gridviewfont" runat="server" style="width: 100%; margin-right: 5px;">
                                                    <div id="LevelSetMasterListDetailDiv" runat="server" visible="false" >
                                                        <div class="spacer">
                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                        </div>
                                                        <div id="LevelSetMasterListDiv" 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="LevelSetSearchGridViewPager" runat="server" ParentGridView="LevelSetSearchGridView"
                                                                        OnFirstRecordClick="LevelSetSearchGridViewPager_FirstRecordClick" OnLastRecordClick="LevelSetSearchGridViewPager_LastRecordClick"
                                                                        OnNextRecordClick="LevelSetSearchGridViewPager_NextRecordClick" OnPrevRecordClick="LevelSetSearchGridViewPager_PrevRecordClick"
                                                                        OnTextBoxValueChange="LevelSetSearchGridViewPager_TextBoxValueChange" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <%--                   <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                            <ContentTemplate>--%>
                                                            <div id="Div5" runat="server" visible="false">
                                                                <asp:GridView ID="LevelSetSearchGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    AllowPaging="true" PageSize="5" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="LevelSetId" OnRowDataBound="LevelSetSearchGridView_RowDataBound"
                                                                    OnPageIndexChanging="LevelSetSearchGridView_PageIndexChanging" CssClass="table table-striped table-bordered">
                                                                    <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="LevelSetId" HeaderText="Id" ItemStyle-Width="7%" Visible="false" />
                                                                        <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="50%" 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>
                                                            <%--                      </ContentTemplate>
                                        </asp:UpdatePanel>--%>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="himssuHeader1WireBox whitebox" id="DetailDiv" runat="server" visible="false">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="Label1" runat="server" Text="Level Set Detail "></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="LevelCodeLabel" Text="Code" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="LevelCodeTextBox" 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="LevelTitleLabel" Text="Name" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="LevelTitleTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="100"
                                                            Width="150px"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <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="controlLabelWidth">
                                                </div>
                                                <div class="spacer">
                                                    <img src="../../../Images/spacer.gif" />
                                                </div>
                                                <div class="cBoth"></div>
                                                <div class="himssuHeader6WireBox box-body box-solid gridviewfont" id="Div1" runat="server" style="width: 100%;
                                                    margin-right: 5px;">
                                                    <%-- <div id="Div1" class="himssuHeader1WireBox" 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">
                                                                <asp:Label ID="GridViewLabel" Text="Level List" runat="server" />
                                                            </div>
                                                            <div class="fRight" style="vertical-align: top; margin-top: -30px;">
                                                               <asp:DropDownList ID="AddGridDropDownList" runat="server" SkinID="CustomWidthDropDownList" Width="100px" 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" />
                                                            </div>
                                                            <%--<div class="fRight">
                                   <uc1:GridViewPager ID="ChargeMasterGridViewPager" Visible = "false" runat="server"  ParentGridView="ChargeMasterGridView" 
                                      OnFirstRecordClick="ChargeMasterGridViewPager_FirstRecordClick"
                                     OnLastRecordClick="ChargeMasterGridViewPager_LastRecordClick" OnNextRecordClick="ChargeMasterGridViewPager_NextRecordClick"
                                     OnPrevRecordClick="ChargeMasterGridViewPager_PrevRecordClick" OnTextBoxValueChange="ChargeMasterGridViewPager_TextBoxValueChange" /> 
                            </div>--%>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <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="LevelGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" DataKeyNames="Id,Index" CssClass="table table-striped table-bordered">
                                                            <Columns>
                                                                <asp:BoundField DataField="Id" HeaderText="Id" Visible="false"></asp:BoundField>
                                                                <asp:BoundField DataField="Index" HeaderText="Index" Visible="false"></asp:BoundField>
                                                                <%--  <asp:BoundField DataField="LevelSetId" HeaderText="LevelSet Id" Visible ="false"></asp:BoundField>
                            <asp:BoundField DataField="Title" HeaderText="LevelTitle" Visible ="false"></asp:BoundField>  
                            <asp:BoundField DataField="IsObsolete" HeaderText="IsObsolete" Visible ="false"></asp:BoundField>   --%>
                                                                <asp:TemplateField HeaderText="Minimum Score" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="MinimumScoreTextBox" runat="server" Width="90px" MaxLength="13"
                                                                            onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                            Text='<%# DataBinder.Eval(Container.DataItem,"MinimumScore").ToString()=="0"? "":Eval("MinimumScore") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Level Code" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="LevelCodeTextBox" runat="server" Width="90px" MaxLength="20" Text='<%# Bind("LevelCode") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Level Name" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="LevelTitleTextBox" runat="server" Width="90px" MaxLength="100" Text='<%# Bind("LevelTitle") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ShowHeader="true" HeaderText="Delete">
                                                                    <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>
                                        </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/levelset-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/levelset-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
