<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True"
    Inherits="site_HITS_Subscriber_Fraud" Title="Brightstar Device Protection: Suspected Fraud Search"
    Theme="eMain" Culture="auto" UICulture="auto"
    CodeBehind="Fraud.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" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>
    
<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 language="javascript" type="text/javascript">

     function onPhoneNumberkeyup() {
         var account = document.all ? document.all["ctl00_eContent_m_txtAccountNumber"] : document.getElementById("ctl00_eContent_m_txtAccountNumber");
         var mdn = document.all ? document.all["ctl00_eContent_m_ucMDN_m_txtPhoneNumber"] : document.getElementById("ctl00_eContent_m_ucMDN_m_txtPhoneNumber");
         var AccountLabel = document.all ? document.all["ctl00_eContent_m_litAccountNumber"] : document.getElementById("ctl00_eContent_m_litAccountNumber");
         var Client = document.all ? document.all["ctl00_eContent_ucClientCarrierDropDowns_ddlClient"] : document.getElementById("ctl00_eContent_ucClientCarrierDropDowns_ddlClient");
         var ClientLabel = document.all ? document.all["ctl00_eContent_ucClientCarrierDropDowns_lblClient"] : document.getElementById("ctl00_eContent_ucClientCarrierDropDowns_lblClient");

         if (mdn.value == null || mdn.value == '') {
             account.disabled = false;
             Client.disabled = false;
             AccountLabel.style.color = "Black";
             if (ClientLabel != null) ClientLabel.style.color = "Black";
         }
         else {
             account.disabled = true;
             Client.disabled = true;
             AccountLabel.style.color = "Gray";
             account.value = "";
             if (ClientLabel != null) ClientLabel.style.color = "Gray";
         }
     }

     function onAccountkeyup() {
         var account = document.all ? document.all["ctl00_eContent_m_txtAccountNumber"] : document.getElementById("ctl00_eContent_m_txtAccountNumber");
         var mdn = document.all ? document.all["ctl00_eContent_m_ucMDN_m_txtPhoneNumber"] : document.getElementById("ctl00_eContent_m_ucMDN_m_txtPhoneNumber");
         var mdnlabel = document.all ? document.all["ctl00_eContent_m_litMDN"] : document.getElementById("ctl00_eContent_m_litMDN");
         var Client = document.all ? document.all["ctl00_eContent_ucClientCarrierDropDowns_ddlClient"] : document.getElementById("ctl00_eContent_ucClientCarrierDropDowns_ddlClient");
         var ClientLabel = document.all ? document.all["ctl00_eContent_ucClientCarrierDropDowns_lblClient"] : document.getElementById("ctl00_eContent_ucClientCarrierDropDowns_lblClient");

         if (account.value == null || account.value == '') {
             mdn.disabled = false;
             Client.disabled = false;
             mdnlabel.style.color = "Black";
             if (ClientLabel != null) ClientLabel.style.color = "Black";
         }
         else {
             mdn.disabled = true;
             Client.disabled = true;
             mdnlabel.style.color = "Gray";
             mdn.value = "";
             if (ClientLabel != null) ClientLabel.style.color = "Gray";
         }
     }

     function clearControls() {
         var AccountLabel = document.all ? document.all["ctl00_eContent_m_litAccountNumber"] : document.getElementById("ctl00_eContent_m_litAccountNumber");
         var ClientLabel = document.all ? document.all["ctl00_eContent_ucClientCarrierDropDowns_lblClient"] : document.getElementById("ctl00_eContent_ucClientCarrierDropDowns_lblClient");
         var mdnlabel = document.all ? document.all["ctl00_eContent_m_litMDN"] : document.getElementById("ctl00_eContent_m_litMDN");

         if (ClientLabel != null) ClientLabel.style.color = "Black";
         mdnlabel.style.color = "Black";
         AccountLabel.style.color = "Black";

         var account = document.all ? document.all["ctl00_eContent_m_txtAccountNumber"] : document.getElementById("ctl00_eContent_m_txtAccountNumber");
         var mdn = document.all ? document.all["ctl00_eContent_m_ucMDN_m_txtPhoneNumber"] : document.getElementById("ctl00_eContent_m_ucMDN_m_txtPhoneNumber");
         var Client = document.all ? document.all["ctl00_eContent_ucClientCarrierDropDowns_ddlClient"] : document.getElementById("ctl00_eContent_ucClientCarrierDropDowns_ddlClient");

         mdn.disabled = false;
         account.disabled = false;
         Client.disabled = false;
     }

     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_lblStatus");
             if (a != null) {
                 a.innerHTML = hdnLabelSearching.value;
                 a.className = "successmessage";
             }
         }
         else {
             var b = document.all('ctl00_eContent_m_lblStatus');
             if (b != null) {
                 b.innerHTML = hdnLabelSearching.value;
                 b.className = "successmessage";
             }
         }
     }
 </script>
    
    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server"  />
    <asp:Panel ID="m_pnlMain" runat="server">
        <asp:HiddenField runat="server" ID="hdnLabelSearching" Value="<%$ Resources: Default, LabelSearching %>" />
 
        <center>
            <asp:Label ID="m_lblCannotAdd" runat="server" ForeColor="Red" Font-Bold="true" Text="<%$ Resources: SubscriberManagement, NotSearchSubscribersDeactivatedClientLabel %>" />
        </center>
  
        <h1>
            <asp:Literal ID="m_litSubscriberManagementHeader" runat="server" Text="<%$ Resources: SubscriberManagement, SuspectedFraudLabel %>" />
        </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>
        <asp:UpdatePanel runat="server" ID="asp_UpdatePanel4154" UpdateMode="Conditional">
        <Triggers>
            <asp:PostBackTrigger ControlID="ucClientCarrierDropDowns" />
        </Triggers>
        
        <ContentTemplate>
        <div id="m_pnlMasterSearchCriteria" style="background-color: #DBDCDE; "  >
            <br />
            <table id="m_tblSubscriberFilter" class="m_tblFraudFilter">
                <tr>
                    <td align="left" valign="top" style="width:348px; padding-left:67px" >
                    <asp:Panel ID="Panel1" runat="server" Width="376px" >
                        <table >
                            <tr>
                                <td align="right" colspan="2">
                                    <div id="clientCarrierDropDowns">
                                        <uc1:ClientCarrierDropDowns  
                                            ID="ucClientCarrierDropDowns" 
                                            runat="server" 
                                            OrientationOfDropDowns="Vertical"
                                            DefaultCarrierText="<%$ Resources: Default, HeaderListItemAll %>"
                                            OnClientChanged="ucClientCarrierDropDowns_ClientChanged"
                                            OnCarrierChanged="ucClientCarrierDropDowns_CarrierChanged"
                                            ShowSelectEntry="true"
                                            ShowAllEntry="false" />        
                                    </div>
                                </td>  
                            </tr>
                            <tr>
                                <td  align="right"><asp:Label ID="m_litSubscriberLastName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberLastName %>" />
                                </td>
                                <td  align="left"><asp:TextBox ID="m_txtSubscriberLastName" runat="server" />
                                </td>                                
                            </tr>
                            <tr>
                                <td  align="right"><asp:Label ID="m_litSubscriberFirstName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberFirstName %>" />
                                </td>
                                <td align="left"><asp:TextBox ID="m_txtSubscriberFirstName" runat="server" />
                                </td>                                
                            </tr>
                            <tr>
                                <td align="right"> <asp:Label ID="m_litDateFrom" runat="server" Text="<%$ Resources: SubscriberManagement, CoveredSinceLabel %>" />
                                </td>
                                <td align="left"> <uc:HITSCalendar ID="m_calDateFrom" runat="server" />
                                </td>                            
                            </tr>
                        </table>
                    </asp:Panel>    
                    </td>
                    <td align="left" valign="top">
                    <asp:Panel ID="Panel2" runat="server" CssClass="cs-div-rightColumn">
                        <table class="m_tblFraudFilter-right">
                            <tr>
                                <td align="right"><asp:Label ID="m_litMDN" runat="server" Text="<%$ Resources : HandsetManagement,LabelMDNColon %>" />
                                </td>
                            <%--<td align="left"> <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" onkeyup="onPhoneNumberkeyup()" />--%>
                                <td align="left"> <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" />
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td align="right"><asp:Label ID="m_litAccountNumber" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountNumberSign %>" />
                                </td>
                            <%--<td align="left"><asp:TextBox ID="m_txtAccountNumber" runat="server" onkeyup="onAccountkeyup()" />--%>
                                <td align="left"><asp:TextBox ID="m_txtAccountNumber" runat="server" />
                                </td>
                                <td></td>  
                            </tr>
                            <tr>
                                <td align="right"><asp:Label ID="m_litFirst6Cc" runat="server" Text="<%$ Resources: SubscriberManagement, LabelFirst6CreditCardColon %>" />
                                </td>
                                <td align="left"><asp:TextBox ID="m_txtFirst6Cc" runat="server" />
                                    <asp:RegularExpressionValidator ID="First6CcValidator" runat="server" ControlToValidate="m_txtFirst6Cc" 
                                        ValidationGroup="SearchCredentials" Display="Dynamic" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageFirst6CcIsInvalid %>"
                                        ValidationExpression="^[0-9]{6,6}$">
                                    </asp:RegularExpressionValidator>
                                </td>
                                <td></td>                                                                                                                 
                            </tr>
                            <tr>
                                <td align="right"><asp:Label ID="m_litLast4Cc" runat="server" Text="<%$ Resources: SubscriberManagement, LabelLast4CreditCardColon %>" />
                                </td>
                                <td align="left"><asp:TextBox ID="m_txtLast4Cc" runat="server" />
                                    <asp:RegularExpressionValidator ID="Last4CcValidator" runat="server" ControlToValidate="m_txtLast4Cc" 
                                        ValidationGroup="SearchCredentials" Display="Dynamic" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageLast4CcIsInvalid %>"
                                        ValidationExpression="^[0-9]{4,4}$">
                                    </asp:RegularExpressionValidator>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td align="right"><asp:Label ID="m_litEmail" runat="server" Text="<%$ Resources: SubscriberManagement, LabelEmailColon %>" />
                                </td>
                                <td align="left"><asp:TextBox ID="m_txtEmail" runat="server" Width="300px" />
                                    <asp:RegularExpressionValidator ID="emailValidator" runat="server" ControlToValidate="m_txtEmail"
                                        ValidationGroup="SearchCredentials" ValidationExpression="\s*\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*"
                                        ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageEmailInvalidFormat %>" >
                                    </asp:RegularExpressionValidator>
                                </td>
                                <td></td>
                            </tr>
                        </table>    
                    </asp:Panel>
                    </td>
                    <td></td>
                </tr>

                <tr>
                    <td align="left" style="width: 348px;padding-left:50px">
                        <br/>
                        <asp:Literal ID="m_litPageSize" runat="server" Text="<%$ Resources: Default, LabelRecordsPerPageColon %>" />
                        &nbsp;&nbsp;
                        <asp:DropDownList ID="m_ddlPageSize" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
            <br />
        </div>
        
        <div class="masterpadding">
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>       
        
        <div class="div-searchbuttons-center">
            <asp:Button ID="m_btnSearch" runat="server" Text="<%$ Resources: Default, ButtonSearch %>" OnClick="m_btnSearch_Click" 
            OnClientClick="this.disabled = disableSearch()" UseSubmitBehavior="false" 
                CssClass="pagebutton" />
            <asp:Button id="m_btnClear"  runat="server" Text="<%$ Resources: Default, ButtonClear %>" class="pagebutton" OnClick="m_btnClear_Click" OnClientClick="clearControls()"/>
        </div>

        <br />
        <asp:Label ID="m_lblStatus" runat="server" /><br />
        <asp:Panel ID="m_pnlSearchResults" runat="Server" Visible="False">
            <h2>
                <asp:Literal runat="server" ID="m_litSearchResultsHeader" Text="<%$ Resources: Default, LabelSearchResults %>" />
                
            </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="False" ShowDeActivateMenu="False"
                    ShowEmailMenu="False" ShowPrintMenu="True" ShowHotlineMenu="False" ShowDeHotlineMenu="False" ShowFraudMenu="True" ShowNotFraudMenu="True"
                    CustomPagerID="HitsPager1" ClientFunctionPrint="window.print();" OnCustomPageIndexChanged="m_grdViewSubscribers_PageIndexChanged"
                    OnCustomPageIndexChanging="m_grdViewSubscribers_PageIndexChanging" ClientFunctionEmailSelected="EmailAllSelected();"
                    ShowDeleteMenu="False" 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="" ClientFunctionFraud="" ClientFunctionNotFraud=""
                    CssClassCustomPaging="" CssClassMenu="" PropagateActionToChildID="">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label runat="server" Text="Fraud" ID="m_lblFraudFlagHeader" ></asp:Label>
                                <br />
                                
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label ID="m_lblFraudFlag" runat="server" Text="Fraud" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <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>
                            <HeaderTemplate>
                                <asp:Label ID="m_lblCompanyHeader" runat="server" Text="Company" ></asp:Label>
                                <br />
                                <uc:CustomSorter runat="server" ID="m_csCompany" SortExpression="Company" OnSortAscendingClicked="CustomSorter_Clicked"
                                    OnSortDescendingClicked="CustomSorter_Clicked"  ></uc:CustomSorter>
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblCompany"></asp:Label>
                            </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="<%$ 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 />
                                 
                            </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 ID="m_lblEmailHeader" runat="server" Text="Email" ></asp:Label>
                                <br />
                                
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblEmail"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="m_lblCreditCardHeader" runat="server" Text="Credit Card" ></asp:Label>
                                <br />
                                
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
<%--                            <asp:Label runat="server" ID="m_lblCreditCard"></asp:Label>--%>
                                <asp:LinkButton runat="server" ID="m_lbCreditCard" OnClick="m_lbCreditCard_Clicked"></asp:LinkButton>
                            </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: Default, LossesHeaderText %>" ID="m_lblLossesHeader" ></asp:Label>
                                <br />
                                
                            </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, StatusHeaderText %>" ID="m_lblActiveHeader" ></asp:Label>
                                <br />
                                
                            </HeaderTemplate>
                            <HeaderStyle VerticalAlign="Top" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="m_lblActive"></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>

        <!-- Credit Card AJAX Modal Popup-->
        <div>
            <asp:Panel ID="pnlCreditCardDisplay" runat="server" EnableViewState="True">
                <asp:Panel ID="pnlCreditCardDisplayHeader" runat="server" EnableViewState="False" CssClass="modalHeader">
                    <asp:Label ID="lblCreditCardDisplayHeader" runat="server" Text="<%$ Resources: RapidsManagement, CreditCardDisplayHeader %>"></asp:Label>
                </asp:Panel>
                <asp:Panel ID="pnlCreditCardDisplayBody" runat="server" CssClass="modalContent">
                    <div style="overflow: auto; height: 250px; width: 1100px">
                        <asp:GridView ID="gvCreditCardHistory" runat="server" AutoGenerateColumns="false" AllowPaging="false" ShowHeader="true">
                            <Columns>
                                <asp:BoundField DataField="BillFirstName" ItemStyle-HorizontalAlign="Left" ItemStyle-Width ="120px" 
                                    HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources: RapidsManagement, CreditCardBillFirstNameHeader %>" />
                                <asp:BoundField DataField="BillLastName" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="125px" 
                                    HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources: RapidsManagement, CreditCardBillLastNameHeader %>" />
                                <asp:BoundField DataField="BillAddress1" ItemStyle-HorizontalAlign="Left" ItemStyle-Width ="225px" 
                                    HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources: RapidsManagement, CreditCardBillAddressHeader %>" />
                                <asp:BoundField DataField="BillCity" ItemStyle-HorizontalAlign="Left" ItemStyle-Width ="125px" 
                                    HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources: RapidsManagement, CreditCardBillCityHeader %>" />
                                <asp:BoundField DataField="BillState" ItemStyle-HorizontalAlign="Left" ItemStyle-Width ="30px" 
                                    HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources: RapidsManagement, CreditCardBillStateHeader %>" />
                                <asp:BoundField DataField="BillZipCode" ItemStyle-HorizontalAlign="Center" ItemStyle-Width ="70px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardBillZipCodeHeader %>" />
                                <asp:BoundField DataField="First6Numbers" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardFirst6NumbersHeader %>" />
                                <asp:BoundField DataField="Last4Numbers" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="60px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardLast4NumbersHeader %>" />
                                <asp:BoundField DataField="ExpiryDate" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="60px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardExpiryDateHeader %>" />
                                <asp:BoundField DataField="CreditCardType" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardCreditCardTypeHeader %>" />
                                <asp:BoundField DataField="ChargeType" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardChargeTypeHeader %>" />
                                <asp:BoundField DataField="Active" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="55px" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="<%$ Resources: RapidsManagement, CreditCardActiveHeader %>" />
                            </Columns>
                        </asp:GridView>
                    </div>
                    <br />
                    <div>
                        <asp:Button ID="btnCloseCreditCardPopup" runat="server" CausesValidation="false"
                            EnableViewState="false" Text="<%$ Resources: RapidsManagement, CreditCardDisplayCloseButtonText %>"
                            margin-left="100px" OnClick="m_btnCloseCreditCardPopup_Clicked" ToolTip="<%$ Resources: RapidsManagement, CreditCardDisplayCloseButtonToolTip %>" />
                    </div>
                </asp:Panel>
            </asp:Panel>
            <asp:Button runat="server" EnableViewState="false" ID="btnCreditCardDisplay" Style="display: none" CausesValidation="false" />
            <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="modalCreditCardHistory" TargetControlID="btnCreditCardDisplay"
                PopupControlID="pnlCreditCardDisplay"  X="300" Y="150" />
            <!-- Y is the Vertical position -->
        </div>

    </asp:Panel>
    <asp:ObjectDataSource ID="m_odsSubscriber" runat="server" SelectMethod="SelectSubscriberForSuspectedFraud" 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>

