<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True" Inherits="site_HITS_Inventory_Default" Title="Brightstar Device Protection: Inventory"
    Theme="eMain" Codebehind="Default.aspx.cs" %>

<%@ Register Src="~/Controls/ScriptingHelper.ascx" TagName="ScriptingHelper" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Inventory/GridOperator.ascx" TagName="GridOperatorHelper" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/DefaultHeader.ascx" TagName="DefaultHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName = "CustomSorter" TagPrefix = "uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components" TagPrefix="cc1" %>
<%@ Register Src="~/Controls/Inventory/InventoryModelSummary.ascx" TagName="InvModelSummary" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">

    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>
    <script src="../../../script/eGridHelper.js" type="text/javascript"></script>

    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server" />
    
    <table width="100%">
        <tr>
            <td>
                <h1>
                   <asp:Literal ID = "m_litHeader" runat = "server" Text = "<%$ Resources : InventoryManagement,LabelInventory %>" />            
                </h1>
            </td>
        </tr>
    </table>
    
 
        <!---------------------------------UC----------------------------------->
        <uc:DefaultHeader ID="DefaultHeader1" runat="server" OnImportClicked = "DefaultHeader1_ImportClick" />
        <!---------------------------------T1----------------------------------->
        
        <div class="mastersearch">
            <img src="../../../images/Collapse_13x13.jpg" class="showstate" onclick="expandMasterSearch(this, 'm_pnlMasterSearchCriteria')"
                alt="contract" />
            <asp:Literal ID="m_litSearchUsersHeader" runat="server" Text="<%$ Resources : Default,LabelSearchCriteria %>" />
        </div>

      <div id="m_pnlMasterSearchCriteria" style="background-color: #DBDCDE">
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">            
            <tr>
                <td >
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="right">
                                <asp:Literal ID = "m_litESN" runat = "server" Text="<%$ Resources : HandsetManagement,LabelESNColon %>" />
                            </td>
                            <td >
                                <asp:TextBox ID="m_tbESN" runat="server" Width="200px"></asp:TextBox>
                                <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender1" runat="server"
                                OnAutoCompleteCallback="SearchESNs" TargetControlID="m_tbESN"
                                UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" /> 
                            </td>
                            <td align="right" >
                                <asp:Literal ID = "m_litLocation" runat = "server" Text = "<%$ Resources : OrganizationManagement,LabelLocationColon %>" />                                
                            </td>
                            <td>
                                <asp:DropDownList ID="m_ddlLocation" runat="server" Width="212px">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                    ControlToValidate="m_ddlLocation"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID = "m_litSupplier" Text="<%$ Resources : SubscriberManagement,SupplierLabel %>" runat = "server" />
                            </td>
                            <td>
                                <asp:DropDownList ID="m_ddlSupplier" runat="server" Width="212px">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                    ControlToValidate="m_ddlSupplier"></asp:RequiredFieldValidator>
                            </td>
                            <td align="right">
                                <asp:Literal ID = "m_litManufacturer" runat = "server" Text = "<%$ Resources : HandsetManagement,LabelManufacturerColon %>" />                                
                            </td>
                            <td nowrap="nowrap">
                                <asp:DropDownList ID="m_ddlManufacturer" runat="server" Width="212px">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                    ControlToValidate="m_ddlManufacturer"></asp:RequiredFieldValidator>
                             </td>
                         </tr>
                         <tr>
                            <td align="right">
                                <asp:Literal ID = "m_litModel" runat = "server" Text = "<%$ Resources : ModelManagement,LabelModelColon %>" />                                
                            </td>
                            <td>
                                <asp:TextBox ID="m_tbModel" runat="server" Width="200px"></asp:TextBox>
                               <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender2" runat="server"
                                OnAutoCompleteCallback="SearchModels" TargetControlID="m_tbModel"
                                UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />  
                            </td>
                            <td align="right">
                                <asp:Literal ID = "Literal1" runat = "server" Text = "<%$ Resources : Default,LabelConditionColon %>" />                                
                            </td>
                            <td>
                                <asp:DropDownList ID="m_ddlCondition" runat="server" Width="212px">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                                    ControlToValidate="m_ddlCondition"></asp:RequiredFieldValidator>
                            </td>
                         </tr>
                         <tr>
                            <td align="right">
                                 <asp:Literal ID = "m_litOrder" runat = "server" Text = "<%$ Resources : ServicePlanManagement,LabelOrderNumberSignColon %>" />                                
                            </td>
                            <td>
                                <asp:TextBox ID="m_tbOrder" runat="server" Width="200px"></asp:TextBox>
                               <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender3" runat="server"
                                OnAutoCompleteCallback="SearchOrders" TargetControlID="m_tbOrder"
                                UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />   
                            </td>
                            <td align="right">
                                <asp:Literal ID = "Literal2" runat = "server" Text = "<%$ Resources : Default,LabelDispositionColon %>" />                                
                            </td>
                            <td>
                                <asp:DropDownList ID="m_ddlDisposition" runat="server" Width="212px">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                                    ControlToValidate="m_ddlDisposition"></asp:RequiredFieldValidator>
                            </td>
                         </tr>
                         <tr>
                            <td align="right">
                                <asp:Literal ID = "m_litDateFrom" runat = "server" Text = "<%$ Resources : Default,DateFromLabel %>" />  
                            </td>
                            <td> 
                                <uc:HITSCalendar DateTextBox-Width="200px" ID="m_calDateFrom" runat="server" />
                            </td>
                            <td align="right">
                                <asp:Literal ID = "m_litDateTo" runat = "server" Text = "<%$ Resources : Default,DateToLabel %>" />                                
                            </td>
                            <td> 
                                <uc:HITSCalendar DateTextBox-Width="200px" ID="m_calDateTo" runat="server" />
                             </td>
                         </tr>
                         <tr>
                            <td align="right">                             
                                <asp:Literal ID = "m_litTotalCost" Text="<%$ Resources : ServicePlanManagement,LabelTotalCostColon %>" runat = "server" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_tbTotalCost" runat="server" Width="200px"></asp:TextBox>
                               <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender4" runat="server"
                                OnAutoCompleteCallback="SearchTotalCosts" TargetControlID="m_tbTotalCost"
                                UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />    
                            </td>
                            <td align="right">
                                <asp:Literal ID = "m_litCarrierAllocation" Text="<%$ Resources : SubscriberManagement,LabelClientAllocationColon %>" runat = "server" />
                            </td>
                            <td nowrap="nowrap">
                                <asp:DropDownList ID="m_ddlCarrierAllocation" runat="server" Width="212px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                         <tr>
                            <td align="right">                             
                                <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources : SubscriberManagement,LookUpLabel %>" />                               
                                
                            </td>
                            <td>
                                <asp:FileUpload ID="m_btnBrowseLookup" runat="server" ToolTip="<%$ Resources : Default,FileUploadBrowse %>" /><br>
                                <asp:Label ID="m_litLookUp" runat="server"></asp:Label>
                                <asp:HiddenField ID="m_litLookUpHidden" runat="server" />
                            </td>
                            <td align="right">
                                <asp:Literal ID = "m_litInventoryOwner" Text="<%$ Resources : InventoryManagement,LabelInventoryOwnerColon %>" runat = "server" />
                            </td>
                            <td nowrap="nowrap">
                                <asp:DropDownList ID="m_ddlInventoryOwner" runat="server" Width="212px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                         <tr>
                            <td align="right">                             
                                <asp:Literal ID = "Literal3" Text="<%$ Resources : HandsetManagement,LabelRecordsPerPageColon %>" runat = "server" />
                            </td>
                            <td>
                                <asp:DropDownList ID = "m_ddlPageSize" runat = "server">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                            </td>
                            <td nowrap>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
      </div>
           <!--------------------------------Buttons---------------------------------->
            <div style="text-align: center">
                <asp:Button ID="m_btnSearch" runat="server" Text="<%$ Resources : Default,ButtonSearch %>" CssClass="pagebutton" Font-Bold="False"
                    OnClick="m_btnSearch_Click"  />
                <input id="m_btnClear" type="button" runat="server" value="<%$ Resources : Default,ButtonClear %>" class="pagebutton" />
            </div>
            
            
      <asp:Panel ID="m_pnlSearchResults" runat="server"> 
        <h2>
            <asp:Literal ID = "m_litSearchResultsHeader" runat = "server" Text = "<%$ Resources : Default,LabelSearchResults %>" />
        </h2>
            <asp:Label ID="lblSuccess" runat="server" Text="<%$ Resources : Default,LabelLabel %>" CssClass="successmessage" ></asp:Label>
      </asp:Panel>
      
      <br />
        <!----------------------------------Summary----------------------------------->
    <asp:Panel ID="m_pnlSummary" runat="server">
        <div class="mastersearch">
            <img src="../../../images/Collapse_13x13.jpg" class="showstate" onclick="expandMasterSearch(this, 'm_pnlSummaryDiv')"
                alt="contract" />
            <asp:Literal ID="m_litSummary" runat="server" Text="<%$ Resources : Default,LabelSummary %>" />
        </div>
        <div id="m_pnlSummaryDiv">
            <uc:InvModelSummary ID="m_ucInvModelSummary" runat="server" />
            <asp:Label ID="m_lblNoResultSummary" Font-Bold="True" ForeColor="Red" runat="server"
                Visible="true" Text="<%$ Resources : Default,LabelNoResultsSummaryFound %>" />
        </div>
    </asp:Panel>

        <!---------------------------------Grid Pnl----------------------------------->
        <asp:Panel ID = "m_pnlGrid" Visible = "False" runat = "server" Width="100%">
       <!--------------------------------------------------------------------> 
          <asp:Panel ID="m_pnlTopGridOperator" Visible="false" runat="server" >
            <uc:GridOperatorHelper ID="m_TopGridOperator" runat="server" OnUpdateClicked="grdOperatorInventory_UpdateClicked" />
          </asp:Panel>
            <br/>
            <br/>
            <br/>
            <br/>
       <!---------------------------------HitsSearchGridView----------------------------------->
      <cc1:HitsSearchGridView ID="m_gvInventory" runat="server" AutoGenerateColumns="False" Width="100%"
            AllowPaging="True" 
            OnRowDataBound="m_gvInventory_RowDataBound" 
            OnPageIndexChanged="m_gvInventory_PageIndexChanged" 
            OnPageIndexChanging="m_gvInventory_PageIndexChanging"
           OnMenuItemCommand="m_gvInventory_OnMenuItemCommand"  
            ShowMenu="True" 
            ShowSelectField="True"
            ShowActivateMenu="False" 
            ShowDeActivateMenu="False" 
            ShowEmailMenu="False" 
            ShowPrintMenu="True" 
            ShowHotlineMenu="False"
            ShowDeHotlineMenu= "False"             
           CustomPagerID="HitsPager1"           
          ClientFunctionPrint = "window.print();" 
          OnCustomPageIndexChanged="m_gvInventory_PageIndexChanged" 
          OnCustomPageIndexChanging="m_gvInventory_PageIndexChanging" 
          ShowDeleteMenu="True" 
          ShowDeSelectMenu="True" 
          ShowExportMenu="True" 
          AllowToExportAll ="true"
          ShowSelectMenu="True" AtlasScriptManagerID="" ClientFunctionActivateSelected="" ClientFunctionDeActivateSelected="" ClientFunctionDeHotline="" ClientFunctionDelete="" ClientFunctionEmailSelected="" ClientFunctionExportSelected="" ClientFunctionHotline="" ClientFunctionSetStatus="" CssClassCustomPaging="" CssClassMenu="" PropagateActionToChildID="" ShowExportCSV="True" ShowExportXLS="True" ShowExportCSVWithSummary="False" ShowExportXML="True" ShowExportXMLWithSummary="False" ShowSetStatus="False"  >           
                <Columns>
                
                    <asp:TemplateField>
                        <headerstyle wrap="false" />
                        <headertemplate>
                            <asp:Literal ID = "m_litDetails" Text = "<%$ Resources :  InventoryManagement,LabelInvDotId %>" runat = "server" />
                            <br />
                            <uc:CustomSorter ID = "m_csInventoryId" SortExpression = "InventoryId" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </headertemplate>
                        <itemstyle width="6%" cssclass="nopadding" />
                        <itemtemplate>
                                    <asp:HyperLink id = "m_hlDetails" runat = "server" ToolTip="<%$ Resources : InventoryManagement,ToolTipGetInventoryDetails %>" />  
                                    <asp:HiddenField ID="m_hfInventoryId" runat="server" />
                        </itemtemplate>
                    </asp:TemplateField>                    
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litInventoryOwnerHeader" Text = "<%$ Resources : InventoryManagement,LabelInventoryOwner %>" runat = "server" />
                            <br/>
                            <uc:CustomSorter ID = "m_csInventoryOwner" SortExpression = "InventoryOwner" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                         <itemstyle cssclass="nopadding" wrap="False" horizontalalign="Center" />
                         <headerstyle cssclass="nopadding" wrap="False" />
                        <ItemTemplate>
                            <nobr><asp:Literal ID = "m_litInventoryOwner2" runat = "server" Text="" /></nobr>
                        </ItemTemplate>
                    </asp:TemplateField> 
                    
                    
                    <asp:TemplateField>
                        <headertemplate>
                            <asp:Literal ID = "m_litOrderHeader" Text = "<%$ Resources : ServicePlanManagement,LabelOrderNumberSign %>" runat = "server" />
                            <br />      
                            <uc:CustomSorter ID = "m_csOrder" SortExpression = "OrderNumber" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </headertemplate>
                        <itemstyle wrap="False" width="67px" cssclass="nopadding" />
                        <headerstyle wrap="false" />
                        <itemtemplate>
                            <asp:HyperLink ID="m_linkOrder" runat="server" />
                        </itemtemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litSupplierHeader" Text = "<%$ Resources : SubscriberManagement,LabelSupplier %>" runat = "server" />
                            <br />
                            <uc:CustomSorter ID = "m_csSupplier" SortExpression = "SupplierCompanyName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                         <itemstyle wrap="False" />
                         <headerstyle cssclass="nopadding" wrap="False" />
                        <ItemTemplate>
                            <asp:HyperLink ID = "m_linkSupplier" runat = "server" />
                        </ItemTemplate>
                    </asp:TemplateField>    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litModelHeader" Text = "<%$ Resources : ModelManagement,HeaderTextModel %>" runat = "server" />
                            <br />
                            <uc:CustomSorter ID = "m_csModel" SortExpression = "HandsetModelName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                         <itemstyle  cssclass="nopadding" wrap="False" />
                         <headerstyle cssclass="nopadding" wrap="False" />
                        <ItemTemplate>
                            <asp:HyperLink ID = "m_linkModel" runat = "server" />
                        </ItemTemplate>
                    </asp:TemplateField>    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litESNHeader" Text = "<%$ Resources : HandsetManagement,LabelESN %>" runat = "server" />
                            <br />
                            <uc:CustomSorter ID = "m_csESN" SortExpression = "HandsetESN" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID = "m_linkESN" runat = "server" />
                        </ItemTemplate>
                         <itemstyle wrap="False" />
                    </asp:TemplateField>  
                    <asp:TemplateField>
                        <headerstyle wrap="false" />
                        <HeaderTemplate>
                           <asp:Literal ID = "m_litTotalCostHeader" Text = "<%$ Resources : ServicePlanManagement,LabelTotalCost %>" runat = "server" />
                           <br />
                            <uc:CustomSorter ID = "m_csTotalCost" SortExpression = "TotalCost" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        <br />
                        </HeaderTemplate>
                        <headerstyle  verticalalign="Middle" />
                         <itemstyle horizontalalign="Right" cssclass="nopadding" wrap="False" />
                        <ItemTemplate>
                           <asp:Literal ID = "m_litTotalCost2" runat = "server" />
                        </ItemTemplate>
                    </asp:TemplateField>  
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litDispositionHeader" Text = "<%$ Resources : Default,LabelDisposition %>" runat = "server" />
                            <br/>
                            <uc:CustomSorter ID = "m_csDisposition" SortExpression = "DispositionName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                         <itemstyle cssclass="nopadding" wrap="False" horizontalalign="Center" />
                         <headerstyle cssclass="nopadding" wrap="False" />
                        <ItemTemplate>
                            <nobr><asp:Literal ID = "m_litDisposition" runat = "server" /></nobr>
                        </ItemTemplate>
                    </asp:TemplateField> 
                     
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litLocationHeader" Text = "<%$ Resources : OrganizationManagement,LabelLocation %>" runat = "server" />
                            <br/>
                            <uc:CustomSorter ID = "m_csLocation" SortExpression = "LocationCompanyName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="m_linkLocation" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>  
                    <asp:TemplateField>
                        <headerstyle wrap="false" />
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litConditionHeader" Text = "<%$ Resources : Default,LabelCondition %>" runat = "server"  />
                            <br />
                            <uc:CustomSorter ID = "m_csCondition" SortExpression = "ConditionName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>                        
                        <ItemStyle horizontalalign="Center" Width = "130px" />
                        <ItemTemplate>
                            <asp:Literal ID = "m_litCondition" runat = "server" />
                        </ItemTemplate>
                    </asp:TemplateField>    
                    <asp:TemplateField>
                        <headerstyle wrap="false" />
                        <HeaderTemplate>
                            <asp:Literal ID = "m_litCarrierAllocation" Text = "<%$ Resources : SubscriberManagement,LabelClientAllocation %>" runat = "server" />
                            <br/>
                            <uc:CustomSorter ID = "m_csCarrierAllocation" SortExpression = "CarrierAllocationName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                        </HeaderTemplate>
                        <headerstyle  verticalalign="Middle" />
                         <itemstyle cssclass="nopadding" />
                        <ItemTemplate>
                            <asp:HyperLink ID="m_linkCarrierAllocation" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>  
                </Columns>
                
                <PagerTemplate>
                    <cc1:HitsPager ID="HitsPager1" runat="server" />
                </PagerTemplate>
                
                <PagerSettings Mode="NumericFirstLast" />
                <RowStyle VerticalAlign="Top" />
                <EditRowStyle VerticalAlign="Top" />
            </cc1:HitsSearchGridView>
            <br />
        </asp:Panel>
        
        <asp:Label ID="m_lblNoFound" Font-Bold="True" ForeColor="Red" runat="server"
            Visible="False" Text="<%$ Resources : Default,LabelNoResultsFound %>" />
            
    <!----------------------------------Data Source---------------------------------->

        <asp:ObjectDataSource ID="m_objDataSource" runat="server" SelectMethod="Select"
            SelectCountMethod="SelectCount" TypeName="InventoryDataSource" EnablePaging="True">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="null" Name="search" SessionField="InventorySearchCriteria_SessionKey" Type="Object" />
                <asp:ControlParameter ControlID="m_gvInventory" DefaultValue="" Name="startRowIndex" PropertyName="PageIndex"
                    Type="Int32" />
                <asp:Parameter DefaultValue="10" Name="maximumRows" Type="Int32" />
                 <asp:SessionParameter Name = "sortExpression" SessionField = "InventorySortExpression_SessionKey"
                    Type="Object" />
            </SelectParameters>
        </asp:ObjectDataSource>
    <!--------------------------------------------------------------------> 
 
    
<%--   <asp:Literal ID = "m_litErrorMessage" runat = "server" />
--%>
        <script language="javascript" type="text/javascript">
            $(document).ready(function () {
                $('[id$=_m_gvInventory_mnuHeader2__divMenuContainer]').attr('style', 'VERTICAL-ALIGN: middle;');
                $('[id$= _m_gvInventory]').attr('style', 'width:100%;border-collapse:collapse; margin-bottom:3px');
            });
    </script>
</asp:Content>
