<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Inherits="site_HITS_DirectShip_ShipmentTrackingDetails" Title="Brightstar Device Protection: Shipment Tracking Details" Culture="auto"  UICulture="auto" Codebehind="ShipmentTrackingDetails.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="../../../Controls/DirectShipReplacementsControl.ascx" TagName="ReplacementsControl" 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" ValidationGroup="DirectShipMain"
        HeaderText="<%$ Resources : LogisticsManagement,HeaderTextTheFollowingItemsNeedDetailDot %>"
        />
        
        <table width="100%">
        <tr>
            <td>
                <h1>
            <asp:Literal ID = "m_litTitle" runat = "server" Text = "<%$ Resources : LogisticsManagement,LabelShipmentTrackingDetails %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
        </table>
        
        <asp:Panel ID="m_pnlStatus" runat="server" Visible="false" Enabled="true">
            <asp:Label  ID="lblSuccess" runat="server"></asp:Label>
        </asp:Panel>
    
       
        <!---------------------------------------TABLE ------------------------------------------->
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
        <td style="width:50%" valign="top">
        <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
            <tr>
                <td style="width: 50%">
                   <h2>
                        <asp:Literal ID = "m_litShipTo" runat = "server" Text = "<%$ Resources : LogisticsManagement,LabelShipTo %>" />
                   </h2>
                </td>
            </tr>
        </table>
        
      <div class="greyblock">
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">         
            <tr>
                <td align="right" style="width: 20%" >
                    <strong><asp:Literal ID="Literal_FirstNameLabel" runat="server" Text="<%$ Resources : Default,FirstNameLabel %>" /></strong></td>
                <td align="left" style="width: 30%" >
                    <asp:TextBox ID="m_txFirstNameShipTo" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" >
                    <strong><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources : SubscriberManagement,LabelLastName %>" /></strong></td>
                <td align="left" >
                    <asp:TextBox ID="m_txLastNameShipTo" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">
                    <b><asp:Literal ID = "m_litAddressShipToHeader" runat = "server" Text = "<%$ Resources : AddressResources,Address2 %>" /></b>
                </td>
                <td align="left" >
                    <asp:TextBox ID = "m_tbAddressShipTo" runat = "server" />
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <b><asp:Literal ID = "m_litAddress2ShipToHeader" runat = "server" Text = "<%$ Resources : AddressResources,Address2 %>" /></b>
                </td>
                <td align="left" >
                    <asp:TextBox ID = "m_tbAddress2ShipTo" runat = "server" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b><asp:Literal ID = "m_litCityShipToHeader" runat = "server" Text = "<%$ Resources : AddressResources,City %>" /></b>
                </td>
                <td align="left" >
                    <asp:TextBox ID = "m_tbCityShipTo" runat = "server" />
                </td>
            </tr>
            
            <tr>
                <td align="right" >
                    <b><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources : AddressResources,Country %>" /></b></td>
                <td align="left" >
                    <asp:DropDownList ID="m_ddlShipToCountry" runat="server" 
                        onselectedindexchanged="m_ddlShipToCountry_SelectedIndexChanged" AutoPostBack="true"/>
                    
                </td>
            </tr>            
            
            <tr>
                <td align="right">
                    <b><asp:Literal ID = "m_litStateShipToHeader" runat = "server" Text = "<%$ Resources:AddressResources, State %>" /></b>
                </td>
                <td align="left" >
                    <asp:DropDownList ID = "m_ddlStateShipTo" runat = "server" />
                    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="m_ddlStateShipTo" 
                        Text="<%$ Resources:Default, ValidatorText %>" OnServerValidate="m_cShipToState_ServerValidate" /> 
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b><asp:Literal ID = "m_litZipShipToHeader" runat = "server" Text = "<%$ Resources:AddressResources, Zip %>" /></b>
                </td>
                <td align="left" >
                    <asp:TextBox ID = "m_tbZipShipTo" runat = "server" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="m_tbZipShipTo"
                        ErrorMessage="*" ValidationExpression="<%$ Resources:AddressResources, ZipValidation %>"
                        Text="<%$ Resources:Default, ValidatorText %>"/>
                </td>
            </tr>

            <tr>
                <td align="right">
                    <b><asp:Literal ID = "m_litEmailShipToHeader" runat = "server" Text = "<%$ Resources : SubscriberManagement,LabelEmailColon %>" /></b>
                </td>
                <td align="left" >
                    <asp:TextBox ID = "m_tbEmailShipTo" runat = "server" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ControlToValidate="m_tbEmailShipTo" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 27px">
                    <b><asp:Literal ID = "m_litPhoneShipToHeader" runat = "server" Text = "<%$ Resources : SubscriberManagement,LabelDaytimePhoneColon %>" /></b>
                </td>
                <td align="left" style="height: 27px" >
                    <uc1:PhoneNumber ID="m_ucPhoneShipTo" runat="server" Required="false" /> 
                </td>
            </tr>
        </table>
      </div>
      </td>

        <td style="width:50%" valign="top">
        <!----------------------------------------------------Shipping Information--------------------->
        <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
            <tr>
                <td style="width: 50%">
                   <h2>
                    <asp:Literal ID = "Literal2" runat = "server" Text = "<%$ Resources : LogisticsManagement,LabelShippingInformation %>"  />
                   </h2>
                </td>
            </tr>
        </table>
        
         <div class="greyblock">
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="gvTable">            
            <tr>
                <td align="right" style="font-weight: bold; width:13%; height: 27px;">
                    <asp:Literal ID="Literal5" Text="<%$ Resources : LogisticsManagement,LabelShippingAgentColon %>" runat="server" ></asp:Literal>
                </td>
                <td align="left" style="width:20%;height: 27px">
                    <asp:Literal ID="litShippingAgent" runat="server"></asp:Literal></td>
            </tr>
            <tr>
                <td align="right" style="font-weight: bold; width:13%;height: 27px">
                    <asp:Literal ID="Literal4" Text="<%$ Resources : OrganizationManagement,ShippingMethodConlonLabel %>" runat="server"></asp:Literal>
                </td>
                <td align="left" style="width:20%">                   
                    <asp:Literal ID="m_litShippingMethodValue" runat="server"></asp:Literal></td>
            </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 27px">
                    <asp:Literal ID="m_litTrackingNumber" Text="<%$ Resources : ClaimsManagement,LabelTrackingNumberColon %>" runat="server"></asp:Literal></td>
                    <td align="left" style="height: 27px">
                    <asp:Literal ID="m_litTrackingNumberValue" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 27px">
                    <asp:Literal ID="m_litStatus" Text="<%$ Resources : Default,LabelStatusColon %>" runat="server"></asp:Literal></td>
                    <td align="left" style="height: 27px">
                        <asp:Literal ID="m_litStatusValue" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 27px">
                    <asp:Literal ID="m_litDateShipped2" Text="<%$ Resources : LogisticsManagement,LabelShipmentDateColon %>"  runat="server"></asp:Literal></td>
                    <td align="left" style="height: 27px">
                    <asp:Literal ID="m_litDateShippedValue" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 27px">
                    <asp:Literal ID="m_litDestination" Text="<%$ Resources : LogisticsManagement,LabelDestinationColon %>"  runat="server"></asp:Literal></td>
                    <td align="left" style="height: 27px">
                    <asp:Literal ID="m_litDestinationValue" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 27px">
                    <asp:Literal ID="m_litESN" Text="<%$ Resources : HandsetManagement,LabelESNColon %>"  runat="server"></asp:Literal></td>
                    <td align="left" style="height: 27px">
                    <asp:Literal ID="m_litESNValue" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 27px">
                    <asp:Literal ID="m_litModel" Text="<%$ Resources : ModelManagement,LabelModelColon %>" runat="server"></asp:Literal></td>
                    <td align="left" style="height: 27px">
                    <asp:Literal ID="m_litModelValue" runat="server"></asp:Literal></td>
                </tr>
            <tr>
                <td align="right" style="font-weight: bold; height: 28px;">
                    <asp:Literal ID="m_litPaymentMethod" Text="<%$ Resources : ServicePlanManagement,LabelPaymentMethodColon %>"  runat="server"></asp:Literal><strong>
                    </strong>
                </td>
                <td align="left" style="height: 28px">
                    <asp:Literal ID="m_litPaymentMethodValue" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td align="right" style="font-weight: bold">
                    <asp:Literal ID="m_litAmountDue"  runat="server" Text="<%$ Resources : ServicePlanManagement,LabelAmountDueColon %>"></asp:Literal>
                </td>
                <td align="left">
                    <asp:Literal ID="m_litAmountDueValue" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
         </div>
         </td>
         </tr>
         </table>
        <!---------------------------------------Button ------------------------------------------->
      <table width="100%">
        <tr>
            <td align="center">
                <asp:Button ID="m_btnSave" OnClick="m_btnSave_Click" Text="<%$ Resources : Default,ButtonSave %>" Width="75px" runat="server" />
                <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" Text="<%$ Resources : Default,ButtonCancel %>" Width="75px" OnClientClick="javascript:window.close();"  />
            </td>
        </tr>
      </table>

        
        <asp:Panel ID="m_pnlTrackPoints" runat="server">
            <asp:GridView ID="m_gvTrackPoints" runat="server" AutoGenerateColumns="False" OnRowDataBound="m_gvTrackPoints_RowDataBound" Width="100%">
                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources : Default,HeaderTextDate %>" ItemStyle-VerticalAlign="Middle">
                       <ItemTemplate>
                            <asp:Literal ID="m_litDate" runat="server"></asp:Literal>
                       </ItemTemplate>
                    </asp:TemplateField>
                      <asp:TemplateField HeaderText="<%$ Resources : Default,LabelTime %>" ItemStyle-VerticalAlign="Middle">
                       <ItemTemplate>
                            <asp:Literal ID="m_litTime" runat="server"></asp:Literal>
                       </ItemTemplate>
                    </asp:TemplateField >
                      <asp:TemplateField HeaderText="<%$ Resources : AddressResources,HeaderTextLocationServiceArea %>" ItemStyle-VerticalAlign="Middle">
                       <ItemTemplate>
                            <asp:Literal ID="m_litLocation" runat="server"></asp:Literal>
                       </ItemTemplate>
                    </asp:TemplateField>
                      <asp:TemplateField HeaderText="<%$ Resources : OrganizationManagement,LabelCheckpointDetails %>">
                       <ItemTemplate>
                            <asp:Literal ID="m_litDetails" runat="server"></asp:Literal>
                       </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
</asp:Content>
