<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Inherits="site_HITS_Inventory_Add" Title="Brightstar Device Protection: Inventory"
    Culture="auto" Theme="eMain" UICulture="auto" Codebehind="Add.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 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="InventoryMain"
        HeaderText="<%$ Resources : InventoryManagement,ExtendedValidationSummaryTheFollowingItemsNeedReviewedInventoryDot %>"
        />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_litTitle" runat="server" Text="<%$ Resources : InventoryManagement,LabelInventory %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    <div class="greyblock" width="100%">
        <table width="100%">
            <tr>
                <td align="right">
                    <asp:HyperLink ID="m_linkSubscriber" runat="server" ForeColor="LightSkyBlue" Text="<%$ Resources : SubscriberManagement,SubscriberHeader %>" ></asp:HyperLink>
                </td>
            </tr>
        </table>
    </div>
    <asp:Panel ID="m_pnlStatus" runat="server">
        <asp:Literal ID="lblSuccess" runat="server"></asp:Literal>
    </asp:Panel>
    <!---------------------------------------TABLE ------------------------------------------->
    <table width="100%">
        <tr>
            <td valign="top" style="width: 50%">
                <h2>
                    <asp:Literal ID="m_litGeneralInfo" runat="server" Text="<%$ Resources : UsersManagement,LabelGeneralInformation %>" />
                    <%--                        <asp:Label ID="lblStatus" runat="server" />
