<%@ page language="C#" autoeventwireup="true" inherits="FinancialManagement_AssetManagement_StockEnquiry, App_Web_ovuixeqj" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" 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/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="StockEnquiryUpdatePanel" runat="server">
        <ContentTemplate>
            <div class="himssuHeader2WireBox">
                <div class="himsBoxHeader">
                    <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <div class="headerText">
                                <asp:Label ID="Label3" runat="server" Text="Criteria"
                                    meta:resourcekey="Label3Resource1"></asp:Label>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <div class="himsBoxContent">
                    <asp:Panel ID="DetailPanel" runat="server"
                        meta:resourcekey="DetailPanelResource1">
                        <div class="contentHolder">
                            <asp:Panel ID="SearchCriteriaPanel" runat="server"
                                meta:resourcekey="SearchCriteriaPanelResource1">
                                <table cellpadding="0" cellspacing="0" style="width: 0%!important;">
                                    <tr>
                                        <td class="formLabel">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Asset Category"
                                                meta:resourcekey="DepartmentLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="CategoryDropDownList" runat="server" Width="154px" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="CategoryDropDownListResource1">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="ItemCodeLabel" runat="server" Text="Asset Tag"
                                                meta:resourcekey="ItemCodeLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <acc:AutoCompleteControl ID="ItemCodeAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                            Width="150px" AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="true"
                                                            ContextKey="SAssetManagement.AllCode" MaxLength="20" ValidateOnTextChanged="false"
                                                            OnTextChanged="ItemCodeAutoCompleteControl_TextChanged" />
                                                    </td>
                                                    <td class="pLeft5">
                                                        <asp:ImageButton ID="ItemCodeSearchImageButton" ToolTip="Asset Tag Search" SkinID="FindImage"
                                                            OnClick="ItemCodeSearchImageButton_Click" runat="server"
                                                            meta:resourcekey="ItemCodeSearchImageButtonResource1" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="ItemNameLabel" runat="server" Text="Asset Name"
                                                meta:resourcekey="ItemNameLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <acc:AutoCompleteControl ID="ItemNameAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                            Width="150px" AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="true"
                                                            ContextKey="SAssetManagement.AllTitle" MaxLength="50" ValidateOnTextChanged="false"
                                                            OnTextChanged="ItemNameAutoCompleteControl_TextChanged" />
                                                    </td>
                                                    <td class="pLeft5">
                                                        <asp:ImageButton ID="ItemNameSearchImageButton" ToolTip="Asset Name Search" SkinID="FindImage"
                                                            OnClick="ItemNameSearchImageButton_Click" runat="server"
                                                            meta:resourcekey="ItemNameSearchImageButtonResource1" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="spacer5">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif"
                                                    meta:resourcekey="Image3Resource1" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="formLabel ">
                                            <asp:Label ID="Label2" Text="Department" runat="server"
                                                meta:resourcekey="Label2Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DeptDropDownList" SkinID="CustomWidthDropDown" DataValueField="DepartmentID"
                                                DataTextField="DepartmentTitle" Width="154px" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True" runat="server"
                                                OnSelectedIndexChanged="DeptDropDownList_SelectedIndexChanged"
                                                meta:resourcekey="DeptDropDownListResource1">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="CurrentLocationLabel" Text="Location" runat="server"
                                                meta:resourcekey="CurrentLocationLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="LocationDropDownList" DataTextField="Title" SkinID="CustomWidthDropDown"
                                                Width="154px" DataValueField="ID" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" meta:resourcekey="LocationDropDownListResource1">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="Label5" runat="server" Text="Status"
                                                meta:resourcekey="Label5Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="StatusDropDownList" runat="server" Width="154px" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="StatusDropDownListResource1">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="spacer5">
                                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"
                                                    meta:resourcekey="Image2Resource1" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="formLabel ">
                                            <asp:Label ID="ModelNuberLabel" runat="server" Text="Model No"
                                                meta:resourcekey="ModelNuberLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <acc:AutoCompleteControl ID="ModelDropDownList" runat="server" MinimumPrefixLength="2"
                                                            Width="150px" AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="true"
                                                            ContextKey="sAssetManagement.ModelNumber" MaxLength="20" ValidateOnTextChanged="false" />
                                                    </td>
                                                    <td class="pLeft5">
                                                        <asp:ImageButton ID="ModelNumberSearchImageButton" ToolTip="Model No Search" SkinID="FindImage"
                                                            OnClick="ModelNumberSearchImageButton_Click" runat="server"
                                                            meta:resourcekey="ModelNumberSearchImageButtonResource1" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="spacer">
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif"
                                                    meta:resourcekey="Image1Resource1" />
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <div class="alignCenter">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <asp:Button ID="SearchButton" Text="Search" runat="server" SkinID="CustomWidthButton"
                                                    Width="100px" OnClick="SearchButton_Click" CssClass="PrimaryButton" />
                                            </td>
                                            <td class="pLeft5">
                                                <asp:Button ID="ClearButton" Text="Clear" onblur="fnClearTabIndexChange()" runat="server"
                                                    SkinID="CustomWidthButton" Width="100px" OnClick="ClearButton_Click"
                                                    meta:resourcekey="ClearButtonResource1" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                            <div id="StockEnquirySearchListDiv" class="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                <div id="StockEnquiryDiv" runat="server">
                                    <div class="spacer">
                                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image4Resource1" />
                                    </div>
                                    <div class="himsBoxHeader" id="PatientRelationDiv" runat="server">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="fLeft">
                                                    <asp:Label ID="StockEnquirySearchListGridViewLabel" Text="List" runat="server"
                                                        Font-Bold="True"
                                                        meta:resourcekey="StockEnquirySearchListGridViewLabelResource1" />
                                                </div>
                                            </div>
                                            <div align="right" class="fRight" style="margin-top: -3px;">
                                                <uc1:GridViewPager ID="StockEnquirySearchListGridView_GridViewPager" runat="server"
                                                    OnFirstRecordClick="StockEnquirySearchListGridView_GridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="StockEnquirySearchListGridView_GridViewPager_LastRecordClick"
                                                    OnNextRecordClick="StockEnquirySearchListGridView_GridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="StockEnquirySearchListGridView_GridViewPager_PrevRecordClick"
                                                    OnTextBoxValueChange="StockEnquirySearchListGridView_GridViewPager_TextBoxValueChange"
                                                    ParentGridView="StockEnquirySearchListGridView" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="himsBoxContentMsg" id="GridSearchMessageDiv" runat="server"
                                            visible="False">
                                        </div>
                                        <asp:GridView ID="StockEnquirySearchListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                            AllowPaging="True"
                                            meta:resourcekey="StockEnquirySearchListGridViewResource1">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="False"
                                                    meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="IdLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "AssetTag") %>'
                                                            meta:resourcekey="IdLabelResource1"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Category"
                                                    meta:resourcekey="TemplateFieldResource2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="IdLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "Category") %>'
                                                            meta:resourcekey="IdLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Asset Tag"
                                                    meta:resourcekey="TemplateFieldResource3">
                                                    <ItemTemplate>
                                                        <asp:Label ID="DepartmentNameLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "Code") %>'
                                                            meta:resourcekey="DepartmentNameLabelResource1"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="17%" />
                                                    <ItemStyle Width="17%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Asset Name"
                                                    meta:resourcekey="TemplateFieldResource4">
                                                    <ItemTemplate>
                                                        <asp:Label ID="DepartmentNameLabel1" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "AssetDescription") %>'
                                                            meta:resourcekey="DepartmentNameLabel1Resource1"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="17%" />
                                                    <ItemStyle Width="17%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Department"
                                                    meta:resourcekey="TemplateFieldResource5">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ItemNameLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem,"DepartmentTitle") %>'
                                                            meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="10%" />
                                                    <ItemStyle Width="10%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Location"
                                                    meta:resourcekey="TemplateFieldResource6">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ItemNameLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem,"Location") %>'
                                                            meta:resourcekey="ItemNameLabelResource3"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="10%" />
                                                    <ItemStyle Width="10%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Status"
                                                    meta:resourcekey="TemplateFieldResource7">
                                                    <ItemTemplate>
                                                        <asp:Label ID="IdLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "status") %>'
                                                            meta:resourcekey="IdLabelResource3"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="8%" />
                                                    <ItemStyle Width="8%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Model No"
                                                    meta:resourcekey="TemplateFieldResource8">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ItemNameLabel" runat="server"
                                                            Text='<%# DataBinder.Eval(Container.DataItem,"ModelNo") %>'
                                                            meta:resourcekey="ItemNameLabelResource4"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Last Main. Date"
                                                    meta:resourcekey="TemplateFieldResource9">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ItemNameLabel" runat="server"
                                                            Text='<%# FormatDate(Eval("LastMaintenenceDate")) %>'
                                                            meta:resourcekey="ItemNameLabelResource5"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="8%" />
                                                    <ItemStyle Width="8%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </div>
            <div class="spacer">
                <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/spacer.gif"
                    meta:resourcekey="Image5Resource1" />
            </div>
            <div id="Div1" class="himssuHeader1WireBox" runat="server">
                <div id="StockEnquiryDetailListDiv" runat="server">
                    <div class="himsBoxHeader">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle" style="width: 99%">
                            <div class="headerText">
                                <div class="fLeft">
                                    <asp:Label ID="StockEnquiryDetailLabel" runat="server"
                                        meta:resourcekey="StockEnquiryDetailLabelResource1"></asp:Label>
                                </div>
                            </div>
                            <div align="right" class="fRight" style="margin-top: -3px;">
                                <uc1:GridViewPager ID="StockEnquiryDetailGridView_GridViewPager" runat="server" OnFirstRecordClick="StockEnquiryDetailGridView_GridViewPager_FirstRecordClick"
                                    OnLastRecordClick="StockEnquiryDetailGridView_GridViewPager_LastRecordClick"
                                    OnNextRecordClick="StockEnquiryDetailGridView_GridViewPager_NextRecordClick"
                                    OnPrevRecordClick="StockEnquiryDetailGridView_GridViewPager_PrevRecordClick"
                                    OnTextBoxValueChange="StockEnquiryDetailGridView_GridViewPager_TextBoxValueChange"
                                    ParentGridView="StockEnquiryDetailGridView" />
                            </div>
                        </div>
                    </div>
                    <div class="himsBoxContent">
                        <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server"
                            visible="False">
                        </div>
                        <asp:GridView ID="StockEnquiryDetailGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                            DataKeyNames="Id" AllowPaging="True" PageSize="5"
                            EmptyDataText="No Records Found"
                            meta:resourcekey="StockEnquiryDetailGridViewResource1">
                            <Columns>
                                <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="False"
                                    meta:resourcekey="TemplateFieldResource10"></asp:TemplateField>
                                <asp:TemplateField HeaderText="DepartmentName"
                                    meta:resourcekey="TemplateFieldResource11">
                                    <HeaderStyle Width="30%" />
                                    <ItemStyle Width="30%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="UOM" meta:resourcekey="TemplateFieldResource12">
                                    <HeaderStyle Width="20%" />
                                    <ItemStyle Width="20%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Batch"
                                    meta:resourcekey="TemplateFieldResource13">
                                    <HeaderStyle Width="20%" />
                                    <ItemStyle Width="20%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Exp Date"
                                    meta:resourcekey="TemplateFieldResource14">
                                    <HeaderStyle Width="15%" />
                                    <ItemStyle Width="15%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="System Qty"
                                    meta:resourcekey="TemplateFieldResource15">
                                    <HeaderStyle HorizontalAlign="Right" Width="10%" />
                                    <ItemStyle HorizontalAlign="Right" Width="10%" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings Visible="False" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
            <div class="spacer5">
                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif"
                    meta:resourcekey="Image6Resource1" />
            </div>
            <div align="center">
            </div>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/asset-search-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/asset-search")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>