
<%@ Page Title="Brightstar Device Protection: Escalation Detail" Language="C#" MasterPageFile="~/masterpages/eDashboard.master"
    AutoEventWireup="True" Inherits="site_HITS_Escalations_Detail" Theme="eMain"
    UICulture="Auto" CodeBehind="Detail.aspx.cs" %>
<%@ 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-vsdoc.js" />
            <asp:ScriptReference Path="~/script/jquery-1.8.3.js" />--%>
            <asp:ScriptReference Path="~/script/jquery-1.8.3.min.js" />
            <asp:ScriptReference Path="~/script/Escalations/EscalationDetail.js" />            
        </Scripts>
    </asp:ScriptManagerProxy>

    <%--<asp:ScriptReference Path="~/script/jquery-1.8.3-vsdoc.js" />
            <asp:ScriptReference Path="~/script/jquery-1.8.3.js" />--%>
    <script language="javascript" type="text/javascript">
        
        function DisableOrEnableEmailTextBox(emailCheckBox) {
            document.getElementById('<%= EmailInput.ClientID %>').value = "";
            
            if (emailCheckBox.checked === false) {
                document.getElementById('<%= EmailInput.ClientID %>').focus();
            }
        }

        function OnFaxTextChanged(sender, args) {
        }

        function OnEmailTextChanged(sender, args) {
            
            if ((document.getElementById('<%= EmailInput.ClientID %>')) && (document.getElementById('<%= cbEmailNotProvided.ClientID %>'))) {

                if ($.trim(document.getElementById('<%= EmailInput.ClientID %>').value) === "") {
                    document.getElementById('<%= cbEmailNotProvided.ClientID %>').checked = true;
                } else {
                    document.getElementById('<%= cbEmailNotProvided.ClientID %>').checked = false;
                }
            }
        }
        
        Sys.Application.add_init(applicationInitHandler);
        
        function applicationInitHandler(sender, args) {
            $create(eSecuritel.EscalationDetail,
                {
                    id: 'EscalationDetail1',
                    HidSubscriberHasAddress: $('#<%= hidSubscriberHasAddress.ClientID %>'),
                    FaxTextBox: $('#spnFaxPhoneInput :input').eq(0),
                    EmailTextBox: $('#<%= EmailInput.ClientID %>'),
                    IsCurrentEscalationObsolete: '<%= this.IsCurrentEscalationObsolete %>',
                    AdministrationReasonCodeOptionList: $('#<%= AdministrationReasonCodeOptionList.ClientID %>'),
                    LogisticReasonCodeCheckList: $('#<%= LogisticReasonCodeCheckList.ClientID %>'),
                    ClaimNumberLink: $('#<%= ClaimNumberLink.ClientID %>'),
                    USPSLink: $('#<%= USPSPrintLabelLink.ClientID %>'),
                    EscalationNumSpan: $('#<%= EscalationNumberInfo.ClientID %>'),
                    HidShowUSPSLink: $('#<%= hidShowUSPSLink.ClientID %>')
                },
                {
                    FaxTextBoxChange: OnFaxTextChanged,
                    EmailTextBoxChange: OnEmailTextChanged
                },
                null,
                null);

        }

        
    </script>

    <div>
        <eSecuritelHITSControls:ExtendedValidationSummary runat="server" ID="ValidationSummary"
            Width="99%" HeaderText="<%$ Resources: EscalationManagement, ThefollowingitemsneedHeaderText %>">
        </eSecuritelHITSControls:ExtendedValidationSummary>
    </div>
    <div>
        <eSecuritelHITSControls:DefaultTitle runat="server" ID="DefaultTile" Title="<%$ Resources: EscalationManagement, EscalationDetailHeader %>"
            IsMasterLinkVisible="true"></eSecuritelHITSControls:DefaultTitle>
    </div>
    <div id="subnav">
        <ul class="pagenav">
            <li>
                <asp:HyperLink NavigateUrl="~/site/HITS/Escalations/Default.aspx" ID="CreateLink"
                    runat="server" Text="<%$ Resources: Default, ButtonSearch %>" Font-Underline="true" /></li>
            <li>
                <asp:HyperLink ID="SubscriberLink" runat="server" Text="<%$ Resources: SubscriberManagement, HyperLinkSubscriberInfo %>" Font-Underline="true" /></li>
            <li>
                <asp:HyperLink ID="USPSPrintLabelLink" runat="server" Text="<%$ Resources: EscalationManagement, USPSPrintLabelHyperLink %>" Font-Underline="true" style="display: none;" /></li>                
        </ul>
    </div>
    <div>
        <asp:Label ID="lblStatus" Font-Bold="true" Visible="false" runat="server" />
    </div>
    <h2>
        <asp:Literal runat="server" ID="asp_Literal6593" Text="<%$ Resources: AdministrationManagement,LabelGeneralInformation %>"></asp:Literal>
    </h2>
    <div class="greyblock">
        <%--http://msdn.microsoft.com/en-us/library/bb386520.aspx--%>
        <div>
            <table border="0" cellpadding="0" cellspacing="0" class="gvTable tbl-escalation-detail">
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="EscalationLbl" runat="server" Text="<%$ Resources: EscalationManagement, EscalationNumberLabel %>" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="EscalationNumberInfo" />
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="MDNLBL" runat="server" Text="<%$ Resources: HandsetManagement, LabelMDNColon %>" />
                        <span class="required">*</span>
                    </td>
                    <td>
                        <eSecuritelHITSControls:PhoneNumber ID="MDNInput" runat="server" Required="true" PhoneNumberTextBox-Width="200px"
                            Display="None" ErrorMessage="<%$ Resources: HandsetManagement, ErrorMessageMDNisrequired %>" IsRegexCheckedRequired="true" RegexErrorMessage="<%$ Resources: HandsetManagement, RegexInvalidMDN %>" />
                        &nbsp;
                        <asp:LinkButton runat="server" ID="SearchSubscriberAction" Text="<%$ Resources: SubscriberManagement, Labelsearchsubscriber %>"
                            CausesValidation="false"></asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="ClaimNumberLBL" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimNumber %>" />
                    </td>
                    <td>
                        <asp:HyperLink ID="ClaimNumberLink" runat="server" />
                        <asp:HiddenField ID="hidShowUSPSLink" runat="server" />
                        <asp:Label ID="ClaimNumberValidator" runat="server" Text="[ClaimNumberValidator]" 
                            ForeColor="Red" Visible="false"></asp:Label>
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="SubcriberFNameLBL" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberFirstName %>" />
                        <span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="SubscriberFNameInput" runat="server" CssClass="generalPurposeTwoHndPxWidth" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="SubscriberFNameInput"
                            Display="None" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageSubscriberfirstnameisrequired %>"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="SubscriberAddressHeaderLBL" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberAddress %>" />
                    </td>
                    <td align="left">
                        <asp:Label ID="SubscriberAddressLBL" runat="server" CssClass="generalPurposeTextTop"></asp:Label>
                        <asp:HiddenField ID="hidSubscriberHasAddress" runat="server" Value="False" />
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="SubcriberLNameLBL" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberLastName %>" />
                        <span class="required">*</span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="SubscriberLNameInput" CssClass="generalPurposeTwoHndPxWidth"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="SubscriberLNameInput"
                            Display="None" ErrorMessage="<%$ Resources: SubscriberManagement, LabelSubscriberlastnameisrequired %>"></asp:RequiredFieldValidator>
                    </td>                    
                </tr>
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="MakeLBL" runat="server" Text="<%$ Resources: ModelManagement, LabelMakeModel %>" />
                    </td>
                    <td>
                        <asp:Label ID="MakeInput" runat="server" />
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="AltPhoneLBL" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAltPhone %>" />
                        <span class="required">*</span>
                    </td>
                    <td>
                        <eSecuritelHITSControls:PhoneNumber ID="AltPhoneInput" runat="server" Required="true" PhoneNumberTextBox-Width="200px"
                            ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageAltPhoneIsRequried %>" Display="None" IsRegexCheckedRequired="true"
                            RegexErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageAltPhoneNumberLabel %>" />
                    </td>
                </tr>
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="ESNLBL" runat="server" Text="<%$ Resources: HandsetManagement, LabelESNIMEI %>" />
                    </td>
                    <td>
                        <asp:Label ID="ESNInfo" runat="server" ReadOnly="True" />
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="CarrierLBL" runat="server" Text="<%$ Resources: OrganizationManagement, LabelClientColon %>" />
                        <span class="required">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="CarriersList" runat="server" DataTextField="Name" DataValueField="ID" AutoPostBack="true" CssClass="generalPurposeTwoHndPxWidth">
                        </asp:DropDownList>
                        <asp:CompareValidator runat="server" ID="CarriersCompareValidator" ControlToValidate="CarriersList"
                            ValueToCompare="0" Operator="NotEqual" ErrorMessage="<%$ Resources: OrganizationManagement, ClientisrequiredLabel %>" Display="None" />
                    </td>
                </tr>
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="CreatedByLBL" runat="server" Text="<%$ Resources: EscalationManagement, CreatedByLabel %>" />
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="CreatedByInfo" />
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="StatusLBL" runat="server" Text="<%$ Resources: EscalationManagement, LabelEscalationStatus %>" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="StatusList" DataTextField="Name" DataValueField="Name" CssClass="generalPurposeTwoHndPxWidth" AutoPostBack="true">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="td-alignRight">
                        <asp:Literal ID="CreationDateLBL" runat="server" Text="<%$ Resources: EscalationManagement, LabelCreationDate %>" />
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="CreationDateInfo" />
                    </td>
                    <td class="td-alignRight">
                        <asp:Literal ID="FaxPhone" runat="server" Text="<%$ Resources: EscalationManagement, FaxNumberLabel %>" />
                    </td>
                    <td>
                        <span id="spnFaxPhoneInput">
                            <eSecuritelHITSControls:PhoneNumber ID="FaxPhoneInput" runat="server" Required="False" PhoneNumberTextBox-Width="188px"
                                ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageFaxphoneisrequried %>" Display="None" IsRegexCheckedRequired="true"
                                RegexErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageFaxPhoneNumberLabel %>" />
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="td-alignRight">
                    </td>
                    <td>
                    </td>
                    <td class="td-alignRight">
                        <div class="div-email-label">
                            <asp:Literal ID="EmailLBL" runat="server" Text="<%$ Resources: SubscriberManagement, LabelEmailColon %>" />
                        </div>
                    </td>
                    <td>
                        <div class="div-escalation-emailGrouping">
                            <div class="div-email-escalation">
                                <asp:TextBox runat="server" ID="EmailInput" CssClass="generalPurposeTwoHndPxWidth" />
                                <asp:RegularExpressionValidator runat="server" ID="EmailValidator" ControlToValidate="EmailInput" Display="None" />
                            </div>
                            <asp:Checkbox runat="server" ID="cbEmailNotProvided" CssClass="cbEmailNotProvided" onclick="DisableOrEnableEmailTextBox(this);" Text="<%$ Resources: EscalationManagement, EmailNotProvided %>" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="UpdateSpecifictSection" runat="server" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="StatusList" EventName="SelectedIndexChanged" />
            </Triggers>
            <ContentTemplate>
                <table border="0" cellpadding="0" cellspacing="0" class="gvTable tbl-escalation-detail">
                    <tr>
                        <td class="td-alignRight">
                            <asp:Literal ID="ResolutionDateLBL" runat="server" Text="<%$ Resources: EscalationManagement, LabelResolutionDate %>" />
                        </td>
                        <td>
                            <asp:Literal ID="ResolutionDateInfo" runat="server" />
                        </td>
                        <td class="td-alignRight">
                            <asp:Label ID="Label2" runat="server" Text="<%$ Resources: EscalationManagement, ChangeAssigneeToLabel %>" />
                        </td>
                        <td>
                            <asp:DropDownList ID="AssigneeList" runat="server" DataTextField="Name" DataValueField="Id" CssClass="generalPurposeTwoHndPxWidth">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-alignRight">
                            <asp:Literal ID="LastUpdateDateLBL" runat="server" Text="<%$ Resources: EscalationManagement, LastUpdateDateLabel %>" />
                        </td>
                        <td>
                            <asp:Literal runat="server" ID="LastUpdateDateInfo"></asp:Literal>
                        </td>
                        <td class="td-alignRight">
                            <asp:Literal ID="ResolutionCodeLBL" runat="server" Text="<%$ Resources: EscalationManagement, LabelResolutionCode %>" />
                        </td>
                        <td>
                            <asp:DropDownList ID="EscalationResolutionCodeList" Enabled="false" runat="server" CssClass="generalPurposeTwoHndPxWidth"
                                DataTextField="Description" DataValueField="ResolutionTypeId">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-alignRight">
                            <asp:Literal ID="LastUpdateByLBL" runat="server" Text="<%$ Resources: EscalationManagement, LastUpdateByLabel %>" />
                        </td>
                        <td>
                            <asp:Literal runat="server" ID="LastUpdateByInfo"></asp:Literal>
                        </td>
                        <td class="td-alignRight">
                            <asp:Label ID="Label5" runat="server" Text="<%$ Resources: EscalationManagement, AssigneeLabel %>" />
                        </td>
                        <td>
                            <asp:Literal runat="server" ID="AssigneeInfo"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-alignRight">
                            <asp:Literal ID="TierLBL" runat="server" Text="<%$ Resources: EscalationManagement, EscalationTierLabel %>" />
                        </td>
                        <td>
                            <asp:Label ID="TierInfo" runat="server" />
                        </td>
                        <td class="td-alignRight">
                            <asp:Literal ID="CrossTierUpdateLBL" runat="server" Text="<%$ Resources: EscalationManagement, CrossTierUpdateFlagLabel %>" />
                        </td>
                        <td>
                            <asp:Literal runat="server" ID="CrossTierUpdateInfo"></asp:Literal>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <h2>
        <asp:Literal runat="server" ID="asp_Literal5446" Text="<%$ Resources: EscalationManagement, SpecialHandlingRequestLabel %>"></asp:Literal>
    </h2>
    <div class="greyblock">
        <asp:UpdatePanel runat="server" ID="asp_UpdatePanel3448" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="CarriersList" EventName="SelectedIndexChanged" />
            </Triggers>
            <ContentTemplate>
                <asp:Panel runat="server" ID="pnlOldLegalFlagCategory">
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td align="right" style="width: 100px;" valign="middle">
                                &nbsp;
                            </td>
                            <td>
                                <asp:CheckBoxList runat="server" ID="LegalFlagCheckList" RepeatDirection="Horizontal"
                                    RepeatColumns="5" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                
                <asp:Panel runat="server" ID="pnlNewLegalFlagCategory">
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td align="left" valign="middle">
                                <asp:RadioButtonList runat="server" ID="LegalFlagOptionListNew" RepeatDirection="Horizontal"
                                    RepeatColumns="5" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>

            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    
    <asp:Panel runat="server" ID="pnlHITSNETIssue">
        <h2>
            <asp:Literal runat="server" ID="Literal1" Text="<%$ Resources: EscalationManagement, HITSNETIssues %>"></asp:Literal>
        </h2>
        
        <div class="greyblock">
            <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
                <ContentTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                            <tr>
                                <td align="left" valign="middle">
                                    <asp:RadioButtonList runat="server" ID="HITSNETIssueOptionList" RepeatDirection="Horizontal"
                                        RepeatColumns="5" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>

    <h2>
        <asp:Literal runat="server" ID="asp_Literal1185" Text="<%$ Resources: EscalationManagement, ReasonCodeInformationLabel %>"></asp:Literal>
        <asp:Label ID="LabelReasonCodeSectionIcon" runat="server" ForeColor="Red" Text="*"></asp:Label>
    </h2>
    <div style="padding-top: 10px" id="ReasonCodeSection" class="greyblock">
        <asp:Panel runat="server" ID="ReasonCodePanel">
            <asp:UpdatePanel runat="server" ID="ReasonCodesUpdatePanel" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Panel runat="server" ID="pnlOldReasonCodeCategory">
                        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td align="right" style="width: 100px;">
                                &nbsp;
                            </td>
                            <td>
                                <table>
                                    <tr style="font-weight: bold">
                                        <td>
                                            <asp:Label runat="server" Text="<%$ Resources: OrganizationManagement, DataCarrierLabel %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label3" runat="server" Text="<%$ Resources: EscalationManagement, ShippingLogisticsLabel %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label11" runat="server" Text="<%$ Resources: HandsetManagement, LabelReplacementHandsetColon %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label12" runat="server" Text="<%$ Resources: EscalationManagement, CustomerServiceLabel %>" />
                                        </td>
                                    </tr>
                                    <tr valign="top">
                                        <td align="left">
                                            <asp:CheckBoxList runat="server" ID="CarrierReasonCodeCheckList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:CheckBoxList>
                                        </td>
                                        <td align="left">
                                            <asp:CheckBoxList runat="server" ID="LogisticReasonCodeCheckList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:CheckBoxList>
                                        </td>
                                        <td align="left">
                                            <asp:CheckBoxList runat="server" ID="ReplacementHandsetReasonCodeCheckList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:CheckBoxList>
                                        </td>
                                        <td align="left">
                                            <asp:CheckBoxList runat="server" ID="CustomerServiceReasonCodeCheckList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:CheckBoxList>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    </asp:Panel>
                    
                    <asp:Panel runat="server" ID="pnlNewReasonCodeCategory">
                        
                            <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr style="font-weight: bold">
                                        <td>
                                            <asp:Label ID="Label13" runat="server" Text="<%$ Resources: EscalationManagement, PreClaim %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label14" runat="server" Text="<%$ Resources: EscalationManagement, Claim %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label15" runat="server" Text="<%$ Resources: EscalationManagement, PostClaim %>" />
                                        </td>
                                    </tr>
                                    <tr valign="top">
                                        <td align="left">
                                            <asp:RadioButtonList runat="server" ID="PreClaimReasonCodeOptionList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:RadioButtonList>
                                            <br/>
                                            <asp:Label ID="LabelPreClaimOtherIcon" runat="server" ForeColor="Red" Text="*" Visible="False" ></asp:Label>
                                            <asp:TextBox ID="txtPreClaimOther" runat="server" Enabled="False" TextAlign="Left" Wrap="true" MaxLength="30" Width="220" />
                                        </td>
                                        <td align="left">
                                            <asp:RadioButtonList runat="server" ID="ClaimReasonCodeOptionList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:RadioButtonList>
                                            <br/>
                                            <asp:Label ID="LabelClaimOtherIcon" runat="server" ForeColor="Red" Text="*" Visible="False" ></asp:Label>
                                            <asp:TextBox ID="txtClaimOther" runat="server" Enabled="False" TextAlign="Left" Wrap="true" MaxLength="30" Width="220" />
                                        </td>
                                        <td align="left">
                                            <asp:RadioButtonList runat="server" ID="PostClaimReasonCodeOptionList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:RadioButtonList>
                                            <br/>
                                            <asp:Label ID="LabelPostClaimOtherIcon" runat="server" ForeColor="Red" Text="*" Visible="False" ></asp:Label>
                                            <asp:TextBox ID="txtPostClaimOther" runat="server" Enabled="False" TextAlign="Left" Wrap="true" MaxLength="30" Width="220" />
                                        </td>
                                    </tr>
                            </table>

                            <br/>
                            <br/>

                            <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                    <tr style="font-weight: bold">
                                        <td>
                                            <asp:Label ID="Label16" runat="server" Text="<%$ Resources: EscalationManagement, NoClaim %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label17" runat="server" Text="<%$ Resources: EscalationManagement, Billing %>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label18" runat="server" Text="<%$ Resources: EscalationManagement, Administration %>" />
                                        </td>
                                    </tr>
                                    <tr valign="top">
                                        <td align="left">
                                            <asp:RadioButtonList runat="server" ID="NoClaimReasonCodeOptionList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:RadioButtonList>
                                            <br/>
                                            <asp:Label ID="LabelNoClaimOtherIcon" runat="server" ForeColor="Red" Text="*" Visible="False" ></asp:Label>
                                            <asp:TextBox ID="txtNoClaimOther" runat="server" Enabled="False" TextAlign="Left" Wrap="true" MaxLength="30" Width="220" />
                                        </td>
                                        <td align="left">
                                            <asp:RadioButtonList runat="server" ID="BillingReasonCodeOptionList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:RadioButtonList>
                                            <br/>
                                            <asp:Label ID="LabelBillingOtherIcon" runat="server" ForeColor="Red" Text="*" Visible="False" ></asp:Label>
                                            <asp:TextBox ID="txtBillingOther" runat="server" Enabled="False" TextAlign="Left" Wrap="true" MaxLength="30" Width="220" />
                                        </td>
                                        <td align="left">
                                            <asp:RadioButtonList runat="server" ID="AdministrationReasonCodeOptionList" RepeatDirection="Vertical"
                                                RepeatColumns="1" DataTextField="Description" DataValueField="ReasonCodeId" AutoPostBack="true">
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                            </table>

                    </asp:Panel>

                </ContentTemplate>
            </asp:UpdatePanel>
        </asp:Panel>
    </div>

    <asp:UpdatePanel ID="NoteUpdate" runat="server" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="StatusList" EventName="SelectedIndexChanged" />
        </Triggers>
        <ContentTemplate>
            <div id="RegularNoteSection" runat="server" visible="true">
                <asp:MultiView runat="server" ID="MultiView1" ActiveViewIndex="0">
                    <asp:View runat="server" ID="NonRequiredNoteView">
                        <div>
                            <eSecuritelHITSControls:DefaultNotesInput runat="server" ID="UpdateaNoteInput"></eSecuritelHITSControls:DefaultNotesInput>
                        </div>
                    </asp:View>
                    <asp:View runat="server" ID="RequiredNoteView">
                        <h2>
                            <asp:Label ID="Label4" runat="server" Text="<%$ Resources: EscalationManagement, NotesLabel %>" /></h2>
                        <br />
                        <center>
                            <asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*"></asp:Label>
                            <asp:TextBox SkinID="DefaultNoteInput" TextMode="MultiLine" runat="server" ID="InitialNoteInput"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="InitialNoteInput"
                                Display="None" ErrorMessage="<%$ Resources: EscalationManagement, NoteisrequiredLabel %>"></asp:RequiredFieldValidator>
                        </center>
                    </asp:View>
                </asp:MultiView>
            </div>
            <div>
                <asp:LinkButton ID="lbNoteArchive" runat="server" Text="<%$ Resources: Default, NotesArchiveHistoryLabel %>" OnClick="lbNoteArchive_Click" ></asp:LinkButton>
                <h2>
                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources: EscalationManagement, NotesHistoryLabel %>" /></h2>
                <asp:GridView runat="server" ID="EscalationNoteGrid" SkinID="DefaultNotesView" OnRowDataBound="EscalationNoteGrid_RowDataBound">
                    <Columns>
                      <asp:TemplateField HeaderText="<%$ Resources: Default, LabelDate %>"> 
                        <ItemTemplate>
                          <asp:Label runat="server"  ID="lblCreationDate"></asp:Label>
                        </ItemTemplate>                      
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="<%$ Resources: Default, LabelTime %>">
                        <ItemTemplate>
                          <asp:Label runat="server" ID="lblCreationDateTime"></asp:Label>
                        </ItemTemplate>                      
                      </asp:TemplateField>                    
                        <asp:BoundField DataField="EscalationNumber" HeaderText="<%$ Resources: EscalationManagement, IDHeaderText %>" />
                        <asp:BoundField DataField="Note" HeaderText="<%$ Resources: EscalationManagement, NoteHeaderText %>" />
                        <asp:TemplateField HeaderText="<%$ Resources: UsersManagement, HeaderTextCreatedBy %>">
                            <ItemTemplate>
                                <asp:Literal runat="server" ID="CreatedByInfo" Text='<%# Eval("CreatedByFirstName") + " " + Eval("CreatedByLastName") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="NoteType" HeaderText="<%$ Resources: EscalationManagement, TypeHeaderText %>" />
                    </Columns>
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <asp:UpdatePanel ID="archivepanel" runat="server" UpdateMode ="Conditional">
        
        <ContentTemplate>
            <asp:Panel ID="pnlNoteArchive" runat="server" Style="display: none; width: 999px;">
    <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="Label19" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, NotesHeaderText %>" />
                </td>
                <td align="right" style="margin: 0px; padding: 2px;">
                    <asp:ImageButton ID="imgArchiveNote" runat="server" CssClass="modalClose" CausesValidation="false" 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" Style="text-align: left; margin: auto;">
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:Panel ID="Panel5" runat="server" ScrollBars="Vertical" Height="450px" Width="100%" Font-Size="XX-Small">
                        <asp:GridView runat="server" ID="gvNoteArchive" SkinID="DefaultNotesView" OnRowDataBound="EscalationNoteGrid_RowDataBound">
                    <Columns>
                      <asp:TemplateField HeaderText="<%$ Resources: Default, LabelDate %>"> 
                        <ItemTemplate>
                          <asp:Label runat="server"  ID="lblCreationDate"></asp:Label>
                        </ItemTemplate>                      
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="<%$ Resources: Default, LabelTime %>">
                        <ItemTemplate>
                          <asp:Label runat="server" ID="lblCreationDateTime"></asp:Label>
                        </ItemTemplate>                      
                      </asp:TemplateField>                    
                        <asp:BoundField DataField="EscalationNumber" HeaderText="<%$ Resources: EscalationManagement, IDHeaderText %>" />
                        <asp:BoundField DataField="Note" HeaderText="<%$ Resources: EscalationManagement, NoteHeaderText %>" />
                        <asp:TemplateField HeaderText="<%$ Resources: UsersManagement, HeaderTextCreatedBy %>">
                            <ItemTemplate>
                                <asp:Literal runat="server" ID="CreatedByInfo" Text='<%# Eval("CreatedByFirstName") + " " + Eval("CreatedByLastName") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="NoteType" HeaderText="<%$ Resources: EscalationManagement, TypeHeaderText %>" />
                    </Columns>
                </asp:GridView>
                    </asp:Panel>
                </td>
                
            </tr>
        </table>
    </asp:Panel>
