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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="GeneralMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <!-- Sub Container2 Box Start -->
            <div class="himssuHeader2WireBox">
                <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>
                    </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"></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"></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="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                <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 align="right" class="fRight" style="margin-top: -3px;">
                                                <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">
                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <div id="Div5" runat="server" visible="false">
                                                    <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                                        <%--            <asp:Table ID="GeneralmasterGridViewTable" 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="Name" Width="15%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                <asp:TableCell Text="Path" Width="30%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                
                                                            </asp:TableRow>
                                                        </asp:Table>--%>

                                                        <asp:Table ID="GeneralmasterGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                            BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both"
                                                            CssClass="GridViewTableRow" meta:resourcekey="CommonGridViewTableResource1">
                                                        </asp:Table>

                                                    </div>
                                                    <div id="Div2" visible="true" runat="server" class="Container" style="vertical-align: top; height: 109px;">
                                                        <asp:GridView ID="GeneralMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            OnRowDataBound="GeneralMasterGridView_RowDataBound" OnPageIndexChanging="GeneralMasterGridView_PageIndexChanging"
                                                            AllowPaging="True" PageSize="5" ShowHeader="False"
                                                            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">
                                                                    <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">
                                                                    <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>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </div>
            <!-- Sub Container2 Box Ends -->
            <div class="spacer">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
            </div>
            <!-- Sub Container1 Box Start -->
            <div class="himssuHeader1WireBox">
                <div class="himsBoxHeader">
                    <div class="leftdiv">
                    </div>
                    <div class="himsBoxTitle">
                        <div class="headerText">
                            <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                        </div>
                    </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="100" 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" onkeypress="return fnKeyPressForDescriptionField(event)"
                                    onblur="return fnonTextChangeDescriptionField(this)"></asp:TextBox>
                            </div>
                        </div>


                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5" id="IsObsoleteDiv" runat="server">
                            <div class="fLeft">
                                <asp:CheckBox Height="28px" ID="ObsoleteCheckBox" runat="server" TabIndex="7"></asp:CheckBox>
                            </div>
                            <div class="fLeft pLeft5">
                                <asp:Label ID="IsObsoleteLabel" runat="server" Text="InActive"
                                    meta:resourcekey="IsObsoleteLabelResource1"></asp:Label>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                    </div>
                </div>
            </div>
            <!-- Sub Container1 Box Ends -->
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/general-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/general-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>