--%>
                </h2>
                <div class="greyblock">
                    <span style="color: #ff0000">* </span>
                    <asp:Literal ID="m_litRequired" runat="server" Text="<%$ Resources : Default,LabelIndicatesRequiredFields %>" />
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litESNHeader" runat="server" Text="<%$ Resources : Default,LabelESNSlashIMEIColon %>" />
                                <b><span style="color: #ff0000">*</span></b>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbESN" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="m_tbESN"
                                    ErrorMessage="*" ></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="m_revESN" ControlToValidate="m_tbESN" runat="server"
                                    ErrorMessage="<%$ Resources : InventoryManagement,ErrorMessageESNvaluesMayContainFollowingCaracteres %>"
                                    ValidationExpression="[^0]([0-9a-fA-FxX])*" Text="<%$ Resources : InventoryManagement,ErrorMessageESNvaluesMayContainFollowingCaracteres %>"
                                    SetFocusOnError="True" Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litModelHeader" runat="server" Text="<%$ Resources : ModelManagement,LabelModelColon %>" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="m_ddlModel" runat="server" Width="250px">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="m_ddlModel"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litMDNHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelMDNColon %>" ></asp:Literal><strong><span
                                    style="color: #ff0000">*</span></strong></td>
                            <td align="left">
                                <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td style="width: 25px">
            </td>
            <td>
                <h2>
                    <asp:Literal ID="m_litInventoryStatus" runat="server" Text="<%$ Resources : InventoryManagement,LabelInventoryStatus %>" />
                </h2>
                <div class="greyblock">
                    <span style="color: #ff0000">* </span>
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources : Default,LabelIndicatesRequiredFields %>" />
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litLocationHeader" runat="server" Text="<%$ Resources : OrganizationManagement,LabelLocationColon %>" ></asp:Literal><strong><span
                                    style="color: #ff0000">*</span></strong></td>
                            <td align="left">
                                <asp:DropDownList ID="m_ddlLocation" runat="server">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="m_ddlDisposition"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litDispositionHeader" runat="server" Text="<%$ Resources : Default,LabelDispositionColon %>" ></asp:Literal><strong><span
                                    style="color: #ff0000">*</span></strong></td>
                            <td align="left">
                                <asp:DropDownList ID="m_ddlDisposition" runat="server">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="m_ddlDisposition"
                                    runat="server" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litLossTypeHeader" runat="server" Text="<%$ Resources : ClaimsManagement,LabelLossTypeColon %>"></asp:Literal></td>
                            <td align="left">
                                <asp:DropDownList ID="m_ddlLossType" runat="server">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litCovStatusHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelCoveredStatusColon %>" ></asp:Literal></td>
                            <td colspan="" align="left">
                                &nbsp;<asp:RadioButtonList ID="m_rblCovStatus" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="Active" Text="<%$ Resources : Default,ListItemActive %>" ></asp:ListItem>
                                    <asp:ListItem Value="Inactive" Text="<%$ Resources : Default,ListItemInactive %>" ></asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litHotlinedHeader" runat="server" Text="<%$ Resources : SubscriberManagement,HotLinedLabel %>" ></asp:Literal></td>
                            <td align="left">
                                <asp:CheckBox ID="m_chbHotlined" runat="server" /></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litWarrantyStartHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelWarrantyStartColon %>"
                                    ></asp:Literal></td>
                            <td align="left">
                                <uc:HITSCalendar ID="m_calWarrantyStart" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litWarrantyPeriodHeader" runat="server" Text="<%$ Resources : OrganizationManagement,WarrantyPeriodDaysLabel %>"
                                    ></asp:Literal></td>
                            <td align="left">
                                <asp:TextBox ID="m_tbWarrantyPeriod" runat="server" ></asp:TextBox>
                                <asp:RangeValidator ID="m_gvWarrantyPeriod" runat="server" ControlToValidate="m_tbWarrantyPeriod"
                                    Text="<%$ Resources : Default,RangeValidatorValueMastBeInteger %>" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                    ToolTip="<%$ Resources : Default,ToolTipEnterIntegerValue %>" ErrorMessage="<%$ Resources : Default,ErrorMessegeEnterWarrantyPeriodValue %>"
                                    Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litCarrierAllocationHeader" runat="server" Text="<%$ Resources : SubscriberManagement,LabelClientAllocationColon %>"
                                    ></asp:Literal></td>
                            <td align="left">
                                <asp:Literal ID="m_litCarrierAllocation" runat="server" Text=""></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="m_litSKUHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelSKUColon %>" ></asp:Literal></td>
                            <td align="left">
                                <asp:Literal ID="m_litSKU" runat="server" Text=""></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <h2>
        <asp:Literal ID="m_litCurrentPricingInfo" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelCurrentPricingInformation %>"
            />
    </h2>
    <div class="greyblock" width="100%">
        <span style="color: #ff0000">* </span>
        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources : Default,LabelIndicatesRequiredFields %>" />
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
            <tr>
                <td style="height: 25px; width: 25%;" align="right">
                    <asp:Literal ID="m_litOrderHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelOrderNumberSignColon %>" ></asp:Literal></td>
                <td style="height: 17px" align="left">
                    <asp:Literal ID="m_litOrder" runat="server" ></asp:Literal></td>
            </tr>
            <tr>
                <td style="height: 25px;" align="right">
                    <asp:Literal ID="m_litInvoiceHeader" runat="server" Text="<%$Resources : ServicePlanManagement,LabelInvoiceColon %>"></asp:Literal></td>
                <td align="left">
                    <asp:Literal ID="m_litInvoice" runat="server"></asp:Literal></td>
            </tr>
            <tr>
                <td style="height: 25px;" align="right">
                    <asp:Literal ID="m_litConditionHeader" runat="server" Text="<%$ Resources : Default,LabelCondition %>"></asp:Literal></td>
                <td align="left">
                    <asp:DropDownList ID="m_ddlCondition" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="height: 25px;" align="right">
                    <asp:Literal ID="m_litSupplierHeader" runat="server" Text="<%$ Resources : SubscriberManagement,SupplierLabel %>"></asp:Literal><strong><span
                        style="color: #ff0000">*</span></strong></td>
                <td align="left">
                    <asp:DropDownList ID="m_ddlSupplier" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="m_ddlSupplier"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="2" style="border-right: gray thin solid; border-top: gray thin solid;
                    border-left: gray thin solid; border-bottom: gray thin solid">
                    <table>
                        <tr>
                            <td style="width: 210px" align="right">
                                <asp:Literal ID="m_litPartsHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelParts %>" ></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbParts" runat="server" Width="45px"></asp:TextBox>
                                <asp:RangeValidator ID="m_rvParts" runat="server" ControlToValidate="m_tbParts" Text="<%$ Resources : Default,LabelEnterValidCostValueDot %>"
                                    MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources : ServicePlanManagement,LabelEnterValue %>"
                                    ErrorMessage="<%$ Resources : ServicePlanManagement,ErrorMessageLabelEnterPartsCostValueBetween %>" Type="Double"></asp:RangeValidator>
                            </td>
                            <td rowspan="3" align="right">
                                <asp:Literal ID="m_litSubTotalHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelSubDashTotal %>" ></asp:Literal>
                                (<%=CurrencyData.CurrencySymbol%>):    
                            </td>
                                 
                            <td rowspan="3" align="left">
                                <asp:TextBox ID="m_tbSubTotal" Enabled="False" runat="server" Width="44px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 210px" align="right">
                                <asp:Literal ID="m_litLaborHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelLabor %>"></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbLabor" runat="server" Width="44px"></asp:TextBox>
                                <asp:RangeValidator ID="m_rvLabor" runat="server" ControlToValidate="m_tbLabor" Text="<%$ Resources : Default,LabelEnterValidCostValueDot %>"
                                    MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources : ServicePlanManagement,LabelEnterValue %>"
                                    ErrorMessage="<%$ Resources : ServicePlanManagement,EnterLaborCostValueBetween %>" Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 210px" align="right">
                                <asp:Literal ID="m_litUnitHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelUnit %>" ></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbUnit" runat="server" Width="44px"></asp:TextBox>
                                <asp:RangeValidator ID="m_rvUnit" runat="server" ControlToValidate="m_tbUnit" Text="<%$ Resources : Default,LabelEnterValidCostValueDot %>"
                                    MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources : ServicePlanManagement,LabelEnterValue %>"
                                    ErrorMessage="<%$ Resources : ServicePlanManagement,EnterUnitCostValueBetween %>" Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="border-right: gray thin solid; border-top: gray thin solid;
                    border-left: gray thin solid; border-bottom: gray thin solid">
                    <table>
                        <tr>
                            <td style="width: 211px" align="right">
                                <asp:Literal ID="m_litProvisioningHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelProvisioning %>" ></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbProvisioning" runat="server" Width="45px"></asp:TextBox>
                                <asp:RangeValidator ID="m_rvProvisioning" runat="server" ControlToValidate="m_tbProvisioning"
                                    Text="<%$ Resources : Default,LabelEnterValidCostValueDot %>" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                    ToolTip="<%$ Resources : ServicePlanManagement,LabelEnterValue %>" ErrorMessage="<%$ Resources : ServicePlanManagement,EnterProvisioningCostValueBetween %>"
                                    Type="Double"></asp:RangeValidator>
                            </td>
                            <td rowspan="3" style="width: 98px" align="right">
                                <asp:Literal ID="m_litOtherHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelOther %>" ></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td rowspan="3" style="width: 73px" align="left">
                                <asp:TextBox ID="m_tbOther" Enabled="False" runat="server" Width="44px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 211px" align="right">
                                <asp:Literal ID="m_litQAHeader" runat="server" Text="<%$ Resources : InventoryManagement,LabelQA %>"></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbQA" runat="server" Width="45px"></asp:TextBox>
                                <asp:RangeValidator ID="m_rvQA" runat="server" ControlToValidate="m_tbQA" Text="<%$ Resources : Default,LabelEnterValidCostValueDot %>"
                                    MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True" ToolTip="<%$ Resources : ServicePlanManagement,LabelEnterValue %>"
                                    ErrorMessage="<%$ Resources : ServicePlanManagement,EnterQACostValueBetween %>" Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 211px" align="right">
                                <asp:Literal ID="m_litHandlingHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelHandling %>"></asp:Literal>
                                 (<%=CurrencyData.CurrencySymbol%>):
                            </td>
                            <td align="left">
                                <asp:TextBox ID="m_tbHandling" runat="server" Width="43px"></asp:TextBox>
                                <asp:RangeValidator ID="m_rvHandling" runat="server" ControlToValidate="m_tbHandling"
                                    Text="<%$ Resources : Default,LabelEnterValidCostValueDot %>" MaximumValue="1000000" MinimumValue="0" SetFocusOnError="True"
                                    ToolTip="<%$ Resources : ServicePlanManagement,LabelEnterValue %>" ErrorMessage="<%$ Resources : ServicePlanManagement,EnterHandlingCostValueBetween %>"
                                    Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="width: 508px" align="right">
                    <asp:Literal ID="m_litTotalCostHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelTotalCost %>"></asp:Literal></td>
                     (<%=CurrencyData.CurrencySymbol%>):
                <td align="left">
                    <asp:TextBox ID="m_tbTotalCost" Enabled="False" Width="45px" runat="server"></asp:TextBox></td>
            </tr>
        </table>
       </div> 
        <!---------------------------------------TABLE ------------------------------------------->
        <div align="center">
                    <asp:Button ID="m_btnSave" OnClick="m_btnSave_Click" Text="<%$ Resources : Default,ButtonSave %>" runat="server" 
                        />
                    <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" Text="<%$ Resources : Default,ButtonCancel %>" 
                        OnClientClick="javascript:window.close();" />
        </div>
</asp:Content>
