<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_MaterialManagement_InventoryPlanning_BinMaster, App_Web_zfb5ubdh" 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" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl"
    TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/Stock/StockDetailBoxControl.ascx" TagName="StockControl" TagPrefix="Stock" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <style type="text/css">
                #ctl00_CP_AddRowsToDisplayGridDropDownList

                {
                    height: 2rem;
                    border-radius: 5px
                }
            </style>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <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="160"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                  <Stock:StockControl ID="StockUserControl" runat="server" Visible="true" />
                                <div class="card card-box">
                                    <!-- Sub Container2 Box Start -->
                                    <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:-24px">
                                                    <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" style="margin-top:-3px">
                                                            <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 pRight5">
                                                                <asp:TextBox ID="SearchNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                                    onkeypress="return fnKeyPressForDescriptionField(event)" onblur="return fnonTextChangeDescriptionField(this)"
                                                                    meta:resourcekey="SearchNameTextBoxResource1" MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <%--  <div class="outerBoxPreBtn pTop5">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Location" Text="Location" runat="server" 
                                            meta:resourcekey="LocationResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="LocationDropDownList" runat="server" Width="120px" onmouseleave="showHideTooltip()"
                                            SkinID="CustomWidthDropDownList" onmouseenter="showHideTooltip()" 
                                            meta:resourcekey="LocationDropDownListResource1">
                                        </asp:DropDownList>
                                    </div>
                                </div>--%>
                                                        <div class="searchBoxBtn 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; Clear" onblur="fnClearTabIndexChange()"
                                                                OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />
                                                        </div>
                                                      
                                                    </asp:Panel>
                                                    <div id="BinMasterDetailDiv" visible="False" runat="server">
                                                        <div class="himssuHeader7WireBox col-md-12 pTop15">

                                                            <div id="PatientRelationDiv" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText">
                                                                    <div>
                                                                        <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-12 padd-0">

                                                                    <div class="col-md-5">
                                                                        <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                        <asp:DropDownList ID="AddRowsToDisplayGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="AddRowsToDisplayGridDropDownList_SelectedIndexChanged">
                                                                            <asp:ListItem Text="25" Value="25" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                            <asp:ListItem Text="75" Value="75"></asp:ListItem>
                                                                            <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                   <%-- <div class="gridHeaderText">
                                                                        <div class="fLeft">
                                                                            <header>
                                                                            <asp:Label ID="GridViewLabel" Text="Bin Master" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                            </header>
                                                                            <br /><div class="cBoth"></div>
                                                                         </div>
                                                                    </div>--%>
                                                                    <div  class="fRight">
                                                                        <uc1:GridViewPager ID="BinMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="BinMasterGridView_GridViewPager_FirstRecordClick"
                                                                            OnLastRecordClick="BinMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="BinMasterGridView_GridViewPager_NextRecordClick"
                                                                            OnPrevRecordClick="BinMasterGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="BinMasterGridView_GridViewPager_TextBoxValueChange"
                                                                            ParentGridView="BinMasterGridView" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive">
                                                                <%-- <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                            <asp:Table ID="BinMasterGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" 
                                                CssClass="GridViewTableRow" meta:resourcekey="BinMasterGridViewTableResource1">
                                            </asp:Table>
                                        </div>--%>
                                                                <%-- <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server" visible="False">
                                                            </div>--%>
                                                                <%-- <div id="DivData" class="Container" style="vertical-align: top; height: 109px; width: 99.6%;">--%>
                                                                <asp:GridView ID="BinMasterGridView" runat="server" class="table-responsive" AutoGenerateColumns="False"
                                                                    OnRowDataBound="BinMasterGridView_RowDataBound" OnPageIndexChanging="BinMasterGridView_PageIndexChanging"
                                                                    AllowPaging="True" PageSize="25" ShowHeader="True" meta:resourcekey="BinMasterGridViewResource1"
                                                                    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" CommandName="Select" meta:resourcekey="EditLinkButtonResource1"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="5%" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                        </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>
                                                                        </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="Location" SortExpression="Location" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource5">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("LocationCode") %>' meta:resourcekey="LocationLabelResource1"></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="20%" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                                <%--</div>--%>
                                                            </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" meta:resourcekey="Image1Resource1" />
                                </div>--%>
                                    <!-- Sub Container1 Box Start -->
                                    <div class="himssuHeader1WireBox" id="DetailDiv" runat="server">
                                        <div class="himsBoxHeader divcontentpagemargin card-head">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-list-ul"></i>
                                                    <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Details" 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">
                                                        <asp:TextBox ID="CodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                            MaxLength="100" AutoPostBack="True" OnTextChanged="CodeTextBox_TextChanged" onkeypress="return fnKeyPressForCodeField(event)"
                                                            onblur="return fnonTextChangeCodeField(this)" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" 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="RemarkLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:TextBox runat="server" ID="NameTextBox" SkinID="CustomWidthTextBox"
                                                            MaxLength="100" onkeypress="return fnKeyPressForDescriptionField(event)" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" 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="DetailLocationLabel" Text="Location" runat="server" 
                                    SkinID="MandatoryLabel" meta:resourcekey="DetailLocationLabelResource1"></asp:Label>
                            </div>
                            <div class="fLeft">
                                <asp:DropDownList ID="DetailLocationDropDownList" runat="server" Width="154px" onmouseleave="showHideTooltip()"
                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" 
                                    meta:resourcekey="DetailLocationDropDownListResource1">
                                </asp:DropDownList>
                            </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>
                                    <!-- Sub Container1 Box Ends -->
                                </div>
                            </div>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/bin-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/bin-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>