<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Common_CommonMaster_GeneralNavigationMaster, App_Web_t4obzs33" 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" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="updPnlSearchGridView" RenderMode="Inline" UpdateMode="Conditional"
        runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <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>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="132"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <!-- Sub Container2 Box Start -->
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <%--<asp:Image ID="Image2" runat="server" class="fLeft" />--%>
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                        <%--     <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 mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <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" runat="Server" MaxLength="30"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <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" runat="Server" MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>


                                        <div class="alignCenter col-md-12 pTop5">

                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" SkinID="0" OnClick="ResetButton_Click" CssClass="btn-reset btn fas" />

                                        </div>
                                        <div class="">
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12 gridviewfont" 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">
                                                    <%-- <div class="headerText">
                                                <div class="fLeft">
                                                    <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="true" />
                                                </div>
                                            </div>--%>
                                                    <div align="" class="" 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  width-100">

                                                <div id="Div5" runat="server" visible="false" class="table-responsive">

                                                    <asp:GridView ID="GeneralMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        OnRowDataBound="GeneralMasterGridView_RowDataBound" OnPageIndexChanging="GeneralMasterGridView_PageIndexChanging"
                                                        AllowPaging="False" ShowHeader="True"
                                                        PagerSettings-Visible="false" CssClass="table table-striped table-bordered table-hover">
                                                        <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 card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head ">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-search"></i>
                                        <asp:Label ID="ReasonMasterDetailLabel" runat="server"></asp:Label>
                                    </header>
                                </div>
                            </div>

                            <div class="fRight mt-27 pagination display-flex ">

                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="FirstRecordImageButton" runat="server" OnClick="FirstRecordImageButton_Click">
                                                       <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="PreviousImageButton" runat="server" OnClick="PreviousImageButton_Click">
                                                       <i class="fa fa-play fa-rotate-180"></i>
                                    </asp:LinkButton>

                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                    &nbsp; 
                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                    &nbsp; 
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                    &nbsp; 
                                    <asp:Label ID="TotalRecord" runat="server" />
                                    &nbsp;
                                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                        ID="NextImageButtom" runat="server" OnClick="NextImageButton_Click">
                                                       <i class="fa fa-play"></i>
                                                    </asp:LinkButton>
                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                        ID="LastRecordImageButton" runat="server" OnClick="LastRecordImageButton_Click">
                                                       <i class="fa fa-fast-forward"></i>
                                    </asp:LinkButton>
                                    &nbsp;&nbsp;&nbsp;  
                                </div>
                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <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:TextBox ID="CodeTextBox" SkinID="CustomWidthTextBox" runat="server" MaxLength="30" AutoPostBack="true"
                                            OnTextChanged="CodeTextBox_TextChanged"></asp:TextBox>
                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        <asp:HiddenField ID="VisibilityHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <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" MaxLength="100"></asp:TextBox>
                                    </div>
                                </div>


                                <div class="">
                                </div>
                                <div class="outerBox pTop15 col-md-3" id="IsObsoleteDiv" runat="server">
                                    <div class="fLeft pTop5">

                                        <asp:CheckBox ID="ObsoleteCheckBox" runat="server" Text="InActive" TabIndex="7"></asp:CheckBox>

                                        <asp:Label ID="IsObsoleteLabel" runat="server" Text="InActive"
                                            meta:resourcekey="IsObsoleteLabelResource1" AssociatedControlID="ObsoleteCheckBox" class="pLeft5 display-none"></asp:Label>
                                    </div>
                                    <%--<div class="fLeft pLeft5">
                                
                            </div>--%>
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- Sub Container1 Box Ends -->
                </div>

            </div>

        </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>
     <script type="text/javascript">
         function RedirectToMigrationPortal(PagePath) {
                
             var newTab = window.open(PagePath, '_blank');

            // Redirect the current page with an absolute path
            window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
             
        }
    </script>
</asp:Content>
