<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true"
    Inherits="site_HITS_DirectShipments_Default" Title="Brightstar Device Protection: Direct Shipping"
    Theme="eMain" CodeBehind="Default.aspx.cs" %>

<%@ Register Src="~/Controls/DirectShips/GridOperator.ascx" TagName="GridOperatorHelper"
    TagPrefix="uc" %>
<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ScriptingHelper.ascx" TagName="ScriptingHelper" 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" %>
<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>
    <script src="../../../script/eErrorConditionManage.js" type="text/javascript">        function m_btnClear_onclick() {

        }

    </script>

         <script language="javascript" type="text/javascript">

             function disableSearch() {

                 var isValid = true;

                 if (typeof (Page_ClientValidate) == 'function') {
                     isValid = Page_ClientValidate();
                 }
                 if (isValid) {
                     this.disabled = true;
                     resetStatusText();
                 }
                 return isValid;
             }

             function isIE() {
                 var ie = (navigator.userAgent.indexOf("MSIE") != -1);
                 return ie;
             }
             function resetStatusText() {
                 var hdnLabelSearching = document.all('ctl00_eContent_hdnLabelSearching');
                 if (isIE()) {
                     var a = document.getElementById("ctl00_eContent_m_lblSuccessMessage");
                     if (a != null) {
                         a.innerHTML = hdnLabelSearching.value;
                         a.className = "successmessage";
                     }
                 }
                 else {
                     var b = document.all('ctl00_eContent_m_lblSuccessMessage');
                     if (b != null) {
                         b.innerHTML = hdnLabelSearching.value;
                         b.className = "successmessage";
                     }
                 }
             }

             $(document).ready(function () {
                 $('[id$=_m_txtPhoneNumber]')[0].style.width = "210px";
                 $('[id$=_m_txtDate]')[0].style.width = "210px";
                 $('[id$=_m_txtDate]')[1].style.width = "210px";
             });
    </script>
    <asp:HiddenField runat="server" ID="hdnLabelSearching" Value="<%$ Resources: Default, LabelSearching %>" />
    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server" />
    <h1>
        <asp:Literal ID="m_litPageHeader" runat="server" Text="<%$ Resources : Default,LabelHITSSubMenuDirectShipping %>" />
    </h1>
    <uc:DefaultHeader ID="DefaultHeader1" runat="server" />
    <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>
    <!-----------------------------------TABLE 1----------------------------------------->
    <div id="m_pnlMasterSearchCriteria" style="background-color: #DBDCDE">
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
            <tr>
                <td align="right" style="height: 41px">
                    <asp:Literal ID="m_litCarriersHeader" runat="server" Text="<%$ Resources : OrganizationManagement,LabelClientColon %>" />
                </td>
                <td style="height: 41px">
                    <asp:DropDownList ID="m_ddlCarriers" runat="server" Width="220px" />
                </td>
               <td align="right">
                    <asp:Literal ID="m_litSubscriberLastNameHeader" runat="server" Text="<%$ Resources : SubscriberManagement,LabelSubscriberLastName %>"/>
               </td>
                <td align="left">
                   <asp:TextBox ID="m_txtSubscriberLastName" runat="server" Width="209px"/>
                    <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender1" runat="server"
                        OnAutoCompleteCallback="SearchLastNames" TargetControlID="m_txtSubscriberLastName"
                        UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />
               </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litShippingStatusHeader" runat="server" Text="<%$ Resources : LogisticsManagement,LabelShippingStatusColon %>"/>
                </td>
                <td>
                    <asp:ListBox ID="m_ddlShippingStatus" runat="server" SelectionMode="Multiple" Width="220px" />
                </td>
                <td align="right">
                    <asp:Literal ID="Literal2" Visible="true" runat="server" Text="<%$ Resources : Default,LabelErrorCondition %>" />
                </td>
                <td>
                    <asp:ListBox ID="m_mlbErrorCondition" runat="server" SelectionMode="Multiple" Width="220px"></asp:ListBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litFilterMDNHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelMDNColon %>" />
                </td>
                <td>
                    <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" />
                </td>
                <td align="right">
                    <asp:Literal ID="m_litFilterESNHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelESNColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtESN" runat="server" Width="209px"/>
                    <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender4" runat="server"
                        OnAutoCompleteCallback="SearchESNs" TargetControlID="m_txtESN" UpdateMode="Callback"
                        EnableCaching="false" MinimumPrefixLength="2" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litTrackingNumberHeader" runat="server" Text="<%$ Resources : ClaimsManagement,LabelTrackingNumberColon %>"
                        />
                </td>
                <td>
                    <asp:TextBox ID="m_txtTrackingNumber" runat="server" Width="209px"/>
                    <%-- This SmartAutoCompleteExtender was taking forever and killing the DB so we took it out.--%>
                    <%--<SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender3" runat="server"
                        OnAutoCompleteCallback="SearchTrackingNumbers" TargetControlID="m_txtTrackingNumber"
                        UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />--%>
                </td>
                <td align="right">
                    <asp:Literal ID="m_litOrderNumber" runat="server" Text="<%$ Resources : InventoryManagement,LabelOrderNumberColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txbOrderNumber" runat="server" Width="209px"/>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litDateFromHeader" runat="server" Text="<%$ Resources : Default,DateFromLabel %>" />
                </td>
                <td align="left" style="width: 25%">
                    <asp:UpdatePanel runat="server" ID="update" UpdateMode="Conditional">
                        <ContentTemplate>
                            <uc:HITSCalendar ID="m_calDateFrom" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td align="right">
                    <asp:Literal ID="m_litDateToHeader" runat="server" Text="<%$ Resources : Default,DateToLabel %>" />
                </td>
                <td>
                    <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
                        <ContentTemplate>
                            <uc:HITSCalendar ID="m_calDateTo" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 63px">
                    <asp:Literal ID="m_litApplyToHeader" runat="server" Text="<%$ Resources : ClaimsManagement,ApplyDateRangeToLabel %>" />
                </td>
                <td style="height: 63px">
                    <asp:CheckBox ID="m_chbPending" Text="<%$ Resources : Default,LabelPendingDate %>" TextAlign="Right" runat="server" CssClass="directShipPadding"/>
                    <asp:CheckBox ID="m_chbShip" Text="<%$ Resources : LogisticsManagement,LabelShipDate %>" TextAlign="Right" runat="server" /><br />
                    <asp:CheckBox ID="m_chbDelivered" Text="<%$ Resources : ClaimsManagement,LabelDeliveredDate %>" TextAlign="Right" runat="server" />
                    <asp:CheckBox ID="m_chbActivation" Text="<%$ Resources : ClaimsManagement,LabelActivationDate %>" TextAlign="Right" runat="server" />
                </td>
                <td align="right" style="height: 63px">
                    </td>
                <td style="height: 63px">
                    </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources : HandsetManagement,LabelRecordsPerPageColon %>" />
                    </td>
                <td align="left" style="width:25%">
                <asp:DropDownList ID="m_ddlPageSize" runat="server" Width="50px">
                    </asp:DropDownList>
                </td>
                <td align="right">
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td align="right">
                    &nbsp;</td>
                <td align="left">
                </td>
                <td></td>
                <td></td>
                </tr>
        </table>
    </div>
    <!----------------------------------------------------Buttons----------------------------------------------------->
    <div style="text-align:center">
        <asp:Button ID="m_btnSetFilter" runat="server" Text="<%$ Resources :Default,ButtonSearch %>" CssClass="pagebutton"  UseSubmitBehavior="false" 
            OnClick="m_btnSetFilter_Click" OnClientClick="this.disabled = disableSearch()"/>
        <input id="m_btnClear" type="button" runat="server" value="<%$ Resources : Default,ButtonClear %>" class="pagebutton"
            onclick="return m_btnClear_onclick()" />
    </div>
    <!----------------------------------Search Results--------------------------------------------------------->
    <asp:Panel ID="m_pnlSearchResults" runat="server">
        <h2>
            <asp:Literal ID="Literal20" runat="server" Text="<%$ Resources : Default,LabelSearchResults %>" />
            <asp:Label ID="lblSuccess" runat="server" CssClass="successmessage"></asp:Label>
        </h2>
    </asp:Panel>
    <asp:Panel ID="m_pnlClaimsGrid" Visible="False" runat="server">
        
        <!----------------------------------Results Grid--------------------------------------------------------->

        <asp:Panel ID="m_pnlTopGridOperator" Visible="false" runat="server">
            <uc:GridOperatorHelper ID="m_TopGridOperator" runat="server" OnUpdateClicked="grdOperatorInventory_UpdateClicked" />
        </asp:Panel>
        <br />
        <cc1:HitsSearchGridView ID="m_gvResults" runat="server" AutoGenerateColumns="False"
            AllowPaging="True" OnRowDataBound="m_gvResults_RowDataBound" OnPageIndexChanged="m_gvResults_PageIndexChanged"
            OnPageIndexChanging="m_gvResults_PageIndexChanging" ShowMenu="True" ShowSelectField="True"
            ShowSetStatus="False" OnMenuItemCommand="m_gvResults_OnMenuItemCommand" ShowExportCSVWithSummary="True"
            ShowExportXMLWithSummary="True" ShowActivateMenu="False" ShowDeActivateMenu="False"
            ShowEmailMenu="False" ShowHotlineMenu="False" ShowDeHotlineMenu="False" CustomPagerID="HitsPager1"
            ClientFunctionPrint="window.print();" OnCustomPageIndexChanged="m_gvResults_PageIndexChanged"
            OnCustomPageIndexChanging="m_gvResults_PageIndexChanging" AtlasScriptManagerID=""
            ClientFunctionActivateSelected="" ClientFunctionDeActivateSelected="" ClientFunctionDeHotline=""
            ClientFunctionDelete="" ClientFunctionEmailSelected="" ClientFunctionExportSelected=""
            ClientFunctionHotline="" ClientFunctionSetStatus="" CssClassCustomPaging="" CssClassMenu=""
            PropagateActionToChildID="" ShowDeleteMenu="True"
            ShowDeSelectMenu="True" ShowSelectMenu="True" ShowExportCSV="True" ShowExportMenu="True"
            ShowExportXML="True" ShowPrintMenu="True" ShowSelectMenuChk="True" Width="100%">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litClaimIdHeader" Text="<%$ Resources : Default,LabelADotEDotId %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csAdvanceExchangeId" SortExpression="ADVANCEEXCHANGEID"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="3%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_linkDetails" ToolTip="<%$ Resources : Default,ToolTipGetAdvanceExchangeDetails %>"
                            ></asp:HyperLink>
                        <asp:HiddenField ID="m_hfId" runat="server"></asp:HiddenField>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litCarrierHeader" Text="<%$ Resources : OrganizationManagement,ListItemClient %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csCarrierName" SortExpression="CARRIERANAME"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="7%" />
                    <ItemTemplate>
                        <div style="overflow: hidden;">
                            <asp:HyperLink runat="server" ID="m_linkCarrierName"></asp:HyperLink>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litNameHeader" Text="<%$ Resources : SubscriberManagement,SubscriberHeader %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csName" SortExpression="SNAME" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="7%" />
                    <ItemTemplate>
                        <div style="overflow: hidden;">
                            <asp:HyperLink runat="server" ID="m_linkSubscriberName"></asp:HyperLink>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litStatusHeader" Text="<%$ Resources : AdministrationManagement,HeaderTextLoaderStatus %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csStatus" SortExpression="SHIPPING_STATUS"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <div style="overflow: hidden;">
                            <asp:Label runat="server" ID="m_lblStatus"></asp:Label>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litMDNHeader" Text="<%$ Resources : HandsetManagement,LabelMDN %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csMDN" SortExpression="MOBILE_NUMBERS" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="7%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_hlMDN"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litModelHeader" Text="<%$ Resources : ClaimsManagement,LabelClaimedMakeSlashModel %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csModel" SortExpression="ORIGINAL_MODEL_NAME"
                            OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_hlModel"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litReplacementHeader" Text="<%$ Resources : ClaimsManagement,LabelReplacementMakeSlashModel %>"
                            ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csReplacementModel" SortExpression="REPLACEMENT_MODEL"
                            OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="7%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_hlReplacementModel"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litESNHeader" Text="<%$ Resources : ClaimsManagement,LabelReplacementESNSlashIMEI %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csESN" SortExpression="ESN" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="7%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_hlESN"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litClaimDateHeader" Text="<%$ Resources: FulfillmentManagement, ColumnHeaderClaimDate %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csClaimDate" SortExpression="CLAIM_DATE" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_linkClaimDate"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litScheduledDateHeader" Text="<%$ Resources : ServicePlanManagement,LabelScheduledDate %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csScheduledDate" SortExpression="SCHEDULED_DATE"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblScheduledDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litShipDateHeader" Text="<%$ Resources : LogisticsManagement,LabelShipDate %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csShipDate" SortExpression="SHIP_DATE" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblShipDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litTrackNumHeader" Text="<%$ Resources : ClaimsManagement,LabelTrackingNumber %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="CustomSorter1" SortExpression="BOUND_NUMBER"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="7%" />
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="m_hlTrackNum" Target="_blank"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litDeliveredDateHeader" Text="<%$ Resources : ClaimsManagement,LabelDeliveredDate %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csDeliveredDate" SortExpression="DELIVERED_DATE"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblDeliveredDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litActiveDateHeader" Text="<%$ Resources : Default,LabelActiveDate %>" ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csActiveDate" SortExpression="ACTIVATION_DATE"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="6%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblActiveDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="m_litShippingErrorHeader" Text="<%$ Resources : Default,LabelErrorConditionCo %>"
                            ></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csShippingError" SortExpression="ERROR_CONDITION"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemStyle Width="10%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblShippingError"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerTemplate>
                <cc1:HitsPager ID="HitsPager1" runat="server" GoButtonText="<%$ Resources : Default,GoButtonText %>"  />
            </PagerTemplate>
            <RowStyle HorizontalAlign="Left" VerticalAlign="Top" BorderColor="#E0E0E0" BorderWidth="3px"
                Font-Size="XX-Small" />
            <HeaderStyle VerticalAlign="Top" />
            <EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
            <HeaderStyle BorderWidth="2px" Font-Size="XX-Small" />
        </cc1:HitsSearchGridView>
    </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" TypeName="DirectShipDataSource"
        EnablePaging="True" SelectCountMethod="SelectCount">
        <SelectParameters>
            <asp:SessionParameter Name="objSearchCriteria" SessionField="DShipSearchCriteria_SessionKey"
                Type="Object" />
            <asp:ControlParameter ControlID="m_gvResults" DefaultValue="1" Name="startRowIndex"
                PropertyName="PageIndex" Type="Int32" />
            <asp:Parameter DefaultValue="10" Name="maximumRows" Type="Int32" />
            <asp:SessionParameter Name="strSortExpression" SessionField="DShipSortExpression_SessionKey"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <!--------------------------------------------------------------------------------------------------------->
</asp:Content>