<%@ Page Language="C#" MasterPageFile="~/masterpages/eClaimWizard.master" MaintainScrollPositionOnPostback="true" AutoEventWireup="True" Inherits="site_HITS_Claims_Wizard_Claims_Rejection" Title="Claims Wizard - Reject Claim" Theme="eMain" Culture="auto" UICulture="auto" Codebehind="Rejection.aspx.cs" %>

<%@ Register Src="~/Controls/Claims/RCIRPopupWindow.ascx" TagName="RCIRPopup" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/GridViews/NoteHistory.ascx" TagPrefix="uc" TagName="NoteHistory" %>
<%@ Register Src="~/Controls/Claims/SubscriberDetails.ascx" TagPrefix = "uc" TagName = "SubscriberDetails" %>
<%@ Register Src="~/Controls/GridViews/ClaimHistory.ascx" TagPrefix = "uc" TagName = "ClaimHistory" %>
<%@ Register Src="~/Controls/GridViews/HandsetHistory.ascx" TagPrefix = "uc" TagName = "HandsetHistory" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Claims/SubscriberEmailDialogue.ascx" TagPrefix = "uc" TagName = "SubscriberEmailDialogue" %>
<%@ Register Src="~/Controls/Escalations/EscalationSummaryControl.ascx" TagName="EscalationSummaryControl"
    TagPrefix="uc3" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" Runat="Server">
    <script type="text/javascript" language="javascript">
        function TabContainer1_ActiveTabChanged(sender, e) {
            var manageRecordingURL = window.location.href.split('WebSite')[0] + "WebSite/ManageRecording.aspx";
            var url = manageRecordingURL + "?TabIndex=" + sender.get_activeTabIndex() + "&PageUrl=" + window.location.href.split('?')[0] + "&TabId=TabContainer1";
            $.ajax({ url: url, cache: false });
        }
    </script>
    <div style="text-align: center; margin-top: 3px; margin-bottom: 10px; width: 100%"
        class="claimsWizardSectionGridInput">
        <asp:Button ID="m_btnDone" runat="server" Text="<%$ Resources: Default, ButtonDone %>" OnClick="m_btnDone_Clicked"
            CssClass="pagebuttonClaimWizard" />
        <asp:Button ID="btnFileRCIR" runat="server" Text="<%$ Resources: Default, ButtonFileRCIR %>" OnClick="btnFileRCIR_Click" Visible="false" CssClass="pagebuttonClaimWizard" Width="80px"/>
        <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <%--<asp:Button ID="btnEscalation" runat="server" Text="Escalation" CausesValidation="false" CssClass="pagebuttonClaimWizard" Width="80px" onclick="btnEscalation_Click"/>--%>
        <input id="m_btnEscalation" type="button" runat="server" value="<%$ Resources: EscalationManagement, LabelEscalation %>"   visible="false"/>
    </div>
    
     <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" OnClientActiveTabChanged="TabContainer1_ActiveTabChanged">
        <ajaxToolkit:TabPanel ID="tabPanelClaimDetail" runat="server" HeaderText="<%$ Resources: ClaimsManagement, HeaderTextClaimDetail %>" >
            <ContentTemplate>
    
                <asp:Panel ID="m_pnlClaimDetails" runat="server">
                    <table>
                        <tr>
                            <td align="right">
                                <b>
                                    <asp:Label ID="Label10" runat="server" EnableViewState = "false" Text="<%$ Resources: Default, LabelLossDateColon %>" /><span style="color: #ff0000">*
                                    </span></b>
                            </td>
                            <td>
                                <uc:HITSCalendar ID="m_calLossDate" runat="server" Required="true" ValidationName="Loss Date" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <b>
                                    <asp:Label ID="Label11" runat="server" EnableViewState = "false" Text="<%$ Resources: ClaimsManagement, LabelLossDescription %>"/><span style="color: #ff0000">*
                                    </span></b>
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtLossDescription" runat="server" Width="400px" TextMode="MultiLine"
                                    />
                                <asp:RequiredFieldValidator ID="m_rfLossDescription" runat="server" ControlToValidate="m_txtLossDescription"
                                    ErrorMessage="<%$ Resources: ClaimsManagement, ErrorMessageEnterLossDescription %>" ToolTip="<%$ Resources: ClaimsManagement, ErrorMessageEnterLossDescription %>"
                                    Text="<%$ Resources:Default, ValidatorText %>" />
                            </td>
                        </tr>
                        <asp:Panel ID="m_pnlLossType" runat="server" Visible = "false">
                            <tr>
                                <td align="right">
                                    <b>
                                        <asp:Label ID="Label12" runat="server" EnableViewState = "false" Text="<%$ Resources: ClaimsManagement, LabelLossTypeColon %>" /><span style="color: #ff0000">*
                                        </span></b>
                                </td>
                                <td>
                                    <asp:DropDownList ID="m_ddlLossType" runat="server" />
                                </td>
                            </tr>
                        </asp:Panel>
                    </table>
                </asp:Panel>

                <asp:Panel ID="m_pnlEmailFormCollapsed" runat="server" CssClass = "collapsePanel">
                   
                        <div style="float:left"><asp:Localize ID="Localize2" runat="server" EnableViewState = "false" Text="<%$ Resources: SubscriberManagement, LabelSendEmailDesignatedClientRecipients %>" /></div>
                        <div style="float:left;margin-left:15px;"><asp:Label ID = "m_lblShowHide" runat = "server" Text = "<%$ Resources: CustomerCentralManagement, HideDetailsImg %>" /></div>
                        <div style="float: right; margin-right:5px; vertical-align: middle;">
                            <asp:ImageButton ID="m_ibtnShowHide" runat="server" CausesValidation = "false" ImageUrl="~/images/expand_blue.jpg" AlternateText= "<%$ Resources: CustomerCentralManagement, HideDetailsImg %>" />
                        </div>
                    
                </asp:Panel>
                <asp:Panel ID = "m_pnlEmailForm" runat = "server" CssClass ="uncollapsePanel">
                   
                    <center>
                        <div class="claimsWizardFormAction">
                            <asp:Button ID="m_btnSend" runat="server" EnableViewState = "false" CssClass="pagebuttonClaimWizard" Text="<%$ Resources: SubscriberManagement, SendButton %>"
                                OnClick="m_btnSend_Clicked" CausesValidation="False"/>
                        </div>
                        <div style="margin-top: -5px;">
                            <asp:Literal ID="m_litEmailStatus" runat="server" />
                        </div>
                    </center>
                    <table cellpadding="0" cellspacing="0" class="gvtable" border="0">
                        <tr>
                            <td style="font-weight: bold; text-align:right;">
                                <asp:Localize ID = "Localize4" runat = "server" EnableViewState = "false" Text = "<%$ Resources: Default, LabelToColon %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtTo" runat="server" Width="400px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="font-weight: bold;text-align:right;">
                                <asp:Localize ID = "Localize3" runat = "server" EnableViewState = "false" Text = "<%$ Resources: Default, LabelFromColon %>" />
                            </td>
                            <td>
                                <asp:Label ID="m_lblFrom" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td style="font-weight: bold;text-align:right;">
                                <asp:Localize ID = "Localize5" runat = "server" EnableViewState = "false" Text = "<%$ Resources: Default, LabelSubjectColon %>"/>
                            </td>
                            <td>
                                <asp:Literal ID="m_lblSubject" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimRejection %>"/>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="font-weight: bold;text-align:right;">
                                <asp:Localize ID = "Localize6" runat = "server" EnableViewState = "false" Text = "<%$ Resources: Default, LabelBodyColon %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtBody" runat="server" TextMode="MultiLine" Width="400px" Height="120px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                
                <ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server"
                    TargetControlID="m_pnlEmailForm"
                    ExpandControlID="m_pnlEmailFormCollapsed"
                    CollapseControlID="m_pnlEmailFormCollapsed" 
                    TextLabelID="m_lblShowHide"
                    ImageControlID="m_ibtnShowHide"    
                    ExpandedText="<%$ Resources: CustomerCentralManagement, HideDetailsImg %>"
                    CollapsedText="<%$ Resources: CustomerCentralManagement, ShowDetailsImg %>"
                    ExpandedImage="~/images/collapse_blue.jpg"
                    CollapsedImage="~/images/expand_blue.jpg"
                    SuppressPostBack="true"
                    Collapsed = "true"
                 />
                     
                 <uc:SubscriberDetails ID = "ucSubscriberDetails" runat = "server" />
                 <uc:HandsetHistory ID = "ucHandsetHistory" runat = "server" />
                 <uc:ClaimHistory ID="ucClaimHistory" runat="server" />


                <asp:Panel ID="m_pnlRejectionComplete" runat="server" style="display:none;width:300px;">
                   
                        <asp:Panel ID="m_pnlRejectionCompleteHeader" runat="server" EnableViewState = "false"  CssClass="modalHeader">                
                            <asp:Localize ID="Localize1" runat="server" EnableViewState = "false"  Text="<%$ Resources: ClaimsManagement, LabelRejectionComplete %>"/>                
                        </asp:Panel>
                        <asp:Panel ID="m_pnlRejectionCompleteBody" runat="server" CssClass="modalContent">
                         
                            <div style="padding:5px;">
                                <asp:Label ID="m_lblRejectionCompleteBody" runat="server" />
                            </div>
                            <asp:Button ID="m_btnProcessNewClaim" runat="server" EnableViewState = "false"  Text="<%$ Resources: ClaimsManagement, ButtonProcessNewClaim %>" OnClick="m_btnProcessNewClaim_Clicked" />
                           
                        </asp:Panel>
                    
                </asp:Panel>
                <asp:Button runat="server"  EnableViewState = "false" ID="hiddenTargetControlForModalPopup" style="display:none"/>
                
                <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="m_modalRejectionCompletePopupExtender"
                    TargetControlID="hiddenTargetControlForModalPopup"
                    PopupControlID="m_pnlRejectionComplete"
                    BackgroundCssClass="modalBackground"
                    
                    PopupDragHandleControlID="m_pnlRejectionCompleteHeader" 
                 />    
               
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel ID="tabPanelCliamNotes" runat="server" HeaderText="<%$ Resources: ClaimsManagement, ClaimNotesHeaderText %>">
            <ContentTemplate>
                <uc:NoteHistory ID="m_ucNoteHistory" runat="server" EnableViewState= "true" OnNoteSubmitted="m_ucNoteHistory_NoteSubmitted" />    
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        
        <ajaxToolkit:TabPanel ID="tabPanelEscalationSummary" runat="server" HeaderText="<%$ Resources: EscalationManagement, HeaderTextEscalationSummary %>">
            <ContentTemplate>
            <h2>
                <asp:Literal runat="server" id="asp_Literal9389" Text="<%$ Resources: EscalationManagement, HeaderTextEscalationSummary %>"></asp:Literal>        
            </h2>
            <div class="greyblock">
                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                    <tr>
                        <td>
                            <uc3:EscalationSummaryControl ID="m_ucEscalationSummary" runat="server" />
                        </td>
                    </tr>
                </table>
            </div>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>

    </ajaxToolkit:TabContainer>
    <asp:Panel ID="pnlNoteArchive" runat="server" Style="display: none; width: 800px;">
    <asp:Panel ID="pnlNoteArchiveHeader" runat="server" EnableViewState="false" CssClass="modalHeader">
        <table cellpadding="0" cellspacing="0" width="99%; margin: 0px;">
            <tr>
                <td align="center" style="margin: 0px; padding: 2px;">
                    <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, NotesHeaderText %>" />
                </td>
                <td align="right" style="margin: 0px; padding: 2px;">
                    <asp:ImageButton ID="imgArchiveNote" CausesValidation="false" runat="server" CssClass="modalClose" Height="18px"
                        ImageUrl="~/images/closeButton.png" ToolTip="<%$ Resources: Default, ToolTipClose %>" Width="18px" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlNoteArchiveBody" runat="server" CssClass="modalContent">
        <div ID="divNotes" runat="server" style="width:100%;height:375px;overflow:scroll;">
                        <uc:NoteHistory ID="ucNoteArchive" runat="server" />
         </div>           
    </asp:Panel>
        </asp:Panel>

        <asp:Button runat="server" EnableViewState="false" ID="hiddenTargetControlForModalPopup2"
        Style="display: none" />
    <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="modalPopupWindow" TargetControlID="hiddenTargetControlForModalPopup2"
        PopupControlID="pnlNoteArchive" BackgroundCssClass="modalBackground" BehaviorID="DisplayMessage"
         PopupDragHandleControlID="pnlNoteArchiveHeader" CancelControlID="imgArchiveNote" />
    <uc:SubscriberEmailDialogue ID = "ucSubscriberEmailDialogue" runat = "server" OnEmailPopulated = "ucSubscriberEmailDialogue_EmailPopulated" OnEmailPopulationCancelled = "ucSubscriberEmailDialogue_EmailPopulationCancelled" />
    <uc1:RCIRPopup ID="ucRCIRPopupWindow" runat="server" OnCancelClicked="ucRCIRPopupWindow_CancelClicked" OnProcessClicked="ucRCIRPopupWindow_ProcessClicked"/>
</asp:Content>

