<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_MaterialManagement_InventoryPlanning_StoreLocationMaster, App_Web_b150320m" uiculture="auto" meta:resourcekey="PageResource1" 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" %>
<%@ 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" valign="top">

                    <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>
                            </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">
                                    <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="CollapsiblePanelExtender1" 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 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">
                                    <div class="contentHolder">
                                        <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div>
                                                    <asp:Label ID="Label2" Text="Code" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="Server" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                        onblur="return fnonTextChangeDescriptionField(this)" MaxLength="100"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label1" Text="Name" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                </div>
                                            </div>

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

                                                <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" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />

                                            </div>

                                        </asp:Panel>
                                        <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server">
                                            <div id="StoreLocationMasterDetailDiv" visible="false" runat="server">

                                                <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" visible="false" runat="server" style="display: none">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle" style="width: 99%">
                                                        <%--<div class="gridHeaderText">
                                                            <div class="fLeft">
                                                                <header>

                                                                    <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="true" />
                                                                </header>
                                                            </div>
                                                        </div>--%>
                                                        <div align="right" class="fRight mt-27">
                                                            <uc1:GridViewPager ID="StoreLocationMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="StoreLocationMasterGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="StoreLocationMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StoreLocationMasterGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="StoreLocationMasterGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StoreLocationMasterGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="StoreLocationMasterGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent card-body pTop5" style="padding-bottom: 0px">
                                                    <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="PeriodicPaySetupGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                                                    BackColor="#E8E8E8" ForeColor="#000000" Width="100%" GridLines="Both">
                                                                                    <asp:TableRow Height="20px">
                                                                                        <asp:TableCell Text="" Width="5%" Font-Bold="true"> </asp:TableCell>
                                                                                        <asp:TableCell Text="Code" Width="30%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                                        <asp:TableCell Text="Name" Width="15%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                                        <asp:TableCell Text="Location" Width="35%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                                        <asp:TableCell Text="InActive" Width="10%" Font-Bold="true" HorizontalAlign="Center"> </asp:TableCell>
                                                                                    </asp:TableRow>
                                                                                </asp:Table>
                                                                            </div>--%>
                                                                <div id="Div2" visible="true" runat="server" class="Container pTop5" style="vertical-align: top;">

                                                                    <asp:GridView ID="StoreLocationMasterGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                                        OnRowDataBound="StoreLocationMasterGridView_RowDataBound" OnPageIndexChanging="StoreLocationMasterGridView_PageIndexChanging"
                                                                        AllowPaging="false" SkinID="" ShowHeader="true" PagerSettings-Visible="false"
                                                                        CssClass="table table-striped table-bordered table-hover">
                                                                        <Columns>
                                                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">

                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                        Text="Select" CausesValidation="False"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="false" ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("StoreLocationId") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <ItemStyle Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Code" ItemStyle-Width="30%" SortExpression="Code"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CodeLabel" CssClass="boxEllips" ToolTip='<%#  Bind("Code")  %>'
                                                                                        runat="server" Text='<%#  Bind("Code")  %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <ItemStyle Width="30%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Name" ItemStyle-Width="15%" SortExpression="Name"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%# Bind("Title") %>' runat="server"
                                                                                        Text='<%# Bind("Title") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <ItemStyle Width="15%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <%--<asp:TemplateField HeaderText="Category" ItemStyle-Width="35%" SortExpression="Category"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CategoryName" runat="server" Text='<%#  Bind("LocationName")  %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <ItemStyle Width="35%" Wrap="True" />
                                                                            </asp:TemplateField>--%>
                                                                            <asp:TemplateField HeaderText="InActive" ItemStyle-Width="10%" SortExpression="IsObsolete"
                                                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>

                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                        <%--   <div class="spacer">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                    </div>--%>

                        <div id="DetailDiv" class="himssuHeader1WireBox" runat="server" visible="false">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-thumbtack"></i>
                                            <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Sub Location"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a; Back" />
                                    </div>
                                </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"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="CodeTextBox1" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="100" AutoPostBack="true"
                                                OnTextChanged="CodeTextBox_TextChanged" onblur="return fnonTextChangeNameField(this)"
                                                onkeypress="javascript:uppercase();"></asp:TextBox>
                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="CodeLabel" runat="server" Text="Name" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft ">
                                            <asp:TextBox runat="server" ID="NameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" MaxLength="100" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                onblur="return fnonTextChangeDescriptionField(this)"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div id="DepositDiv" runat="server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DepositHeadLabel" Text="Deposit Head" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="DepositHeadDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" SkinID="CustomWidthDropDownList"
                                                    class="form-control">
                                                </asp:DropDownList>

                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ExpenseLabel" runat="server" Text="Expense Type" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ExpenseTypeDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthDropDownList" runat="server" class="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="ReportDiv" runat="server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ReportLable" Text="Report Format" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ReportDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" SkinID="CustomWidthDropDownList"
                                                    class="form-control">
                                                </asp:DropDownList>

                                            </div>
                                        </div>
                                       
                                    </div>

                                    <div class="outerBox pTop15 col-md-3" id="BatchWiseTrackingDiv" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:CheckBox ID="BatchWiseTrackingCheckBox" runat="server" Text="Batch Wise Tracking" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop15 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:CheckBox ID="HeaderObsoleteCheckBox" runat="server" Text="InActive" />
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <%--HEDP History Ends Here--%>
            </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/store-location-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/store-location-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
