<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_RevenueCycleManagement_OrderEntry_ListValueTypeMaster, App_Web_2iv10hvx" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ OutputCache Duration="1" VaryByParam="none" NoStore="true" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <div id="divContentPage">
                    <!-- ContentPlaceHolder Box Starts -->
                    <div style="width: 100%">
                        <table width="100%" cellpadding="0" cellspacing="0">
                        </table>
                        <div class="spacer5">
                            <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                        </div>
                        <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td class="dashBoardLeftCont" style="width: 160px" valign="top">
                                    <%--     padding-top: 7px"--%>
                                    <div id="leftContainer">
                                        <!-- Left Container 1 Box Start -->
                                        <dl class="expandMenu">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td>
                                                        <%--   <div>
                                                        <POP:PopupAlertControl ID="PopupAlertPeriodicControlBox" runat="server" Visible="false" />
                                                    </div>--%>
                                                        <div class="himssuHeader3WireBox">
                                                            <dt id="dtSETTINGS" onclick="showHideSwitch('ddSETTINGS')">
                                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td>
                                                                            <div class="himsBoxHeader">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td style="width: 100%">
                                                                                                <div class="headerText">
                                                                                                    Master
                                                                                                </div>
                                                                                            </td>
                                                                                            <td>
                                                                                                <img name="ddSETTINGSButton" id="ddSETTINGSButton" src="../../../Images/buttonCollapse.gif"></img>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dt>
                                                            <%-- <dd style="text-align: left; margin: 0px" class="hideSwitch" id="ddSETTINGS">--%>
                                                            <dd style="text-align: left; margin: 0px" id="ddSETTINGS">
                                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td>
                                                                            <div class="himsBoxContent leftTableContainer">
                                                                                <div class="leftUlMenu">
                                                                                    <ul id="sidebarmenu1">
                                                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="135"
                                                                                            Visible="true" runat="server" />
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <div class="himsBoxFooter">
                                                                    <div>
                                                                    </div>
                                                                </div>
                                                            </dd>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dl>
                                    </div>
                                </td>
                                <td class="minMaxButton" style="width: 1%; margin: 0; vertical-align: top">
                                    <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                                </td>
                                <td style="vertical-align: top">
                                    <!-- Sub Container2 Box Start -->
                                    <div class="himssuHeader2WireBox">
                                        <div class="himsBoxHeader">
                                            <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <asp:Image ID="Image3" runat="server" class="fLeft" meta:resourcekey="Image3Resource1" />
                                                    <div class="headerText">
                                                        <asp:Label ID="Label3" runat="server" meta:resourcekey="Label3Resource1"></asp:Label>
                                                        <cc1:CollapsiblePanelExtender ID="cpe" runat="server" TargetControlID="DetailPanel"
                                                            ExpandControlID="Image3" CollapseControlID="Image3" TextLabelID="Label3" Collapsed="True"
                                                            CollapsedText="Search" ExpandedText="Search" ImageControlID="Image3" ExpandedImage="~/images/buttonCollapse.gif"
                                                            CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="himsBoxContent">
                                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                                <div class="contentHolder">
                                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label2" Text="Code" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="CodeSearchTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" Width="150px" runat="Server" MaxLength="30"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="NameSearchLabel" Text="Name" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="NameSearchTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" Width="150px" runat="Server" MaxLength="30"></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="PrimaryButton"></asp:Button>
                                                            <asp:Button ID="ResetButton" runat="server" Text="Clear" OnClick="ResetButton_Click"></asp:Button>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                    </asp:Panel>
                                                    <div id="servicdiv" class="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                                        <div id="TestParameterMasterDiv" visible="false" runat="server">
                                                            <div class="spacer">
                                                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                                                            </div>

                                                            <div class="himsBoxHeader" id="ParameterDiv1" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle" style="width: 99%">
                                                                    <div class="headerText">
                                                                        <div class="fLeft">
                                                                            <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="true"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div align="right" class="fRight" style="margin-top: -3px;">
                                                                        <uc1:GridViewPager ID="SearchGridView_GridViewPager" runat="server"
                                                                            OnFirstRecordClick="SearchGridView_GridViewPager_FirstRecordClick"
                                                                            OnLastRecordClick="SearchGridView_GridViewPager_LastRecordClick"
                                                                            OnNextRecordClick="SearchGridView_GridViewPager_NextRecordClick"
                                                                            OnPrevRecordClick="SearchGridView_GridViewPager_PrevRecordClick"
                                                                            OnTextBoxValueChange="SearchGridView_GridViewPager_TextBoxValueChange"
                                                                            ParentGridView="SearchGridView"></uc1:GridViewPager>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="ListDiv" runat="server" visible="false">
                                                                    <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                                                        <asp:Table ID="TestParameterGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                                            BackColor="#E8E8E8" ForeColor="#000000" Width="100%" GridLines="Both">
                                                                            <asp:TableRow Height="20px">
                                                                                <asp:TableCell Text="" Width="5%" Font-Bold="true"> </asp:TableCell>
                                                                                <asp:TableCell Text="Code" Width="15%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                                <asp:TableCell Text="Name" Width="15%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                                <asp:TableCell Text="InActive" Width="6%" Font-Bold="true" HorizontalAlign="Center"> </asp:TableCell>
                                                                            </asp:TableRow>
                                                                        </asp:Table>
                                                                    </div>
                                                                    <div id="Div2" visible="true" runat="server" class="Container" style="vertical-align: top; height: 109px;">
                                                                        <asp:GridView ID="SearchGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Record Found." AllowPaging="true" PageSize="5" SkinID="" ShowHeader="false" DataKeyNames="Id">
                                                                            <Columns>
                                                                                <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                            CausesValidation="false" OnClick="EditLinkButton_Click"></asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True"></ItemStyle>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="false" ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Wrap="True"></ItemStyle>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Code" ItemStyle-Width="15%" SortExpression="Code"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="CodeLabel" CssClass="boxEllips" ToolTip='<%# Bind("Code") %>' runat="server"
                                                                                            Text='<%# Bind("Code") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" Wrap="True"></ItemStyle>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Title" ItemStyle-Width="15%" SortExpression="Title"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%#  Bind("Name")  %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" Wrap="True"></ItemStyle>
                                                                                </asp:TemplateField>

                                                                                <asp:TemplateField HeaderText="InActive" ItemStyle-Width="6%" 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>
                                                                                    <ItemStyle HorizontalAlign="Center" Width="6%" Wrap="True"></ItemStyle>
                                                                                </asp:TemplateField>

                                                                            </Columns>
                                                                            <PagerSettings Visible="False"></PagerSettings>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <!-- Sub Container2 Box Ends -->
                                        <div class="spacer">
                                            <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image5Resource1" />
                                        </div>
                                        <!-- Sub Container1 Box Start -->
                                        <div class="himssuHeader1WireBox">
                                            <div class="himsBoxHeader">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <asp:Label ID="HeaderLabel" runat="server" Text="List Value Type Master" meta:resourcekey="HeaderLabelResource1"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label4" runat="server" Text="Code" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="30" AutoPostBack="false"> 
                                                            </asp:TextBox>
                                                            <asp:HiddenField ID="IdHiddenField" Value="0" runat="server"></asp:HiddenField>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="NameTitleLabel" runat="server" Text="Name" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="NameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="30"> 
                                                            </asp:TextBox>
                                                            <asp:HiddenField ID="HiddenField1" runat="server"></asp:HiddenField>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>

                                                    <div class="outerBox pTop5">
                                                        <div class="fLeft pTop5">
                                                            <asp:CheckBox ID="ObsoleteCheckBox" runat="server" meta:resourcekey="ObsoleteCheckBoxResource1" />
                                                        </div>
                                                        <div class="fLeft pLeft5 pTop10">
                                                            <asp:Label ID="IsObsoleteLabel" runat="server" Text="InActive" meta:resourcekey="IsObsoleteLabelResource2"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="spacer">
                                                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                            </div>
                                            <div class="himssuHeader1WireBox" id="NumericDiv" runat="server" visible="false">
                                                <div class="himsBoxHeader">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="headerText">
                                                            <asp:Label ID="Label1" runat="server" Text="List Value Master" meta:resourcekey="Label1Resource1"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <div class="contentHolder">

                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="CodeDetailLabel" runat="server" Text="Code" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">

                                                                <asp:TextBox ID="CodeDetailTextBox" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="100"> 
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="NameDetailLabel" runat="server" Text="Name" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">

                                                                <asp:TextBox ID="NameDetailTextBox" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="100"> 
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="alignCenter pTop5">
                                                            <asp:Button ID="AddButton" runat="server" Text="Add" OnClick="AddButton_Click" />
                                                            <asp:Button ID="ClearDetailButton" runat="server" Text="Clear"
                                                                meta:resourcekey="TestParameterDetaileCleareButtonResource1" OnClick="CleareDetaileCutton_Click" />
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div id="DrugDetailsDiv" runat="server" visible="False">
                                                            <div class="spacer">
                                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image1Resource1" />
                                                            </div>
                                                            <div class="himssuHeader1WireBox" id="PatientRelationDiv" runat="server" style="width: 100%; margin-right: 5px;">
                                                                <div class="himsBoxHeader">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle" style="width: 99%">
                                                                        <div class="headerText">
                                                                            <div class="fLeft">
                                                                                List Value Master Detail
                                                                            </div>
                                                                        </div>
                                                                        <div align="right" class="fRight" style="margin-top: -3px;">
                                                                            <uc1:GridViewPager ParentGridView="ListValueMasterGridView" ID="ListValueMasterGridViewPager"
                                                                                runat="server" OnFirstRecordClick="GridViewPager_FirstRecordClick" OnLastRecordClick="GridViewPager_LastRecordClick"
                                                                                OnNextRecordClick="GridViewPager_NextRecordClick" OnPrevRecordClick="GridViewPager_PrevRecordClick"
                                                                                OnTextBoxValueChange="GridViewPager_TextBoxValueChange" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent">
                                                                    <asp:GridView ID="ListValueMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        OnSelectedIndexChanged="ListValueMasterGridView_SelectedIndexChanged"
                                                                        OnPageIndexChanging="ListValueMasterGridView_PageIndexChanging"
                                                                        AllowPaging="True" PageSize="5" meta:resourcekey="ListValueMasterGridViewResource1"
                                                                        DataKeyNames="Id ">
                                                                        <Columns>

                                                                            <asp:BoundField DataField="Code" HeaderText="Code" meta:resourcekey="BoundFieldResource7" />
                                                                            <asp:BoundField DataField="Name" HeaderText="Name" meta:resourcekey="BoundFieldResource7" />

                                                                            <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource7">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                        ToolTip="Delete" meta:resourcekey="DeleteImageButtonResource1" />
                                                                                    <asp:HiddenField ID="Id" runat="server" Value='<%# Eval("Id") %>' />
                                                                                    <asp:HiddenField ID="TestParameterId" runat="server" />
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <%--HEDP History Ends Here--%>
                    </div>
                </div>
                <div class="spacer">
                    <img src="../../../Images/spacer.gif" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/listvalue-typemaster-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/listvalue-typemaster")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>