<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/eClaim.master" AutoEventWireup="True"
    CodeBehind="CustomerCentral.aspx.cs" Inherits="WebSite.site.HITS.Claims.CustomerCentral"
    Async="true" %>
<%@ Register Src="~/Controls/CustomerCentral/SubscriberDetail.ascx" TagName="SubscriberDetail"
    TagPrefix="uc3" %>
<%@ Register Src="~/Controls/GridViews/ClaimHistory.ascx" TagName="ClaimHistory"
    TagPrefix="uc2" %>

<%@ Register Src="~/Controls/GridViews/HandsetHistory.ascx" TagPrefix="uc" TagName="HandsetHistory" %>
<%@ Register Src="~/Controls/GridViews/FPCDetails.ascx" TagPrefix="uc" TagName="FPCDetails" %>
<%@ Register Src="~/Controls/GridViews/EscalationHistory.ascx" TagPrefix="uc" TagName="EscalationHistory" %>
<%@ Register Src="~/Controls/CustomerCentral/ClaimDetail.ascx" TagName="ClaimDetail"
    TagPrefix="uc1" %>
<%@ Register Src="~/Controls/GridViews/ModelHistory.ascx" TagPrefix="uc" TagName="ModelHistory" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Reference Control="~/Controls/POP/HIPManagerPOP.ascx" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/script/jquery-1.8.3.min.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <script language="javascript" type="text/javascript">
        CustomerCentral = new Object();
    </script>
   
    <div id="csMain">
        <table cellpadding="0" cellspacing="0" width="97%">
            <tr style="margin-bottom: 8px;">
                <td valign="top" align="left">
                    <asp:Panel ID="pnlBanner" runat="server">
                        <asp:Panel ID="pnlCollapsedCarrierMessage" runat="server" CssClass="collapsePanel"
                            Style="width: 1200px;">
                            <div style="float: left; margin-left: 15px;">
                                <asp:Label ID="lblShowHide" runat="server" Text="<%$ Resources: OrganizationManagement, LabelClientInformation %>" />
                            </div>
                            <div style="float: right; margin-right: 5px; vertical-align: middle;">
                                <asp:ImageButton ID="ibtnShowHide" runat="server" CausesValidation="false" ImageUrl="~/images/expand_blue.jpg"
                                    AlternateText="<%$ Resources: CustomerCentralManagement, HideDetailsImg %>" />
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlCarrierMessage" runat="server" Style="background-color: ButtonFace; width: 1200px;">
                            <asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div style="width: 97%; padding-left: 8px;">
                                        <asp:PlaceHolder ID="phCarrierBanner" runat="server"></asp:PlaceHolder>
                                    </div>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SubscriberSelected" />
                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityQuestionAnswered" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </asp:Panel>
                        <ajaxToolkit:CollapsiblePanelExtender ID="cpeCarrierMessage" runat="Server" ExpandedSize="128"
                            CollapsedSize="0" Collapsed="false" ScrollContents="true" TargetControlID="pnlCarrierMessage"
                            ExpandControlID="pnlCollapsedCarrierMessage" CollapseControlID="pnlCollapsedCarrierMessage"
                            TextLabelID="lblShowHide" ImageControlID="ibtnShowHide" ExpandedText="<%$ Resources: CustomerCentralManagement, ClickHereToCollapse %>"
                            CollapsedText="<%$ Resources: CustomerCentralManagement, ClickHereToExpand %>" ExpandedImage="~/images/collapse_blue.jpg"
                            CollapsedImage="~/images/expand_blue.jpg" SuppressPostBack="true" />
                    </asp:Panel>
                </td>
            </tr>
            <tr style="margin-top: 8px;">
                <td valign="top" align="left">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="right" valign="top" class="cs-LeftTableCell">
                                <table class="cs-LeftTable" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="left" valign="top" class="cs-LeftTableCell">
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:Panel ID="pnlSubscriberDetail" runat="server" CssClass="cs-LeftPanel">
                                                        <uc3:SubscriberDetail ID="ucSubscriberDetail" runat="server" />
                                                    </asp:Panel>
                                                    <asp:HiddenField ID="hidSubscriberID" runat="server" />
                                                    <asp:HiddenField ID="hidCustomerCentralPath" runat="server" />
                                                    <asp:HiddenField runat="server" ID="hidUpdatePhone" Value="0"/>           
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SubscriberSelected" />
                                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityRequested" />
                                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityOptionChanged" />
                                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityQuestionAnswered" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td align="left" valign="top" class="cs-RightTableCell">
                                <table class="RightTable" cellpadding="0" cellspacing="0">
                                    <tr align="left">
                                        <td class="cs-RightTableCell">
                                            <asp:UpdatePanel ID="UpdatePanel1ClaimHistory" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:Panel ID="pnlClaimHistory" runat="server" CssClass="cs-RightPanel" >
                                                            <div >
                                                                <asp:Panel ID="pnlNoResultsClaimHistoryAll" runat="server" Visible="true">
                                                                    <h2>
                                                                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources: ClaimsManagement, ClaimHistoryInformationLabel %>" />
                                                                    </h2>
                                                                    <br />
                                                                    <asp:Label ID="Label4" runat="server" Text="<%$ Resources: Default, LabelNoResultsFound %>" />
                                                                </asp:Panel>
                                                                <uc2:ClaimHistory ID="ucClaimHistoryAll" runat="server" IsCustomerCentral="true"></uc2:ClaimHistory>
                                                            </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SubscriberSelected" />
                                                    <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityQuestionAnswered" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td class="cs-RightTableCell">
                                            <asp:Panel ID="pnlEscalationHistory" runat="server" CssClass="cs-RightPanel" >
                                                <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
                                                    <ContentTemplate>
                                                        <div class="cs-btn-escalation-container-height-fix">
                                                             <asp:Button ID="btnCreateEscalation" runat="server" Text="<%$ Resources: EscalationManagement, ButtonCreateEscalation %>" />
                                                         </div>
                                                        <div >
                                                            <asp:Panel ID="pnlNoResultsEscalationHistoryAll" runat="server" Visible="true">
                                                                <h2>
                                                                    <asp:Label ID="Label7" runat="server" Text="<%$ Resources: EscalationManagement, LabelEscalationHistoryInformation %>" /></h2>
                                                                <br />
                                                                <asp:Label ID="Label8" runat="server" Text="<%$ Resources: Default, LabelNoResultsFound %>" />
                                                            </asp:Panel>
                                                            <uc:EscalationHistory ID="ucEscalationHistoryAll" runat="server" IsCustomerCentral="true" />
                                                        </div>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SubscriberSelected" />
                                                        <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityQuestionAnswered" />
                                                    </Triggers>
                                                </asp:UpdatePanel>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><asp:Panel ID="pnlHandsetHistory" runat="server" CssClass="cs-LeftPanel" style="margin-right: 0px !important;width: auto;margin-top: 2px !important">
                                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                                    <ContentTemplate>
                                                        <div style="float: right;margin-right: 13px;">
                                                        <div style="float: left;">
                                                            <asp:Button runat="server" id="btnArchivedHandsetHistory" 
                                                                CssClass="ArchivedHandsetHistoryButtonCustomerCentral"
                                                                Visible="True"
                                                                UseSubmitBehavior="false" 
                                                                CausesValidation="False"
                                                                OnClick="btnArchivedHandsetModelHistory_Click" 
                                                                Text="<%$ Resources: HandsetManagement, ShowHistoryOfHandsetsLabel %>"/>
                                                        </div>
                                                        <asp:Button ID="btnModelNotListed" runat="server" Text="<%$ Resources: ModelManagement, ButtonModelNotListed %>" Style="float: left;"
                                                            class="ToDisable" OnClick="btnModelNotListed_Click"></asp:Button>
                                                        
                                                        
                                                        <asp:Button ID="btnEnrollNewHandsetNew" runat="server" Text="<%$ Resources: HandsetManagement, ButtonEnrollHandset %>" Style="float: left;"
                                                            class="ToDisable" OnClientClick="showHIPManagerPOP(this)"></asp:Button>
                                                            </div>
                                                        <div style="display: none; float: left; margin: 0 5px;" id="divLoading">
                                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/ajax-loader.gif" />
                                                            <asp:Label ID="Label10" runat="server" Text="<%$ Resources: SubscriberManagement, LoadingLabel %>"></asp:Label>
                                                        </div>
                                                        
                                                        <asp:PlaceHolder ID="phHipManager" runat="server"></asp:PlaceHolder>
                                                        <ajaxToolkit:TabContainer runat="server" ID="tabHandsetHistory" ActiveTabIndex="0" CssClass="ajax__tab_xp ajax__tab_container ajax__tab_default tabContainerHistory" OnClientActiveTabChanged="tabHandsetHistory_ActiveTabChanged"
                                                            Width="100%" style="min-height: 136px" >
                                                            <ajaxToolkit:TabPanel runat="server" ID="tabHandsetHistoryPanel2" HeaderText="<%$ Resources: CustomerCentralManagement, AllHandsetsHeaderText %>">
                                                                <ContentTemplate>
                                                                    <div style="font-size: xx-small; width: 100%;">
                                                                        <uc:ModelHistory ID="ucModelHistory" runat="server" IsCustomerCentral="true" />
                                                                    </div>
                                                                </ContentTemplate>
                                                            </ajaxToolkit:TabPanel>
                                                            <ajaxToolkit:TabPanel runat="server" ID="tabHandsetHistoryPanel3" HeaderText="<%$ Resources: CustomerCentralManagement, AllHandsetsHistoryHeaderText  %>">
                                                                <ContentTemplate>
                                                                    <div style="font-size: xx-small; width: 100%;">
                                                                        <uc:HandsetHistory ID="ucHandsetHistoryAll" runat="server" IsCustomerCentral="true" />
                                                                    </div>
                                                                </ContentTemplate>
                                                            </ajaxToolkit:TabPanel>
                                                            <ajaxToolkit:TabPanel Visible="false" runat="server" ID="tabFPCDetails" HeaderText="<%$ Resources: CustomerCentralManagement, FPCDetailsHeaderText  %>">
                                                                <ContentTemplate>
                                                                    <div style="font-size: xx-small; width: 100%;">
                                                                        <uc:FPCDetails ID="ucFPCDetails" runat="server" />
                                                                    </div>
                                                                </ContentTemplate>
                                                            </ajaxToolkit:TabPanel>
                                                        </ajaxToolkit:TabContainer>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SubscriberSelected" />
                                                        <asp:AsyncPostBackTrigger ControlID="ucSubscriberDetail" EventName="SecurityQuestionAnswered" />
                                                    </Triggers>
                                                </asp:UpdatePanel>
                                            </asp:Panel></td>
                        </tr>
                    </table>
                    <asp:HiddenField ID="hidPostBackUpdatePanels" runat="server" Value="" />
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnlPopupWindow" runat="server" Style="display: none; width: 300px;">
            <asp:Panel ID="pnlPopupWindowHeader" runat="server" EnableViewState="false" CssClass="modalHeader">
                <asp:Label ID="lblHeaderText" runat="server" EnableViewState="false" />
            </asp:Panel>
            <asp:Panel ID="pnlPopulateEmailBody" runat="server" CssClass="modalContent">
                <asp:Label ID="lblBodyText" runat="server" EnableViewState="false" />
                <hr />
                <asp:Button ID="btnOk" runat="server" Width="60px" EnableViewState="false" Text="<%$ Resources: Default, OkButton %>"
                    CausesValidation="false" />
            </asp:Panel>
        </asp:Panel>
        <asp:Button runat="server" ID="hiddenTargetControlForModalPopup_New"
            Style="display: none" />
        
        </div>

    <asp:HiddenField runat="server" ID="hdAlertCancelThisClaimQuestion" Value="<%$ Resources: ClaimsManagement, AlertCancelThisClaimQuestion %>" />
    <asp:HiddenField runat="server" ID="hdClaimInProgress" Value="<%$ Resources: CustomerCentralManagement, ClaimInProgress %>" />
    <asp:HiddenField runat="server" ID="hdThereisalreadyaclaiminprogressforthissubscriber" Value="<%$ Resources: CustomerCentralManagement, Thereisalreadyaclaiminprogressforthissubscriber %>" />
    <asp:HiddenField runat="server" ID="hdHeaderMessageHotlined" Value="<%$ Resources: CustomerCentralManagement, HeaderMessageHotlined %>" />
    <asp:HiddenField runat="server" ID="hdCANTakeClaimOnHotlinedSubscriberWarningBody" />
    <asp:HiddenField runat="server" ID="hdCANTakeClaimOnTermedSubscriberWarningHeader" />
    <asp:HiddenField runat="server" ID="hdCANTakeClaimOnPendingSubscriberWarningBody" />
    <asp:HiddenField runat="server" ID="hdCANTakeClaimOnTermedSubscriberWarningBody" />
    <asp:HiddenField runat="server" ID="hdSubscriberisinPendingstatus" Value="<%$ Resources: CustomerCentralManagement, SubscriberisinPendingstatus %>" />
    <asp:HiddenField runat="server" ID="hdCreateClaimLinkClickedfromHandsetHistoryGridSubscriber" Value="<%$ Resources: CustomerCentralManagement, CreateClaimLinkClickedfromHandsetHistoryGridSubscriber %>" />
    <asp:HiddenField runat="server" ID="hdCreateClaimLinkClickedfromHandsetHistoryGridHandsetModel" Value="<%$ Resources: CustomerCentralManagement, CreateClaimLinkClickedfromHandsetHistoryGridHandsetModel %>" />
    <asp:HiddenField runat="server" ID="hdLabelSubscriberPending" Value="<%$ Resources: SubscriberManagement, LabelSubscriberPending %>" />
    <asp:HiddenField runat="server" ID="hdLabelCanNotCreateClaimSubsPending" Value="<%$ Resources: ClaimsManagement, LabelCanNotCreateClaimSubsPending %>" />

    <style type="text/css">
        html, body
        {
            height: 100%;
        }

        body
        {
            padding: 0;
            margin: 0;
        }

        #content td
        {
            padding-right: 1px;
            padding-top: 0px;
            font-size:11px;
        }

        .style1
        {
            width: 210px;
        }

        #ctl00_eContent_ucSubscriberDetail_tabSubscriberDetails_body {
            overflow-x: auto;
        }

    </style> 
    <script type="text/javascript" src="<%=ResolveClientUrl("~/script/selectSubscriber.js?ver=9.3")%>"></script>
    <script type="text/javascript" src="<%=ResolveClientUrl("~/script/subscriberDetails.js?ver=9.3")%>"></script>
    <script type="text/javascript" src="<%=ResolveClientUrl("~/script/customersCentral.js?ver=9.3")%>"></script>
</asp:Content>
