<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Common_CommonMaster_DataMaster, App_Web_mbx2w5c3" uiculture="auto" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="updPnlSearchGridView" RenderMode="Inline" UpdateMode="Conditional"
        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="Headerlbl"></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="101"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top; padding-left: 10px" width="99%">
                                <!-- Sub Container2 Box Start -->
                                <div class="himssuHeader5WireBox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <%--<asp:Image ID="Image2" runat="server" class="fLeft" />--%>
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                    <%--     <cc1:CollapsiblePanelExtender ID="Cpe" runat="Server" TargetControlID="DetailPanel"
                                    ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label3" Collapsed="true"
                                    ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif" CollapsedImage="~/images/buttonExpand.gif"
                                    ExpandDirection="Vertical" />--%>
                                                </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="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SerchNameLabel" Text="Name" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" Width="150px" runat="Server" MaxLength="30"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <div>
                                                            <asp:Label ID="SearchRemarkLabel" Text="Path" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SearchDescriptionTextBox" 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="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>
                                                </asp:Panel>
                                                <div id="Div1" class="himssuHeader7WireBox" runat="server">
                                                    <div id="ReasonMasterDetailDiv" visible="false" runat="server">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                        </div>
                                                        <div class="himsBoxHeader" id="PatientRelationDiv" visible="false" 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" />
                                                </div>
                                            </div>--%>
                                                                <div id="Div2" align="right" class="fRight" runat="server" visible="false" style="margin-top: 0px;">
                                                                    <uc1:GridViewPager ID="GeneralMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="GeneralMasterGridView_GridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="GeneralMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="GeneralMasterGridView_GridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="GeneralMasterGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="GeneralMasterGridView_GridViewPager_TextBoxValueChange"
                                                                        ParentGridView="GeneralMasterGridView" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <div id="Div5" runat="server" visible="false">
                                                                <asp:GridView ID="GeneralMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    OnRowDataBound="GeneralMasterGridView_RowDataBound" OnPageIndexChanging="GeneralMasterGridView_PageIndexChanging"
                                                                    AllowPaging="False" ShowHeader="True" PagerSettings-Visible="false">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("MasterID") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Name" ItemStyle-Width="15%" Visible="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%# Bind("Code") %>' runat="server"
                                                                                    Text='<%# Bind("Code") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Path" ItemStyle-Width="30%" Visible="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="RemarkLabel" CssClass="boxEllips" ToolTip='<%#  Bind("Remark")  %>'
                                                                                    runat="server" Text='<%#  Bind("Remark")  %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <%--   <asp:TemplateField HeaderText="Category" ItemStyle-Width="35%" SortExpression="Category"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CategoryName" runat="server" Text='<%#  Bind("CategoryName")  %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>--%>
                                                                        <asp:TemplateField HeaderText="InActive" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                            ItemStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                                <%--  </div>--%>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <!-- Sub Container2 Box Ends -->
                                <!-- Sub Container1 Box Start -->
                                <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="ReasonMasterDetailLabel" runat="server"></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">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="NameDescriptionlableLabel" runat="server" Text="Name" 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="true"
                                                        OnTextChanged="CodeTextBox_TextChanged" onblur="return fnonTextChangeNameField(this)"
                                                        onkeypress="javascript:uppercase();"></asp:TextBox>
                                                    <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                    <asp:HiddenField ID="VisibilityHiddenField" runat="server" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DescriptionLabel" runat="server" Text="Description" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft ">
                                                    <asp:TextBox runat="server" ID="DescriptionTextBox" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" Width="150px" MaxLength="100"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5" id="IsObsoleteDiv" runat="server">
                                                <div class="fLeft pTop5">
                                                    <asp:CheckBox ID="ObsoleteCheckBox" runat="server" TabIndex="7"></asp:CheckBox>
                                                    <asp:Label ID="IsObsoleteLabel" runat="server" Text="InActive" meta:resourcekey="IsObsoleteLabelResource1"
                                                        class="pLeft5"></asp:Label>
                                                </div>
                                                <%--<div class="fLeft pLeft5">
                                
                            </div>--%>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- Sub Container1 Box Ends -->
                            </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/data-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/data-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>