</asp:Panel>
    <asp:Button runat="server" EnableViewState="false" ID="escalationpopupnotes"
        Style="display: none" />
    <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="HITSModalPopupExtender1" TargetControlID="escalationpopupnotes"
    PopupControlID="pnlNoteArchive" BackgroundCssClass="modalBackground" 
    PopupDragHandleControlID="pnlNoteArchiveHeader" BehaviorID="CloseSearch2" CancelControlID="imgArchiveNote" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <div style="text-align: center; padding-top: 10px">
        <asp:Button ID="UpdateAction" runat="server" Text="<%$ Resources: Default, ButtonUpdate %>" CssClass="pagebutton"
            />
    </div>
    <div>
        <eSecuritelHITSControls:PopupControl runat="server" ID="EscalationPopupControl">
        </eSecuritelHITSControls:PopupControl>
    </div>
    <div>
        <eSecuritelHITSControls:SubscriberEmailPopupControl runat="server" ID="SubscriberEmailPopup">
        </eSecuritelHITSControls:SubscriberEmailPopupControl>
    </div>
    <div>
        <eSecuritelHITSControls:MatchedSubscriberResultControl runat="server" ID="MatchedSubscriberList">
        </eSecuritelHITSControls:MatchedSubscriberResultControl>
    </div>
    <div>
        <eSecuritelHITSControls:PopupControl runat="server" ID="NoTierPopupControl"></eSecuritelHITSControls:PopupControl>
    </div>
</asp:Content>
