<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true"
    Inherits="site_Administrative_Loader_RecordDetail" Title="Brightstar Device Protection: Loader Record Details"
    Culture="auto" UICulture="auto" Theme="eMain"
    CodeBehind="RecordDetail.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/NotesControl.ascx" TagName="NotesControl" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">

    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>

    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" HeaderText="<%$ Resources: AdministrationManagement, HeaderTextFollowingItemsUpdatingLoader %>"
         />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_LoaderRecordDetailsHeader" runat="server" Text="<%$ Resources: AdministrationManagement, LabelLoaderRecordDetail %>"
                         />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    <h2>
        <asp:Label ID="lblStatus" runat="server" />
    </h2>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr style="background-color: #585d7d; color: #fff;">
            <td align="left" style="width: 25%" nowrap="nowrap">
                &nbsp;
            </td>
            <td colspan="2" align="center" style="width: 50%" nowrap="nowrap">
                <asp:Literal ID="m_litSubscriberName" runat="server" />
            </td>
            <td align="right" style="width: 25%" nowrap="nowrap">
                <span style="text-align: right; color: Yellow;">
                    <asp:Literal ID="m_litActiveTitle" runat="server" />
                </span>
            </td>
        </tr>
    </table>
    <div class="greyblock">
        <span style="color: #ff0000">* </span>
        <asp:Literal ID="m_litRequired" runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>" />
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
            <tr>
                <%--<asp:Panel ID="m_pnlOrganizationDetails" runat="server">--%>
                <td align="right">
                    <asp:Literal ID="m_litCarrier" runat="server" Text="<%$ Resources: OrganizationManagement, LabelClientColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtCarrier" runat="server" />
                </td>
                <%--</asp:Panel>--%>
                <td align="right">
                    <asp:Literal ID="m_litLastName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelLastName %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td>
                    <asp:TextBox ID="m_txtLastName" runat="server" />
                    <asp:RequiredFieldValidator ID="m_rfLastName" runat="server" ControlToValidate="m_txtLastName"
                        Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageLastNameRequired %>"
                        ToolTip="<%$ Resources: SubscriberManagement, ToolTipLastNameRequired %>" />
                </td>
                <td align="right">
                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountType %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtAccountType" runat="server" Enabled="false" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litAccountNumber" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountNumberSign %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td>
                    <asp:TextBox ID="m_txtAccountNumber" runat="server" />
                    <asp:RequiredFieldValidator ID="m_rfAccountNumber" runat="server" ControlToValidate="m_txtAccountNumber"
                        Display="Dynamic" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageAccountNumberRequired %>" ToolTip="<%$ Resources: SubscriberManagement, ToolTipAccountNumberRequired %>"
                        Text="<%$ Resources:Default, ValidatorText %>" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litFirstName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelFirstName %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td>
                    <asp:TextBox ID="m_txtFirstName" runat="server" />
                    <asp:RequiredFieldValidator ID="m_rfFirstName" runat="server" ControlToValidate="m_txtFirstName"
                        Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageFirstNameIsRequired %>"
                        ToolTip="<%$ Resources: SubscriberManagement, ToolTipFirstNameIsRequired %>" />
                </td>
                <td align="right">
                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources: SubscriberManagement, LabelOldAccountNumberSign %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtOldAccountNumber" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litSubscriberSince" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberSince %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calSubscriberSince" runat="server" Required="true" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litAddress1" runat="server" Text="<%$ Resources: AddressResources, Address1 %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtAddress1" runat="server" Width="250px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="m_txtAddress1"
                        Display="Dynamic" ErrorMessage="<%$ Resources: AddressResources, ErrorMessageAddressIsRequired %>" ToolTip="<%$ Resources: AddressResources, ToolTipAddressIsRequired %>"
                        Text="<%$ Resources:Default, ValidatorText %>" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources: OrganizationManagement, LabelClientServicePlan %>" />
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtFeatureCode" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litCoveredSince" runat="server" Text="<%$ Resources: SubscriberManagement, CoveredSinceLabel %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calCoveredSince" runat="server" Required="true" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litAddress2" runat="server" Text="<%$ Resources: AddressResources, Address2 %>" />
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtAddress2" runat="server" Width="250px" />
                </td>
                <td align="right">
                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberID %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtSubscriber_id" runat="server" Enabled="false" />
                </td>
            </tr>
            <tr>
                <td nowrap="nowrap">
                </td>
                <td nowrap="nowrap">
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litCity" runat="server" Text="<%$ Resources: AddressResources, City %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtCity" runat="server" Width="250px" />
                    <asp:RequiredFieldValidator ID="m_cvCity" runat="server" ControlToValidate="m_txtCity"
                        Display="Dynamic" ErrorMessage="<%$ Resources: AddressResources, ErrorMessageCityIsRequired %>" ToolTip="<%$ Resources: AddressResources, ToolTipCityIsRequired %>"
                        Text="<%$ Resources:Default, ValidatorText %>"  />

                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litTechtype" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTechnologyTypeColon %>" />
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtTechType" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litHotlinedOn" runat="server" Text="<%$ Resources: SubscriberManagement, HotlinedOnLabel %>" />
                </td>
                <td nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calHotlinedOn" runat="server" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litZip" runat="server" Text="<%$ Resources: AddressResources, Zip %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtZip" runat="server" Width="70px" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="m_txtZip"
                            ValidationExpression="<%$ Resources: AddressResources, ZipValidation %>" Text="<%$ Resources:Default, ValidatorText %>"
                            Display="Dynamic" ErrorMessage="<%$ Resources: AddressResources, ErrorMessageZipCodeisInAnInvalidFormat %>" ToolTip="<%$ Resources: AddressResources, ToolTipZipCodeisnotinaninvalidformat %>"
                            />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litTerminationDate" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTerminationDate %>" />
                </td>
                <td nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calTerminationDate" runat="server" />
                </td>


                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litCountry" runat="server" Text="<%$ Resources: AddressResources, Country %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <asp:DropDownList ID="m_ddlCountry" runat="server" Width="76px"  
                        onselectedindexchanged="m_ddlCountry_SelectedIndexChanged" AutoPostBack="true"/>

                    <asp:CustomValidator ID="m_cvCountry" runat="server" ControlToValidate="m_ddlCountry" 
                            Text="<%$ Resources:Default, ValidatorText %>" OnServerValidate="m_cvCountry_ServerValidate"                         
                             />

                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litTerminationReason" runat="server" Text="<%$ Resources: SubscriberManagement, TerminationReasonLabel %>"
                         />
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtTerminationReason" runat="server" Width="296px" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litState" runat="server" Text="<%$ Resources:AddressResources, State %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <asp:DropDownList ID="m_ddlState" runat="server" Width="76px">
                        <asp:ListItem  Text="<%$ Resources: Default, HeaderListDropDownTextSelect %>"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:CustomValidator ID="m_cvState" runat="server" ControlToValidate="m_ddlState" 
                            Text="<%$ Resources:Default, ValidatorText %>" OnServerValidate="m_cvState_ServerValidate"                         
                            />

                </td>
            </tr>
        </table>
    </div>
    <h2>
       
        <asp:Literal ID="m_litHandsetInformation" runat="server" Text="<%$ Resources: HandsetManagement, LabelHandsetInformation %>"
             />
    </h2>
    <div class="greyblock">
        <span style="color: #ff0000">* </span>
        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>" />
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
            <tr>
                <td align="right" style="width: 15%" nowrap="nowrap">
                    <asp:Literal ID="m_litNewMDN" runat="server" Text="<%$ Resources: HandsetManagement, LabelNewMDN %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td style="width: 37%" nowrap="nowrap">
                    <uc1:PhoneNumber ID="m_ucNewMDN" runat="server" Width="82px" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litOldMDN" runat="server" Text="<%$ Resources: HandsetManagement, LabelOldMDN %>" />
                </td>
                <td nowrap="nowrap">
                    <uc1:PhoneNumber ID="m_ucOldMDN" runat="server" Width="82px" Required="false" />
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 15%" nowrap="nowrap">
                    <asp:Literal ID="m_litNewESN" runat="server" Text="<%$ Resources: HandsetManagement, LabelNewESNIMEI %>" />
                    <span style="color: #ff0000">* </span>
                </td>
                <td style="width: 37%" nowrap="nowrap">
                    <asp:TextBox ID="m_txtNewESN_IMEI" runat="server" Width="130px" />
                    <asp:RequiredFieldValidator ID="m_rfNewESN_IMEI" runat="server" ControlToValidate="m_txtNewESN_IMEI"
                        Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources: HandsetManagement, ErrorMessageNewESNIsRequired %>"
                        ToolTip="<%$ Resources: HandsetManagement, ToolTipNewESNIsRequired %>" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litOldESN" runat="server" Text="<%$ Resources: HandsetManagement, LabelOldESNIMEI %>" />
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtOldESN" runat="server" Width="130px" />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litModelDescription" runat="server" Text="<%$ Resources: ModelManagement, LabelModelDescription %>"
                        />
                    <span style="color: #ff0000">* </span>
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtModelDescription" runat="server" Width="130px" />
                    <asp:RequiredFieldValidator ID="m_rfModelDescription" runat="server" ControlToValidate="m_txtModelDescription"
                        Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources: ModelManagement, ErrorMessageModelDescriptionIsRequired %>"
                        ToolTip="<%$ Resources: ModelManagement, ToolTipModelDescriptionIsRequired %>" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litModelName" runat="server" Text="<%$ Resources: ModelManagement, LabelModelNameColon %>" />
                </td>
                <td valign="top" nowrap="nowrap">
                    <asp:DropDownList ID="m_ddlModelName" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litModelId" runat="server" Text="<%$ Resources: ModelManagement, LabelModelIDColon %>" />
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="m_txtModelId" runat="server" Width="130px" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources: AdministrationManagement, LabelEquipmentPurchaseDate %>" />
                </td>
                <td valign="top" nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calEquipmentPurchaseDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litPhoneFlag" runat="server" Text="<%$ Resources: OrganizationManagement, LabelPhoneFlag %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtPhoneFlag" runat="server" Width="130px" />
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litESNChangeDate" runat="server" Text="<%$ Resources: HandsetManagement, LabelESNChangeDate %>" />
                </td>
                <td valign="top" nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calESNChangeDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td nowrap="nowrap">
                </td>
                <td nowrap="nowrap">
                </td>
                <td align="right" nowrap="nowrap">
                    <asp:Literal ID="m_litEquipmentChangeDate" runat="server" Text="<%$ Resources: HandsetManagement, LabelEquipmentChangeDate %>"
                        />
                </td>
                <td valign="top" nowrap="nowrap">
                    <uc:HITSCalendar ID="m_calEquipmentChangeDate" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <!---------------------------------------Notes Part------------------------------->
    <uc:NotesControl ID="m_ucNotesControl" runat="server"></uc:NotesControl>
    <center>
        <%--<asp:Button ID="m_btn_SaveNote" runat="server" Text="Save Note" OnClick="m_btn_SaveNote_Click" CssClass="pagebutton"/>--%>
    </center>
    <div>
        <center>
            <asp:Button ID="m_btnUpdate" runat="server" Text="<%$ Resources: Default, ButtonUpdate %>" OnClick="m_btnUpdate_Clicked"
                CssClass="pagebutton" />
        </center>
    </div>
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" HeaderText="<%$ Resources: AdministrationManagement, HeaderTextFollowingItemsUpdatingLoader %>"
         />
</asp:Content>
