<%@ page language="C#" masterpagefile="~/masterpages/eDashboard.master" autoeventwireup="true"
    inherits="site_HITS_ShipFileProcessing_Detail" title="Brightstar Device Protection: Ship File Processing Details"
    theme="eMain" codebehind="Details.aspx.cs" %>

<%@ register src="~/Controls/HITSCalendar.ascx" tagname="HITSCalendar" tagprefix="uc" %>
<%@ Register Src="~/Controls/DefaultHeader.ascx" TagName="DefaultHeader" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <script type="text/javascript">
        function ClearSuccessMessage() {
            $('#<%= m_lblSuccessMessage.ClientID %>').text('');
            return true;
        }
    </script>
    <script src="../../../script/eSetFormControls.js" type="text/javascript">
    </script>
    <!--Begin Header-->
    <h1>
        <asp:Literal ID="m_litPageHeader" runat="server" Text="<%$ Resources : LogisticsManagement, ShipFileProcessing %>" />
    </h1>
    <uc:DefaultHeader ID="DefaultHeader1" runat="server" />
    <asp:ValidationSummary ID="ValidationSummary" runat="server" BorderStyle="none" HeaderText="<%$ Resources: Default, LabelPleasecorrectthefollowingerrors %>" />
    <asp:Label ID="m_lblSuccessMessage" runat="server" Visible="true" CssClass="successmessage"/><br />
    <!--End Header-->

    <!--------------------------------------Ship File Info-------------------------------->
    <h2>
        <asp:Literal ID="m_litEquipmentInformation" runat="server" Text="<%$Resources : LogisticsManagement, GeneralInfo%>" />
    </h2>
    <%--General Info--%>
    <div class="greyblock">
        <div>
            <span class="redAsterix">* </span>
            <asp:Literal runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>" />
        </div>
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
            <!--row 1 - ship date / Transaction Code / claim id / order no-->
            <tr>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litFileDate" runat="server" Text="<%$ Resources : LogisticsManagement, FileDate %>"/>
                </td>
                <td align="left" style="height: 13px;">
                    <uc:hitscalendar id="m_calFileDate" DateTextBox-Width="100px" runat="server" Required="false" Enabled="false" />
                </td>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litShipDate" runat="server" Text="<%$ Resources : LogisticsManagement, ShipDate %>"/>
                    <span class="redAsterix">*</span>
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_hidenTxtShpDate" runat="server" Text="0" Enabled="False" Visible="False" Style="display: none"></asp:TextBox>
                    <uc:hitscalendar id="m_txtCalShipDate" DateTextBox-Width="100px" runat="server" DateTextBox-CssClass="m_txtDate"/>
                    <asp:RequiredFieldValidator ID="m_rfvCalShipDate" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ShipDateIsRequired %>" Display="None" ControlToValidate="m_hidenTxtShpDate"/>
                </td>

                <%--                
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litPONumber" runat="server" Text="<%$ Resources : LogisticsManagement, PONumber %>" />
                </td>
                --%>
                <%--<td align="left" style="height: 13px;">--%>
                <asp:TextBox ID="m_txtPONumber" runat="server" Width="100px" Visible="False"></asp:TextBox>
                <%--</td>--%>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litClaimId" runat="server" Text="<%$ Resources : LogisticsManagement, LabelClaimId %>" />
                    <span class="redAsterix">*</span>
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtClaimId" runat="server" Width="100px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvClaimId" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ClaimIdRequired %>" Display="None" ControlToValidate="m_txtClaimId" />
                </td>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litOrderNumber" runat="server" Text="<%$ Resources : LogisticsManagement, OrderNumber %>" />
                    <span class="redAsterix">*</span>
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtOrderNumber" runat="server" Width="100px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvOrderNumber" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, OrderNumberRequired %>" Display="None" ControlToValidate="m_txtOrderNumber" />
                </td>
            </tr>
            <tr>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litErrorDescription" runat="server" Text="<%$ Resources : LogisticsManagement, ErrorReason %>" />
                </td>
                <td align="left" style="height: 13px; color:#D8000C" colspan="7">
                    <asp:Literal ID="m_litErrorDescriptionValue" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <%--Address Info--%>
    <div style="width: 580px; float: left; margin-right: 13px">
        <h2>
            <asp:Literal ID="m_litAddressInfo" runat="server" Text="<%$Resources : LogisticsManagement, AddressInfo%>" />
        </h2>

        <div class="greyblock" style="float: left; width:567px; height:175px">
            <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px; width: 20%;">
                        <asp:Literal ID="m_litShipToName" runat="server" Text="<%$ Resources : LogisticsManagement, ShipToName %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtShipToName" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvShipToName" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ShipToNameRequired %>" Display="None" ControlToValidate="m_txtShipToName" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litShipToAddress" runat="server" Text="<%$ Resources : LogisticsManagement, ShipToAddress %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtShipToAddress" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvShipToAddress" runat="server" Text="*" ErrorMessage="<%$ Resources : LogisticsManagement, ShipToAddressRequired %>" Display="None" ControlToValidate="m_txtShipToAddress" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;width: 20%;">
                        <asp:Literal ID="m_litShipToCity" runat="server" Text="<%$ Resources : LogisticsManagement, ShipToCity %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtShipToCity" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvShipToCity" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ShipToCityRequired %>" Display="None" ControlToValidate="m_txtShipToCity" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litShipToState" runat="server" Text="<%$ Resources : LogisticsManagement, ShipToState %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtShipToState" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvShipToState" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ShipToStateRequired %>" Display="None" ControlToValidate="m_txtShipToState" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;width: 20%;">
                        <asp:Literal ID="m_litShipToPostalCode" runat="server" Text="<%$ Resources : LogisticsManagement, ShipToPostalCode %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtShipToPostalCode" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvShipToPostalCode" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ShipToPostalCodeRequired %>" Display="None" ControlToValidate="m_txtShipToPostalCode" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litShipmentMethod" runat="server" Text="<%$ Resources : LogisticsManagement, ShipmentMethod %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtShipmentMethod" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvShipmentMethod" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ShipmentMethodRequired %>" Display="None" ControlToValidate="m_txtShipmentMethod" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;"/>
                    <td align="right" style="font-weight: bold; height: 13px;"/>
                    <td align="right" style="font-weight: bold; height: 13px;"/>
                    <td align="right" style="font-weight: bold; height: 13px;"/>
                </tr>
            </table>
        </div>
    </div>
    <%--Replacement Info --%>
    <div style="width: 600px; float: right">
        <h2>
            <asp:Literal ID="Literal21" runat="server" Text="<%$Resources : LogisticsManagement, ReplacementInfo%>" />
        </h2>
        <div class="greyblock" style="float: left; height:175px">
            <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litIMEI" runat="server" Text="<%$ Resources : LogisticsManagement, IMEI %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtIMEI" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvIMEI" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, IMEIRequired %>" Display="None" ControlToValidate="m_txtIMEI" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litReplacementHandsetSKU" runat="server" Text="<%$ Resources : LogisticsManagement, ReplacementHandsetSKU %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtReplacementHandsetSKU" runat="server" Width="145px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvReplacementHandsetSKU" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, SKURequired %>" Display="None" ControlToValidate="m_txtReplacementHandsetSKU" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litReplacementHandsetCondition" runat="server" Text="<%$ Resources : LogisticsManagement, ReplacementHandsetCondition %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:dropdownlist ID="m_ddlReplacementHandsetCondition" runat="server" Width="155px"></asp:dropdownlist>
                        <asp:RequiredFieldValidator ID="m_rfvReplacementHandsetCondition" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ReplacementHandsetConditionRequired %>" Display="None" ControlToValidate="m_ddlReplacementHandsetCondition" InitialValue="" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litReplacementHandsetCost" runat="server" Text="<%$ Resources : LogisticsManagement, ReplacementHandsetCost %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;">
                        <asp:TextBox ID="m_txtReplacementHandsetCost" runat="server" Width="145px"></asp:TextBox>
                        <asp:RegularExpressionValidator ControlToValidate="m_txtReplacementHandsetCost" ValidationExpression="^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?$" runat="server" ErrorMessage ="<%$ Resources : LogisticsManagement, ReplacementHandsetCostIncorrectFormat %>" Display="None"/>
                        <asp:RequiredFieldValidator ID="m_rfvReplacementHandsetCost" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ReplacementHandsetCostRequired %>" Display="None" ControlToValidate="m_txtReplacementHandsetCost" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litSIMCard" runat="server" Text="<%$ Resources : LogisticsManagement, SIMCard %>" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:TextBox ID="m_txtSIMCard" runat="server" Width="145px"></asp:TextBox>
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litRClientSKU" runat="server" Text="<%$ Resources : LogisticsManagement, ReplacementClientSKU %>" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:TextBox ID="m_txtRClientSKU" runat="server" Width="145px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: bold; height: 13px;">
                        <asp:Literal ID="m_litReplacementHandsetModel" runat="server" Text="<%$ Resources : LogisticsManagement, ReplacementHandsetModel %>" />
                        <span class="redAsterix">*</span>
                    </td>
                    <td align="left" style="height: 13px;" colspan="3">
                        <asp:TextBox ID="m_txtReplacementHandsetModel" runat="server" Width="97%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqReplacementHandsetModel" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, ReplacementHandsetModelRequired %>" Display="None" ControlToValidate="m_txtReplacementHandsetModel" />
                    </td>
                    <td align="right" style="font-weight: bold; height: 13px;"/>
                    <td align="right" style="font-weight: bold; height: 13px;"/>
                </tr>
            </table>
        </div>
    </div>
    <%--Transaction Info --%>
    <h2>
        <asp:Literal ID="Literal9" runat="server" Text="<%$Resources : LogisticsManagement, TransactionInfo%>" />
    </h2>
    <div class="greyblock" style="display: inline-block; width: 1185px">

        <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
            <tr>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litTransactionLocation" runat="server" Text="<%$ Resources : LogisticsManagement, TransactionLocation %>" />
                    <span class="redAsterix">*</span>
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtTransactionLocation" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvTransactionLocation" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, TransactionLocationRequired %>" Display="None" ControlToValidate="m_txtTransactionLocation" />
                </td>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litInventoryOwner" runat="server" Text="<%$ Resources : LogisticsManagement, InventoryOwner %>" />
                    <span class="redAsterix">*</span>
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtInventoryOwner" runat="server" Width="100px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvInventoryOwner" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, InventoryOwnerRequired %>" Display="None" ControlToValidate="m_txtInventoryOwner" />
                </td>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litTransactionCode" runat="server" Text="<%$ Resources : LogisticsManagement, TransactionCode %>"/>
                    <span class="redAsterix">*</span>
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtTransactionCode" runat="server" Width="100px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvTransactionCode" runat="server" ErrorMessage="<%$ Resources : LogisticsManagement, TransactionCodeRequired %>" Display="None" ControlToValidate="m_txtTransactionCode" />
                </td>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litOutboundTrackingNumber" runat="server" Text="<%$ Resources : LogisticsManagement, OutboundTrackingNumber %>" />
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtOutboundTrackingNumber" runat="server" Width="150px"></asp:TextBox>
                </td>
                <td align="right" style="font-weight: bold; height: 13px;">
                    <asp:Literal ID="m_litReturnTrackingNumber" runat="server" Text="<%$ Resources : LogisticsManagement, ReturnTrackingNumber %>" />
                </td>
                <td align="left" style="height: 13px;">
                    <asp:TextBox ID="m_txtReturnTrackingNumber" runat="server" Width="150px"></asp:TextBox>
                </td>
                <td>&nbsp</td>
            </tr>
        </table>
    </div>

    <table width="100%">
        <tr>
            <td align="center">
                <asp:Button ID="m_btnSave" Text="<%$ Resources : Default,ButtonSave %>" Visible="false" runat="server" CssClass="pagebutton" OnClick="m_btnSave_Click" OnClientClick="ClearSuccessMessage();" UseSubmitBehavior="false"/>
                <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" Text="<%$ Resources : Default,ButtonCancel %>" CausesValidation="false"
                    OnClick="m_btnCancel_Click" />
                <asp:Button ID="m_btnProcess" Text="<%$ Resources : Default,ButtonProcess %>" runat="server" CssClass="pagebutton"
                    OnClick="m_btnProcess_Click" Visible="false"/>
            </td>
        </tr>
    </table>

</asp:Content>
