<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Inherits="site_HITS_Orders_Details" Title="Brightstar Device Protection: Order Details"
    Culture="auto" UICulture="auto" Theme="eMain" Codebehind="Details.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ModelSummary.ascx" TagName="ModelSummary" TagPrefix="uc" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName="CustomSorter" TagPrefix="uc" %>
<%@ Register Src="~/Controls/NotesControl.ascx" TagName="NotesControl" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <center>
        <asp:Label ID="lblSuccess" runat="server" Text="<%$ Resources : Default,LabelLabel %>" Font-Bold="True" ForeColor="Green"
            ></asp:Label>
    </center>
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" ValidationGroup="OrderMain"
        HeaderText="<%$ Resources : ServicePlanManagement,ExtendedValidationSummaryTheFollowingItemsNeedToBeReviewedBeforeUpdatingThisOrderDot %>"
        />
    <table width="100%">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_litTitle" runat="server" Text="<%$ Resources : InventoryManagement,LabelOrderDetails %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    <!---------------------------------------General Info ------------------------------------------->
    <asp:Panel ID="m_pnlGeneralInfo" runat="server">
        <h2>
            <asp:Literal ID="m_litGeneralInfo" runat="server" Text="<%$ Resources : UsersManagement,LabelGeneralInformation %>" />
            <asp:Label ID="lblStatus" runat="server" />
        </h2>
        <div class="greyblock">
            <span style="color: #ff0000">* </span>
            <asp:Literal ID="m_litRequired" runat="server" Text="<%$ Resources : Default,LabelIndicatesRequiredFields %>" />
            <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litOrderNHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelOrderNumberSignColon %>" />
                    </td>
                    <td align="left">
                        <asp:Literal ID="m_litOrderN" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litInvoiceNHeader" runat="server" Text="<%$ Resources : ClaimsManagement,LabelInvoiceNumberSignColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbInvoiceN" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litSupplierHeader" runat="server" Text="<%$ Resources : SubscriberManagement,SupplierLabel %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlSupplier" runat="server" Width="250px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="m_ddlSupplier"
                            ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litInvoicePostedOnHeader" runat="server" Text="<%$ Resources : BillingManagement,LabelInvoicePostedOnColon %>"
                            />
                    </td>
                    <td align="left">
                        <uc:HITSCalendar ID="m_calInvoicePostedOn" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litBillToHeader" runat="server" Text="<%$ Resources : BillingManagement,LabelBillToColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlBillTo" runat="server" Width="250px" 
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlBillTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ForeColor="red" Text="*"
                            runat="server" ControlToValidate="m_ddlBillTo" ValidationGroup="OrderMain" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litShipToHeader" runat="server" Text="<%$Resources : BillingManagement,LabelShipToColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlShipTo" runat="server" Width="250px" 
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlShipTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ForeColor="red" Text="*"
                            runat="server" ControlToValidate="m_ddlShipTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litDepartmentBillToHeader" runat="server" Text="<%$ Resources : ClaimsManagement,DepartmentLabel %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlDepartmentBillTo" runat="server" Width="250px" 
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlDepartmentBillTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlDepartmentBillTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litDepartmentShipToHeader" runat="server" Text="<%$ Resources : ClaimsManagement,DepartmentLabel %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlDepartmentShipTo" runat="server" Width="250px" 
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlDepartmentShipTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlDepartmentShipTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litContactBillToHeader" runat="server" Text="<%$ Resources : OrganizationManagement,LabelContactColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlContactBillTo" runat="server" Width="250px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlContactBillTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                        <%--                    <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="*" MinimumValue="1" ControlToValidate="m_ddlContactBillTo" MaximumValue="1000000" Display="Dynamic" Text="*" ValidationGroup="OrderMain" Type="Integer"></asp:RangeValidator>
--%>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litContactShipToHeader" runat="server" Text="<%$ Resources : OrganizationManagement,LabelContactColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlContactShipTo" runat="server" Width="250px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlContactShipTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                        <%--                    <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="*" MinimumValue="1" ControlToValidate="m_ddlContactShipTo" MaximumValue="1000000" Text="*" ValidationGroup="OrderMain" Font-Bold="false" Font-Italic="false" CultureInvariantValues="true" Type="Integer"></asp:RangeValidator>
--%>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litAddressBillToHeader" runat="server" Text="<%$ Resources : AddressResources,LabelAddressColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddressBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litAddressShipToHeader" runat="server" Text="<%$ Resources : AddressResources,Address2 %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddressShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litAddress2BillToHeader" runat="server" Text="<%$ Resources : AddressResources,Address2 %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddress2BillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litAddress2ShipToHeader" runat="server" Text="<%$ Resources : AddressResources,Address2 %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddress2ShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litCityBillToHeader" runat="server" Text="<%$ Resources : AddressResources,City %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbCityBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litCityShipToHeader" runat="server" Text="<%$ Resources : AddressResources,City %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbCityShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litStateBillToHeader" runat="server" Text="<%$ Resources:AddressResources, State  %>" />
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlStateBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litStateShipToHeader" runat="server" Text="<%$ Resources:AddressResources, State  %>" />
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlStateShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litZipBillToHeader" runat="server" Text="<%$Resources : AddressResources,Zip %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbZipBillTo" runat="server" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="m_tbZipBillTo"
                            ValidationExpression="<%$ Resources:AddressResources, ZipValidation %>" Text="<%$ Resources:Default, ValidatorText %>"
                            Display="Dynamic" ErrorMessage="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>" ToolTip="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>"
                            />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litZipShipToHeader" runat="server" Text="<%$Resources : AddressResources,Zip %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbZipShipTo" runat="server" />
                       <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="m_tbZipShipTo"
                            ValidationExpression="<%$ Resources:AddressResources, ZipValidation %>" Text="<%$ Resources:Default, ValidatorText %>"
                            Display="Dynamic" ErrorMessage="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>" ToolTip="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>"
                            />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litEmailBillToHeader" runat="server" Text="<%$ Resources : SubscriberManagement,LabelEmailColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbEmailBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litEmailShipToHeader" runat="server" Text="<%$ Resources : SubscriberManagement,LabelEmailColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbEmailShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litPhoneBillToHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelDaytimePhoneColon %>" />
                    </td>
                    <td align="left">
                        <uc1:PhoneNumber ID="m_ucPhoneBillTo" runat="server" Required="false" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litPhoneShipToHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelDaytimePhoneColon %>" />
                    </td>
                    <td align="left">
                        <uc1:PhoneNumber ID="m_ucPhoneShipTo" runat="server" Required="false" />
                    </td>
                </tr>
            </table>
        </div>
        <h2>
            <asp:Literal ID="m_litTrackingInformation" runat="server" Text="<%$ Resources : LogisticsManagement,LabelTrackingInformation %>"
                />
        </h2>
        <div class="greyblock">
            <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                <tr>
                    <td colspan="4">
                        <asp:GridView ID="m_gvTrackingShip" runat="server" AutoGenerateColumns="False" Width="100%"
                            OnRowDataBound="m_gvTrackingShip_RowDataBound" 
                            CssClass="gvTable" GridLines="None">
                            <Columns>
                                <asp:TemplateField HeaderText="<%$Resources : ClaimsManagement,LabelTrackingNumberColon %>" >
                                    <ItemTemplate>
                                        <asp:TextBox ID="m_tbTrackingN" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle Width="150px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources : BundleManagement,ChargeGridShippingCost %>" >
                                    <ItemTemplate>
                                        <asp:TextBox ID="m_tbShippingCost" runat="server" 
                                            Width="50" />
                                    </ItemTemplate>
                                    <ItemStyle Width="60px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources : AdministrationManagement,HeaderTextLoaderStatus %>" >
                                    <ItemTemplate>
                                        <asp:DropDownList ID="m_ddlStatus" runat="server" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ForeColor="red"
                                            Text="*" ControlToValidate="m_ddlStatus" ErrorMessage="*"></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Wrap="false" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources : BillingManagement,LabelDateShipped%>" >
                                    <ItemTemplate>
                                        <uc:HITSCalendar ID="m_calDateShipped" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Wrap="false" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources : BillingManagement,LabelDateReceived %>">
                                    <ItemTemplate>
                                        <uc:HITSCalendar ID="m_calDateReceived" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Wrap="false" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="m_lbDeleteTrSh" runat="server" Text="<%$ Resources : CallRecordingManagement,DelTable %>" Font-Underline="True"
                                            OnClick="m_lbDeleteTrSh_Clicked" />
                                    </ItemTemplate>
                                    <ItemStyle Width="3%" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <br />
                        <asp:LinkButton ID="m_lbAddNewTrSh" runat="server" Text="<%$ Resources : BillingManagement,LabelNewTracking %>" OnClick="m_lbAddNewTrSh_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <!---------------------------------------Notes Part------------------------------->
    <uc:NotesControl ID="m_ucNotesControl" runat="server"></uc:NotesControl>
    <!---------------------------------Update Button----------------------------------->
    <table width="100%">
        <tr>
            <td align="center">
                <asp:Button ID="m_btnSave" OnClick="m_btnSave_Click" ValidationGroup="OrderMain"
                    Text="<%$ Resources : Default,ButtonSave %>" runat="server" Width="50px" />
                <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" Text="<%$ Resources : Default,ButtonCancel %>" 
                    OnClientClick="javascript:window.close();" Width="50px" />
            </td>
        </tr>
    </table>
    <!---------------------------------------UC---------------------------------------->
    <asp:Panel ID="m_pnlModelSummary" runat="server">
        <uc:ModelSummary ID="m_ucModelSummary" SummaryGridPageSize="0" runat="server" />
    </asp:Panel>
    <table width="100%">
        <tr>
            <td style="width: 50%; padding: 0em; height: 246px;" valign="top">
                <!---------------------------------------Load Inventory Part------------------------------->
                <asp:Panel ID="Panel1" runat="server">
                    <h2>
                        <asp:Literal ID="m_litLoadInventoryPartHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelLoadInventory %>"
                            />
                    </h2>
                    <div class="greyblock">
                        <table border="0" cellpadding="0" cellspacing="0" class="noclass" width="100%">
                            <tr>
                                <td colspan="2" style="padding: 0em; height: 26px;">
                                    <table width="100%">
                                        <tr>
                                            <td align="right" style="white-space: nowrap;">
                                                <asp:LinkButton ID="m_lbLoadInventoryFile" runat="server" Text="<%$ Resources : InventoryManagement,LabelLoadInventoryFile %>"
                                                    OnClick="m_lbLoadInventoryFile_Click"
                                                    Font-Underline="true" />
                                            </td>
                                            <td align="left">
                                                <asp:FileUpload ID="m_fileLoadInventoryFile" ToolTip="<%$ Resources : Default,FileUploadBrowse %>" runat="server" Width="183px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="nopadding">
                                    <asp:Literal ID="m_litSpecifyEsns" runat="server" Text="<%$ Resources : InventoryManagement,LabelSpecifyESNsColon %>" /></td>
                                <td align="left">
                                    <asp:TextBox ID="m_tbSpecifyEsns" Width="300px" Rows="6" runat="server" 
                                        TextMode="MultiLine" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="m_btnSpecifyESNs" runat="server" Text="<%$ Resources : Default,GoButtonText %>" CssClass="pagebutton" Font-Bold="False"
                                        OnClick="m_btnSpecifyESNs_Click"  />
                                    <input id="m_btnClear2" type="button" runat="server" value="<%$ Resources : Default,ButtonClear %>" class="pagebutton"
                                         />
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </td>
            <td style="width: 30px;">
            </td>
            <td style="width: 50%; padding: 0em; height: 246px;" valign="top">
                <!---------------------------------------Inventory Info Part------------------------------->
                <asp:Panel ID="Panel2" runat="server">
                    <h2>
                        <asp:Literal ID="m_litInventoryFilterHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelFilterOn %>" />
                    </h2>
                    <div class="greyblock">
                        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                            <tr style="height: 25px">
                                <td colspan="2" style="height: 28px">
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="nopadding">
                                    <asp:Literal ID="m_litFilterLookupHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelLookupESNColon %>" />
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="m_tbESNLookupInventory" Width="300px" Rows="6" runat="server"
                                        TextMode="MultiLine" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="m_btnSearch" runat="server" Text="<%$ Resources : Default,ButtonSetFilter %>" CssClass="pagebutton" Font-Bold="False"
                                        OnClick="m_btnSearch_Click" />
                                    <input id="m_btnClear" type="button" runat="server" value="<%$ Resources : Default,ButtonClear %>" class="pagebutton"
                                         />
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <asp:Panel ID="m_pnlInventoryInfo" runat="server">
        <!---------------------------------HitsSearchGridView----------------------------------->
        <h2>
            <asp:Literal ID="m_litInventoryTableHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelOrderInventory %>"
                />
        </h2>
        <cc1:HitsSearchGridView ID="m_gvInventory" runat="server" AutoGenerateColumns="False"
            Width="100%" AllowPaging="False" OnRowDataBound="m_gvInventory_RowDataBound" OnMenuItemCommand="m_gvInventory_OnMenuItemCommand"
            ShowMenu="True" ShowSelectField="True" ShowActivateMenu="False" ShowDeActivateMenu="False"
            ShowEmailMenu="False" ShowPrintMenu="True" ShowHotlineMenu="False" ShowDeHotlineMenu="False"
            ShowDeleteMenu="True" ShowDeSelectMenu="True"
            ShowExportMenu="False" ShowSelectMenu="True" AtlasScriptManagerID="" ClientFunctionActivateSelected=""
            ClientFunctionDeActivateSelected="" ClientFunctionDeHotline="" ClientFunctionDelete=""
            ClientFunctionEmailSelected="" ClientFunctionExportSelected="" ClientFunctionHotline=""
            ClientFunctionPrint="" ClientFunctionSetStatus="" CssClassCustomPaging="" CssClassMenu=""
            CustomPagerID="" PropagateActionToChildID="" ShowExportCSV="True" ShowExportCSVWithSummary="False"
            ShowExportXML="True" ShowExportXMLWithSummary="False" ShowSetStatus="False">
            <Columns>
            
                <asp:TemplateField>
                    <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="7%" cssclass="nopadding" />
                    <itemtemplate>
                                                <asp:HyperLink id = "m_hlDetails" ToolTip="<%$ Resources : InventoryManagement,ToolTipGetInventoryDetails %>" runat = "server" />  
                                                <asp:HiddenField ID="m_hfInventoryId" runat="server" />
                                        </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 cssclass="nopadding" wrap="False" width="7%" />
                    <headerstyle cssclass="nopadding" wrap="False" />
                    <itemtemplate>
                                            <asp:HyperLink ID="m_linkOrder" runat="server" />
                                        </itemtemplate>
                </asp:TemplateField>
                
                <asp:TemplateField>
                    <headertemplate>
                                            <asp:Literal ID = "m_litSupplierGridHeader" Text="<%$ Resources : SubscriberManagement,LabelSupplier %>" runat = "server" />
                                            <br />
                                            <uc:CustomSorter ID = "m_csSupplier" SortExpression = "SupplierCompanyName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                                        </headertemplate>
                    <itemstyle width="16%"  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 width="9%" 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>
                    <itemstyle width="11%" cssclass="nopadding" />
                    <itemtemplate>
                                            <asp:Literal ID = "m_litESN" runat = "server" />
                                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                                           <asp:Literal ID = "m_litUnitCostHeader" Text = "<%$ Resources : OrganizationManagement,LabelUnitCost %>" runat = "server" />
                                           <br />
                                            <uc:CustomSorter ID = "m_csUnitCost" SortExpression = "WholesaleCost" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                                           </headertemplate>
                    <itemstyle cssclass="nopadding" width="7%"/>
                    <headerstyle cssclass="nopadding" wrap="False" />
                    <itemtemplate>
                                           <asp:Literal ID = "m_litUnitCost" runat = "server" />
                                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                                            <asp:Literal ID = "m_litRepairCostHeader" Text = "<%$ Resources : ModelManagement,LabelRepairCost %>" runat = "server" />
                                            <br /><br />
                <%--                            <uc:CustomSorter ID = "m_csRepairCost" SortExpression = "RepairCost" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                --%>                        
                                        </headertemplate>
                    <itemstyle cssclass="nopadding" width="9%"/>
                    <itemtemplate>
                                            <asp:Literal ID = "m_litRepairCost" 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" />
                    <headerstyle cssclass="nopadding" wrap="False" />
                    <itemtemplate>
                                            <asp:Literal ID = "m_litDisposition" runat = "server" />
                                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                                            <asp:Literal ID = "m_litLocationHeader" Text = "<%$ Resources : Default,HeaderTextLocation %>" runat = "server" />
                                            <br/>
                                            <uc:CustomSorter ID = "m_csLocation" SortExpression = "LocationCompanyName" runat = "server" OnSortAscendingClicked = "customSorter_SortClicked" OnSortDescendingClicked = "customSorter_SortClicked" />
                                        </headertemplate>
                    <itemstyle width="17%" cssclass="nopadding" wrap="False" />
                    <headerstyle cssclass="nopadding" wrap="False" />
                    <itemtemplate>
                                            <asp:Literal ID = "m_litLocation" runat = "server" />
                                            <asp:HyperLink ID="m_linkLocation" runat="server" />
                                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <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>
                    <headerstyle cssclass="nopadding" wrap="False" />
                    <itemstyle cssclass="nopadding" wrap="False"  />
                    <itemtemplate>
                                            <asp:Literal ID = "m_litCondition" runat = "server" />
                                        </itemtemplate>
                </asp:TemplateField>
            </Columns>
            <PagerTemplate>
                <cc1:HitsPager ID="HitsPager1" runat="server" />
            </PagerTemplate>
            <PagerSettings Mode="NumericFirstLast" />
            <RowStyle HorizontalAlign="Left" VerticalAlign="Top" />
            <EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
        </cc1:HitsSearchGridView>
        <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="objDataSearch" 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="strSortExpression" SessionField="InventorySortExpression_SessionKey"
                    Type="Object" />
            </SelectParameters>
        </asp:ObjectDataSource>--%>
    </asp:Panel>
</asp:Content>
