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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" 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="ScreenGroupNameLabel"></asp:Label>
                                            </div>
                                        </div>
                                    </div>--%>
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="207"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="card card-box">
                                    <div class="himssuHeader2WireBox" id="SearchDiv" runat="server">
                                        <div class="himsBoxHeader card-head">
                                            <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="margin-top:-27px">
                                                    <asp:Image ID="Image2" runat="server" class="fLeft" meta:resourcekey="Image2Resource1" />
                                                    <div class="headerText">
                                                        <header>
                                                            <i class="fas fa-search"></i>
                                                        <asp:Label ID="Label3" runat="server" Text="Search" meta:resourcekey="Label3Resource1"></asp:Label>
                                                        </header>
                                                      <%--  <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                                            ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label3" Collapsed="True"
                                                            ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif" CollapsedImage="~/images/buttonExpand.gif"
                                                            Enabled="True" />--%>
                                                         <div class="fRight">
                                                    <asp:Button ID="AddNewButtonID" OnClick="AddNewButton_Click" runat="server"  SkinID="0" class="btn btn-add fas" Text="&#xf067; Add" />
                                                </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                                <div class="contentHolder">
                                                    <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label1" Text="Code" runat="server" meta:resourcekey="Label1Resource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:TextBox ID="SearchCodeTextbox" SkinID="CustomWidthTextBox" runat="server"
                                                                    meta:resourcekey="SearchCodeTextboxResource1" MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label2" Text="Name" runat="server" meta:resourcekey="Label2Resource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:TextBox ID="SearchNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                                    onblur="return fnonTextChangeDescriptionField(this)" meta:resourcekey="SearchNameTextBoxResource1"
                                                                    MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-12 center">
                                                            <div class="searchBoxBtn">
                                                                <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="server" OnClick="SearchButton_Click"
                                                                    SkinID="0" class="btn-search btn fas" />
                                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" onblur="fnClearTabIndexChange()"
                                                                    OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />
                                                            </div>
                                                        </div>
                                                       
                                                    </asp:Panel>
                                                    <div id="VendorCategoryMasterDetailDiv" visible="False" runat="server">
                                                        <div class="himssuHeader7WireBox col-md-12">

                                                            <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle" style="width: 99%">
                                                                    <div class="headerText">
                                                                        <div class="fLeft">
                                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                        </div>
                                                                    </div>
                                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                                        <uc1:GridViewPager ID="VendorCategoryMasterGridView_GridViewPager" runat="server"
                                                                            OnFirstRecordClick="VendorCategoryMasterGridView_GridViewPager_FirstRecordClick"
                                                                            OnLastRecordClick="VendorCategoryMasterGridView_GridViewPager_LastRecordClick"
                                                                            OnNextRecordClick="VendorCategoryMasterGridView_GridViewPager_NextRecordClick"
                                                                            OnPrevRecordClick="VendorCategoryMasterGridView_GridViewPager_PrevRecordClick"
                                                                            OnTextBoxValueChange="VendorCategoryMasterGridView_GridViewPager_TextBoxValueChange"
                                                                            ParentGridView="VendorCategoryMasterGridView" />
                                                                    </div>
                                                                </div>
                                                               <%-- <div class="gridHeaderText">
                                                                <header>
                                                                <asp:Label ID="AssignRouteLabel" runat="server" Text="Vendor Category Master"></asp:Label>
                                                                </header>
                                                                </div>--%>
                                                            </div>
                                                            <div class="himsBoxContent">

                                                                <%--<div id="DivData" class="Container" style="vertical-align: top; height: 109px; width: 99.6%;">--%>
                                                                <asp:GridView ID="VendorCategoryMasterGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                                    OnRowDataBound="VendorCategoryMasterGridView_RowDataBound" OnPageIndexChanging="VendorCategoryMasterGridView_PageIndexChanging"
                                                                    ShowHeader="True" AllowPaging="True" PageSize="5" meta:resourcekey="TemplateGridViewResource1"
                                                                    CssClass="table table-striped table-bordered">
                                                                    <Columns>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" OnClick="LinkButton_Click" Text="Select"
                                                                                    CausesValidation="False"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="20%" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="False" meta:resourcekey="TemplateFieldResource2">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("Id") %>' meta:resourcekey="IdLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="0%" />
                                                                            <ItemStyle Width="0%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Code" SortExpression="Code" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource3">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>' meta:resourcekey="CodeLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="20%" />
                                                                            <ItemStyle Width="20%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Name" SortExpression="Name" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource4">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Title") %>' meta:resourcekey="NameLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="20%" />
                                                                            <ItemStyle Width="20%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="InActive" SortExpression="IsObsolete" meta:resourcekey="TemplateFieldResource6">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'
                                                                                    meta:resourcekey="ObsoleteLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                                <%--</div>--%>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                   
                                    <div class="himssuHeader1WireBox" id="DetailDiv" runat="server">
                                        <div class="himsBoxHeader card-head">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-cog"></i>
                                                    <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Maintenance" meta:resourcekey="ReasonMasterDetailLabelResource1"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                            <div class="fRight mt-27 pagination display-flex">
                                               <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" runat="server" visible="false">
                                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                                            </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                                            </asp:LinkButton>
                                                            &nbsp; &nbsp;
                                                            <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" />
                                                            &nbsp; &nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                                            </asp:LinkButton>
                                                        </div>
                                                    </td>

                                                    <td>
                                                       &nbsp; &nbsp; <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a; Back" />
                                                    </td>



                                                </tr>
                                            </table>
                                              </div>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="HeaderAccountCodeLabel" runat="server" Text="Code" SkinID="MandatoryLabel"
                                                            meta:resourcekey="HeaderAccountCodeLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="CodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"
                                                            
                                                           meta:resourcekey="CodeTextBoxResource1"></asp:TextBox>
                                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="RemarkLabel" runat="server" Text="Name" SkinID="MandatoryLabel" meta:resourcekey="RemarkLabelResource2"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:TextBox runat="server" ID="NameTextBox" SkinID="CustomWidthTextBox"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"
                                                            onkeypress="return fnKeyPressForDescriptionField(event)" onblur="return fnonTextChangeDescriptionField(this)"
                                                            meta:resourcekey="NameTextBoxResource2"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <%--                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="AccountLabel" runat="server" Text="Account Code" 
                                    SkinID="MandatoryLabel" meta:resourcekey="AccountLabelResource1"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <acc:AutoCompleteControl ID="AccountAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                    FirstRowSelected="true" ContextKey="Accounting.AccountCode" AutoPostBack="True"
                                    DisplayLoadingStatus="true" ValidateOnTextChanged="True" Width="150px" OnTextChanged="AccountAutoCompleteControl_TextChanged" IsCacheEnabled="true" />
                                <asp:ImageButton ID="AccountSearchImageButton" SkinID="FindImage" OnClick="AccountSearchImageButton_Click"
                                    runat="server" ToolTip="Account Search" 
                                    meta:resourcekey="AccountSearchImageButtonResource1" />
                            </div>
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="AccountRemarksLabel" runat="server" Text="Account Name" 
                                    meta:resourcekey="AccountRemarksLabelResource1"></asp:Label>
                            </div>
                            <div class="fLeft">
                                <asp:TextBox ID="AccountRemarksLabelDisplay" runat="server" ReadOnly="True" SkinID="CustomWidthDisabledTextBox"
                                    Width="150px" meta:resourcekey="AccountRemarksLabelDisplayResource1"></asp:TextBox>
                            </div>
                        </div>--%>
                                                <div class="outerBox pTop15 col-md-3">
                                                    <div class="fLeft">
                                                        <asp:CheckBox ID="HeaderObsoleteCheckBox" runat="server" Text="InActive" meta:resourcekey="HeaderObsoleteCheckBoxResource1" />                                                   
                                                    </div>
                                                </div>
                                               
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
                    
        </ContentTemplate>
    </asp:UpdatePanel>
     <%--<script data-main="../../../JavaScript/rjs/encrypt/vendorcategory-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>  
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/vendorcategory-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
