<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True"
    Inherits="site_HITS_Subscriber_Report" Title="Brightstar Device Protection: Subscriber Master"
    Theme="eMain" Culture="auto" UICulture="auto"
    CodeBehind="Report.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ScriptingHelper.ascx" TagName="ScriptingHelper" TagPrefix="uc" %>
<%@ Register Src="~/Controls/DefaultHeader.ascx" TagName="DefaultHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" 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/ClientCarrierDropDowns.ascx" tagname="ClientCarrierDropDowns" tagprefix="uc1" %>
    
<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"  />
    <center>
        <asp:Label ID="m_lblCannotAdd" runat="server" ForeColor="Red" Font-Bold="true" Text="<%$ Resources: SubscriberManagement, NotSearchSubscribersDeactivatedClientLabel %>" />
    </center>
    <asp:Panel ID="m_pnlMain" runat="server">
        <h1>
            <asp:Literal ID="m_litSubscriberManagementHeader" runat="server" Text="<%$ Resources: SubscriberManagement, SubscribersLabel %>" 
            />
        </h1>
        <uc:DefaultHeader ID="DefaultHeader1" runat="server" />
        <div class="mastersearch">
            <table cellspacing="0" cellpadding="0">
                <tr>
                    <td style="padding-right: 0px">
                        <img id="Img1" runat="server" src="../../../images/Collapse_13x13.jpg" class="showstate"
                            onclick="expandMasterSearch(this, 'm_pnlMasterSearchCriteria')" alt="contract" />
                    </td>
                    <td width="100%" valign="middle">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Default, LabelSearchCriteria %>" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="m_pnlMasterSearchCriteria" style="background-color: #DBDCDE">
            <table id="m_tblSubscriberFilter">
                <tr>
                    <%--<td align="right" style="width: 150px;">
                        <asp:Literal ID="m_litCarrier" runat="server" Text="<%$ Resources : OrganizationManagement,LabelClientColon %>" />
                    </td>
                    <td>
                        <asp:DropDownList ID="m_ddlCarrier" runat="server" 
                            Width="180px" AutoPostBack="true" OnSelectedIndexChanged="m_ddlCarrier_SelectedIndexChanged" />
                    </td>--%>
                    <td align="right"  colspan="2">
                        <div>
        
                            <uc1:ClientCarrierDropDowns 
                                ID="ucClientCarrierDropDowns" 
                                runat="server" 
                                OrientationOfDropDowns="Vertical"
                                 LabelWidth = "140px"  DefaultCarrierText="<%$ Resources: Default, HeaderListItemAll %>"
                                OnClientChanged="ucClientCarrierDropDowns_ClientChanged"
                                OnCarrierChanged="ucClientCarrierDropDowns_CarrierChanged" />
        
                        </div>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litESN" runat="server" Text="ESN/IMEI:" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtESN" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right" >
                        <asp:Literal ID="m_litSubscriberLastName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberLastName %>" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtSubscriberLastName" runat="server" />
                        <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender1" runat="server"
                            OnAutoCompleteCallback="SearchSubscriberLastNames" TargetControlID="m_txtSubscriberLastName"
                            UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litMDN" runat="server" Text="<%$ Resources : HandsetManagement,LabelMDNColon %>" />
                    </td>
                    <td>
                        <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litSubscriberFirstName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberFirstName %>" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtSubscriberFirstName" runat="server" />
                        <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAurotCompleteExtender2" runat="server"
                            OnAutoCompleteCallback="SearchSubscriberFirstNames" TargetControlID="m_txtSubscriberFirstName"
                            UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litActive" runat="server" Text="<%$ Resources: SubscriberManagement, StatusLabel %>"/>
                    </td>
                    <td>
                        <asp:DropDownList ID="m_ddlActive" runat="server" >
                            <asp:ListItem Text="<%$ Resources: Default, ListItemAll %>" Value="B" />
                            <asp:ListItem Text="<%$ Resources: SubscriberManagement, ActiveListItem %>" Value="1516"  />
                            <asp:ListItem Text="<%$ Resources: SubscriberManagement, InactiveListItem %>" Value="1517"  />
                            <asp:ListItem Text="<%$ Resources: SubscriberManagement, PendingListItem %>" Value="1518"  />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litAccountNumber" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountNumberSign %>" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtAccountNumber" runat="server" />
                        <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender2" runat="server"
                            OnAutoCompleteCallback="SearchAccountNumbers" TargetControlID="m_txtAccountNumber"
                            UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litDateTo" runat="server" Text="<%$ Resources: Default, DateToLabel %>" />
                    </td>
                    <td>
                        <uc:HITSCalendar ID="m_calDateTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litDateFrom" runat="server" Text="<%$ Resources: Default, DateFromLabel %>" />
                    </td>
                    <td>
                        <uc:HITSCalendar ID="m_calDateFrom" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litCallRecording" runat="server" Text="<%$ Resources: CallRecordingManagement, LabelCallRecording %>" />
                    </td>
                    <td>
                        <asp:DropDownList ID="m_ddlCallRecording" runat="server">
                            <asp:ListItem Text="<%$ Resources: Default, BothListItem %>" Value="B" />
                            <asp:ListItem Text="<%$ Resources: Default, YesListItem %>" Value="Y" />
                            <asp:ListItem Text="<%$ Resources: Default, NoListItem %>" Value="N" />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litPageSize" runat="server" Text="<%$ Resources: Default, LabelRecordsPerPageColon %>" />
                    </td>
                    <td>
                        <asp:DropDownList ID="m_ddlPageSize" runat="server">
                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                            <asp:ListItem Text="50" Value="50"></asp:ListItem>
                            <asp:ListItem Text="100" Value="100"></asp:ListItem>
                            <asp:ListItem Text="<%$ Resources: Default, ListItemAll %>" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litAccountType" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountType %>" />
                    </td>
                    <td>
                        <asp:DropDownList ID="m_ddlAccountType" DataTextField="RefName" DataValueField="ID" runat="server"></asp:DropDownList>
                    </td>
                </tr>
            </table>
        </div>
        <eSecuritelHITSControls:MasterSearchCollapsableControl Text="<%$ Resources: Default, ServicePlanFeatureSearchLabel %>"
            runat="server" ID="MasterSearchControl" TargetId="RatePlanFeatureSearchDiv">
        </eSecuritelHITSControls:MasterSearchCollapsableControl>
        <div id="RatePlanFeatureSearchDiv" style="background-color: #DBDCDE">
            <asp:UpdatePanel runat="server" ID="ExtendedWarrantyUpdatePanel" UpdateMode="Conditional">
                <%--<Triggers>
                    <asp:AsyncPostBackTrigger ControlID="m_ddlCarrier" EventName="SelectedIndexChanged" />
                </Triggers>--%>
                <ContentTemplate>
                    <table id="Table1">
                        <tr>
                            <td align="right" style="width: 250px;">
                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources: SubscriberManagement, ClicktheboxtoselectyourplanLabel %>" />
                            </td>
                            <td>
                                <eSecuritelHITSControls:MultiSelectExtWarrantyPlansControl runat="server" ID="MultiSelectControl">
                                </eSecuritelHITSControls:MultiSelectExtWarrantyPlansControl>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div class="masterpadding">
        </div>
        <div class="mastersearch">
            <table cellspacing="0" cellpadding="0">
                <tr>
                    <td style="padding-right: 0px">
                        <img id="m_imgSearchCriteria" runat="server" src="../../../images/Collapse_13x13.jpg"
                            class="showstate" onclick="expandMasterSearch(this, 'm_pnlAdditionalCriteria')"
                            alt="contract" />
                    </td>
                    <td width="100%" valign="middle">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources: Default, AdditionalSearchCriteriaLabel %>" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="m_pnlAdditionalCriteria" style="<%=AdditionalCriteriaStyle %>">
            <div class="mastersubpanelAddition">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right">
                            <asp:Literal ID="m_litMIN" runat="server" Text="MIN:" />
                        </td>
                        <td>
                            <asp:TextBox ID="m_txtMIN" runat="server" />
                        </td>
                        <td align="right">
                            <asp:Literal ID="m_litHandsetModel" runat="server" Text="<%$ Resources: HandsetManagement, LabelHandsetModelColon %>" />
                        </td>
                        <td>
                            <asp:TextBox ID="m_txtHandsetModel" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="m_litLosses" runat="server" Text="<%$ Resources: Default, LabelCurrentLosses %>" />
                        </td>
                        <td>
                            <asp:TextBox ID="m_txtLosses" runat="server" />
                            <asp:RegularExpressionValidator ID="m_regExLosses" runat="server" ControlToValidate="m_txtLosses"
                                Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ToolTip="Value must contain ['<' '>' '<=' '>=' '=' ''] followed by an integer. " />
                        </td>
                        <td align="right">
                            <asp:Literal ID="m_litTechType" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTechnologyTypeColon %>" />
                        </td>
                        <td>
                            <asp:DropDownList ID="TechTypeList" runat="server" DataTextField="RefName" DataValueField="ID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="m_litLookuppp" runat="server" Text="<%$ Resources: SubscriberManagement, LookUpLabel %>" />
                            <asp:DropDownList ID="m_ddlLookup" runat="server">
                                <asp:ListItem Value="0" Text="ESN" />
                                <asp:ListItem Value="1" Text="MDN" />
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:FileUpload ID="m_btnBrowseLookup" runat="server" ToolTip="<%$ Resources : Default,FileUploadBrowse %>"/><br>
                            <asp:Label ID="m_litLookUp" runat="server" />
                            <asp:HiddenField ID="m_litLookUpHidden" runat="server" />
                        </td>
                        <td align="right">
                            <asp:Literal ID="m_litPlanType" runat="server" Text="<%$ Resources: SubscriberManagement, PlanTypeLabel %>" />
                        </td>
                        <td>
                            <asp:TextBox ID="m_txtPlanType" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="m_litHotlined" runat="server" Text="<%$ Resources: SubscriberManagement, HotLinedLabel %>" 
							/>
                        </td>
                        <td>
                            <asp:DropDownList ID="m_ddlHotlined" runat="server">
                                <asp:ListItem Text="<%$ Resources: Default, BothListItem %>" Value="B" />
                                <asp:ListItem Text="<%$ Resources: Default, YesListItem %>" Value="Y" />
                                <asp:ListItem Text="<%$ Resources: Default, NoListItem %>" Value="N" />
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="padding-left: 290px">
            <asp:Button ID="m_btnSearch" runat="server" Text="<%$ Resources: Default, ButtonSearch %>" OnClick="m_btnSearch_Click"
                CssClass="pagebutton" />
            <input id="m_btnClear" type="button" runat="server" value="<%$ Resources: Default, ButtonClear %>" class="pagebutton" 
		/>
        </div>
        <asp:Panel ID="m_pnlSearchResults" runat="Server" Visible="False">
            <h2>
                <asp:Literal runat="server" ID="m_litSearchResultsHeader" Text="<%$ Resources: Default, LabelSearchResults %>" />
                <asp:Label ID="m_lblStatus" runat="server" />
            </h2>
            <asp:Literal ID="m_litNoResultsFound" runat="server" Text="<%$ Resources: Default, LabelNoResultsFound %>" />
            <asp:Panel ID="m_pnlGridViews" runat="server" Visible="False">
                <h3>
                    <asp:Literal ID="m_litSummaryHeader" runat="server" Text="<%$ Resources: SubscriberManagement, SummaryLabel %>" />
                </h3>
                <asp:GridView ID="m_grdViewSummary" runat="server" AutoGenerateColumns="False" OnRowDataBound="m_grdViewSummary_RowDataBound"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, CompanyHeaderText %>" >
                            <ItemTemplate>
                                <asp:Label ID="m_lblCompany" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, ActiveHeaderText %>" >
                            <ItemTemplate>
                                <asp:Label ID="m_lblActive" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, InactiveHeaderText %>" >
                            <ItemTemplate>
                                <asp:Label ID="m_lblInactive" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, PendingHeaderText %>" >
                            <ItemTemplate>
                                <asp:Label ID="m_lblPending" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, TotalHeaderText %>" >
                            <ItemTemplate>
                                <asp:Label ID="m_lblTotal" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="<%$ Resources: Default, HeaderTextCurrentLosses %>" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="m_lblCurrentLosses" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, CurrentPAIRHeaderText %>" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="m_lblCurrentPair" runat="server" Visible="false" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, LossesLastMonthHeaderText %>" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="m_lblLossesLastMonth" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, PAIRLastMonthHeaderText %>" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="m_lblPairLastMonth" runat="server" Visible="false" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, YTDLossesHeaderText %>" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="m_lblYTDLosses" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="PAIR" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="m_lblPAIR" runat="server"Visible="false"/>
                            </ItemTemplate>
                        </asp:TemplateField>  
                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" />
                    <RowStyle HorizontalAlign="Right" />
                </asp:GridView>
                <h3>
                    <asp:Literal ID="m_litGridViewSubscriberHeader" runat="server" Text="<%$ Resources: SubscriberManagement, ResultsLabel %>" />
                </h3>
                <cc1:HitsSearchGridView ID="m_grdViewSubscribers" runat="server" Width="100%" AutoGenerateColumns="False"
                    AllowPaging="True" OnRowDataBound="m_grdViewSubscribers_RowDataBound" OnMenuItemCommand="m_grdViewSubscribers_OnMenuItemCommand"
                    ShowMenu="True" ShowSelectField="True" ShowActivateMenu="True" ShowDeActivateMenu="True"
                    ShowEmailMenu="True" ShowPrintMenu="True" ShowHotlineMenu="True" ShowDeHotlineMenu="True"
                    CustomPagerID="HitsPager1" ClientFunctionPrint="window.print();" OnCustomPageIndexChanged="m_grdViewSubscribers_PageIndexChanged"
                    OnCustomPageIndexChanging="m_grdViewSubscribers_PageIndexChanging" ClientFunctionEmailSelected="EmailAllSelected();"
                    ShowDeleteMenu="True" ShowDeSelectMenu="True" ShowSelectMenu="True" AtlasScriptManagerID="ScriptManager"
                    ShowExportCSV="True" ShowExportCSVWithSummary="False" ShowExportMenu="True" ShowExportXML="True"
                    ShowExportXMLWithSummary="False" ShowSetStatus="False" ClientFunctionActivateSelected=""
                    ClientFunctionDeActivateSelected="" ClientFunctionDeHotline="" ClientFunctionDelete=""
                    ClientFunctionExportSelected="" ClientFunctionHotline="" ClientFunctionSetStatus=""
                    CssClassCustomPaging="" CssClassMenu="" PropagateActionToChildID="">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, NameHeaderText %>" ID="m_lblName" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="m_csName" SortExpression="LastName" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbName" OnClick="m_lbName_Click"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Wrap="false">
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="MDN" ID="m_lblMDN"></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="m_csMDN" SortExpression="MDN" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbMDN" OnClick="m_lbMDN_Clicked"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="ESN/IMEI" ID="m_lblESN_IMEI"></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="m_csESN" SortExpression="ESN" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbESN_IMEI" OnClick="m_lbESN_IMEI_Clicked"></asp:LinkButton>
                                <br />
                                <asp:Label ID="m_lblESN_IMEI_HEX" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, AcctNumHeaderText %>" ID="m_lblAcctNumHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter1" SortExpression="ACCT_NO" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <ItemStyle Width="100px" />
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblAccountNumber"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: HandsetManagement, HeaderTextHandset %>" ID="m_lblHandsetHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="m_csHandset" SortExpression="Handset" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbHandset" OnClick="m_lbHandset_Clicked"></asp:LinkButton>
                                <br />
                                <asp:Label ID="m_lblTechType" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, CoveredSinceHeaderText %>" ID="m_lblCoveredSinceHeader"></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter2" SortExpression="COVERED_SINCE"
                                    OnSortAscendingClicked="CustomSorter_Clicked" OnSortDescendingClicked="CustomSorter_Clicked">
                                </uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblCoveredSince"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, CoverageEffectiveHeaderText %>" ID="m_lblCoverageEffectiveHeader" 
								></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter3" SortExpression="COVERAGE_EFFECTIVE_DATE"
                                    OnSortAscendingClicked="CustomSorter_Clicked" OnSortDescendingClicked="CustomSorter_Clicked">
                                </uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblCoverageEffectiveDate"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: Default, HeaderTextCurrentLosses %>" ID="m_lblCurrentHeaderLosses" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter4" SortExpression="CURRENT_LOSSES"
                                    OnSortAscendingClicked="CustomSorter_Clicked" OnSortDescendingClicked="CustomSorter_Clicked">
                                </uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblCurrentLosses"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: Default, LossesHeaderText %>" ID="m_lblLossesHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter5" SortExpression="LOSSES" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblTotalLosses"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, HotlinedHeaderText %>" ID="m_lblHotlinedHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter6" SortExpression="HOTLINED" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblHotlined"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, StatusHeaderText %>" ID="m_lblActiveHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter7" SortExpression="ACTIVE" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblActive"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, TermDateHeaderText %>" ID="m_lblTermDateHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter8" SortExpression="TERM_DATE" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblTermDate"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="<%$ Resources: SubscriberManagement, ServicePlanHeaderText %>" ID="m_lblRatePlanFeaturesHeader" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="CustomSorter9" SortExpression="RatePlanFeatures"
                                    OnSortAscendingClicked="CustomSorter_Clicked" OnSortDescendingClicked="CustomSorter_Clicked">
                                </uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblRatePlanFeatures"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemStyle CssClass="hide" />
                            <HeaderStyle CssClass="hide" />
                            <ItemTemplate>
                                <!-- In order for the Emailing Javascript to work, we must have a visible column with the
                                         email information.  We don't want to have to user see it though, so set the display to none. -->
                                <asp:HyperLink runat="server" CssClass="EmailBox" ID="m_hypEmail"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerTemplate>
                        <cc1:HitsPager ID="HitsPager1" runat="server" GoButtonText="<%$ Resources: Default, GoButtonText %>" />
                    </PagerTemplate>
                    <PagerSettings Mode="NumericFirstLast" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <RowStyle HorizontalAlign="Left" Wrap="true" />
                    <EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
                </cc1:HitsSearchGridView>
            </asp:Panel>
        </asp:Panel>
    </asp:Panel>
    <asp:ObjectDataSource ID="m_odsSubscriber" runat="server" SelectMethod="Select" SelectCountMethod="SelectCount"
        TypeName="SubscriberDataSource" EnablePaging="True">
        <SelectParameters>
            <asp:SessionParameter Name="subscriberDataSearchCriteria" SessionField="SubscriberSearchData_SessionKey"
                Type="Object" />
            <asp:ControlParameter ControlID="m_grdViewSubscribers" Name="startRowIndex" PropertyName="PageIndex"
                Type="Int32" />
            <asp:Parameter DefaultValue="10" Name="maximumRows" Type="Int32" />
            <asp:SessionParameter Name="subscriberSortExpression" SessionField="SubscriberSortExpression_SessionKey"
                Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>