<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" title="Create Sub Location Master" autoeventwireup="true" inherits="Pages_MaterialManagement_InventoryPlanning_CreateStoreLocationMaster, App_Web_b150320m" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/MaterialManagement/PurchaseUom/MultiplePurchaseUom.ascx"
    TagPrefix="cc1" TagName="UomUserControl" %>
<%@ Register Src="~/UserControls/MaterialManagement/MultiPleBin/MultiPleBin.ascx"
    TagPrefix="cc2" TagName="MultiPleBinUserControl" %>
<%@ 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/Common/ScreenGroup/SuperAdminScreenGroup.ascx" TagName="SuperAdminScreenGroupControl"
    TagPrefix="SuperAdminScreenGroup" %>
<%--<%@ Page Language="C#" MasterPageFile="~/Pages/Common/MasterPages/MainMasterPage.master"
    AutoEventWireup="true" CodeFile="StoreLocationMaster.aspx.cs" Inherits="Pages_MaterialManagement_InventoryPlanning_StoreLocationMaster"
    Title="Untitled Page" %>

<%@ 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="StoreLocationMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
         
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->
                <div style="width: 100%">
                    <table width="100%" cellpadding="0" cellspacing="0">
                    </table>
                    <div class="spacer5">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                    </div>
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" style="width: 160px" valign="top">
                                <%--     padding-top: 7px"--%>
                                <div id="leftContainer">
                                    <!-- Left Container 1 Box Start -->
                                    <dl class="expandMenu">
                                        <table width="100%" border="0">
                                            <tr>
                                                <td>
                                                    <%--   <div>
                                                        <POP:PopupAlertControl ID="PopupAlertPeriodicControlBox" runat="server" Visible="false" />
                                                    </div>--%>
                                                    <div class="himssuHeader3WireBox">
                                                        <dt id="dtSETTINGS" onclick="showHideSwitch('ddSETTINGS')">
                                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td>
                                                                        <div class="himsBoxHeader">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                            <div class="himsBoxTitle">
                                                                                <table width="100%">
                                                                                    <tr>
                                                                                        <td style="width: 100%">
                                                                                            <div class="headerText">
                                                                                                Master </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            <img name="ddSETTINGSButton" id="ddSETTINGSButton" src="../../../Images/buttonCollapse.gif"></img>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </dt>
                                                        <%-- <dd style="text-align: left; margin: 0px" class="hideSwitch" id="ddSETTINGS">--%>
                                                        <dd style="text-align: left; margin: 0px" id="ddSETTINGS">
                                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td>
                                                                        <div class="himsBoxContent leftTableContainer">
                                                                            <div class="leftUlMenu">
                                                                                <ul id="sidebarmenu1">
                                                                                    <SuperAdminScreenGroup:SuperAdminScreenGroupControl EnableViewState="true" ID="SuperAdminScreenGroupControl" ScreenGroupId="153"
                                                                                        Visible="true" runat="server" />
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <div class="himsBoxFooter">
                                                                <div>
                                                                </div>
                                                            </div>
                                                        </dd>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </dl>
                                </div>
                            </td>
                            <td class="minMaxButton" style="width: 1%; margin: 0; vertical-align: top">
                                <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                            </td>
                            <td style="vertical-align: top">
                            
            <!-- 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="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>
                        </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>
                                        <asp:Label ID="Label2" Text="Codes" runat="server"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" Width="150px" runat="Server" onkeypress="return fnKeyPressForDescriptionField(event)"
                                            onblur="return fnonTextChangeDescriptionField(this)" MaxLength="100"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5">
                                    <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" Width="150px" runat="Server" MaxLength="100"></asp:TextBox>
                                    </div>
                                </div>
                                
                                <div class="cBoth"></div>

                                <div class="outerBox pTop5">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchOrgIdLabel" Text="OrgId" runat="server"></asp:Label></div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SearchOrgIdDropDown" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" AutoPostBack="True" OnSelectedIndexChanged = "SearchOrgIdDropDown_OnSelectedIndexChanged"
                                            SkinID="CustomWidthDropDownList" Width="154px">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label4" Text="Location" runat="server"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SearchLocationDropdownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </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="StoreLocationMasterDetailDiv" 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="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">
                                        <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="Organization" Width="25%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                <asp:TableCell Text="Location" Width="25%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                 <asp:TableCell Text="Code" Width="15%" Font-Bold="true" HorizontalAlign="Left"> </asp:TableCell>
                                                                <asp:TableCell Text="Name" Width="20%" 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" style="vertical-align: top;
                                                        height: 109px;">
                                                        <asp:GridView ID="StoreLocationMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            OnRowDataBound="StoreLocationMasterGridView_RowDataBound" OnPageIndexChanging="StoreLocationMasterGridView_PageIndexChanging"
                                                            AllowPaging="true" PageSize="5" SkinID="" ShowHeader="false" PagerSettings-Visible="false">
                                                            <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="Organization" ItemStyle-Width="25%" SortExpression="OrgName"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrgName" runat="server" Text='<%#  Bind("OrgName")  %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="25%" Wrap="True" />
                                                                </asp:TemplateField><asp:TemplateField HeaderText="Category" ItemStyle-Width="25%" SortExpression="Category"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CategoryName" runat="server" Text='<%#  Bind("LocationName")  %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="25%" Wrap="True" />
                                                                </asp:TemplateField>                                                             
                                                                <asp:TemplateField HeaderText="Code" ItemStyle-Width="15%" 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="15%" Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%" 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="20%" 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>
            <!-- 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="Sub Location"></asp:Label>
                        </div>
                    </div>
                </div>
                <div class="himsBoxContent">
                    <div class="contentHolder">
                        <div class="outerBox pTop5">
                            <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" 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" />
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="CodeLabel" runat="server" Text="Name"></asp:Label>
                            </div>
                            <div class="fLeft ">
                                <asp:TextBox runat="server" ID="NameTextBox" 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">
                            <div class="controlLabelWidth">
                                <asp:Label ID="OrgIdLabel" Text="OrgId" runat="server"></asp:Label></div>
                            <div class="fLeft pRight5">
                                <asp:DropDownList ID="OrgIdDropDown" runat="server" onmouseleave="showHideTooltip()"
                                    onmouseenter="showHideTooltip()" AutoPostBack="True" OnSelectedIndexChanged = "OrgIdDropDown_OnSelectedIndexChanged"
                                    SkinID="CustomWidthDropDownList" Width="154px">
                                </asp:DropDownList>
                            </div>
                        </div>

                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="CategoryLabel" runat="server" Text="Location" SkinID="MandatoryLabel"></asp:Label>
                            </div>
                            <div class="fLeft ">
                                <asp:DropDownList ID="LocationDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                    Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="HeaderObsoleteLabel" runat="server" Text="InActive"></asp:Label>
                            </div>
                            <div class="fLeft ">
                                <asp:CheckBox ID="HeaderObsoleteCheckBox" runat="server" />
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                    </div>
                </div>
            </div>
            <!-- Sub Container1 Box Ends -->
                            </td>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/createlocation-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>     --%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/createlocation-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>