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

<%@ Register Src="~/Controls/PopupWindowYesNo.ascx" TagName="PopupWindowYesNo" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<%@ Register Src="~/Controls/AccessoryAssociations.ascx" TagName="AccessoryAssociations" TagPrefix="aa" %>
<%@ Register Src="~/Controls/AccessoryAddPopup.ascx" TagName="AddPop" TagPrefix="apop" %>
<%@ Register Src="~/Controls/PopupWindow.ascx" TagName="PopupWindow" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" HeaderText="<%$ Resources : ModelManagement,ExtendedValidationSummaryNeedCreatingNewHandsetModel %>" />

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_litHandSetModelDetailsHeader" runat="server" Text="<%$ Resources : ModelManagement,LabelModelDetailsDash %>" />
                    <asp:Label ID="m_lblModelName" runat="server"></asp:Label>
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" OnSendEmailClicked="SendEmail_Clicked" />

    <h2>
        <asp:Literal ID="m_litGeneralInfo" runat="server" Text="<%$ Resources : AdministrationManagement,LabelGeneralInformation %>" />
        <asp:Label
            ID="m_lblStatus" runat="server" /></h2>
    <div class="greyblock">
        <b><span style="color: #ff0000">*</span></b>
        <asp:Literal ID="m_litRequiredFieldInfo" runat="server" Text="<%$ Resources : Default,LabelIndicatesRequiredField %>" />
        <table border="0" cellpadding="0" cellspacing="0" class="HandsetModelGVTable">
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litModelName" runat="server" Text="<%$ Resources : ModelManagement,LabelModelNameColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:TextBox ID="m_txtModelName" runat="server" Width="235px" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="m_txtModelName"
                        Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : Default,ModelNameRequired %>"
                        ToolTip="<%$ Resources : Default,ModelNameRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
                <td align="right" style="width: 146px">
                    <asp:Literal ID="m_litTechType" runat="server" Text="<%$ Resources: SubscriberManagement,LabelTechnologyTypeColon %>" /><b><span
                        style="color: #ff0000">*</span></b></td>
                <td style="width: 513px">
                    <asp:DropDownList ID="m_ddlTechType" runat="server" Width="247px" DataTextField="RefName" DataValueField="ID">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator
                        ID="m_rfvTechType"
                        runat="server"
                        ControlToValidate="m_ddlTechType"
                        Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources: SubscriberManagement,LabelTechnologyTypeColon %>"
                        ToolTip="<%$ Resources: SubscriberManagement,LabelTechnologyTypeColon %>"
                        SetFocusOnError="True"
                        InitialValue="0"></asp:RequiredFieldValidator>
                </td>
                <td align="right" style="width: 175px">
                    <asp:Literal ID="m_litModelType" runat="server" Text="<%$ Resources : OrganizationManagement,TypeLabel %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:DropDownList ID="m_ddlModelType" runat="server" Width="247px">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2"
                        runat="server"
                        ControlToValidate="m_ddlModelType"
                        Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources : ModelManagement,ModelTypeRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,ModelTypeRequired %>"
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litManufacturer" runat="server" Text="<%$ Resources : HandsetManagement,LabelManufacturerColon  %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:DropDownList ID="m_ddlManufacturer" runat="server" Width="247px">
                    </asp:DropDownList>
                    <asp:CustomValidator ID="m_cvManufacturer" runat="server" ControlToValidate="m_ddlManufacturer"
                        OnServerValidate="m_cvManufacturer_ServerValidate" ErrorMessage="<%$ Resources : Default,ManufacturerRequired %>"
                        ToolTip="<%$ Resources : Default,ManufacturerRequired %>" Text="<%$ Resources:Default, ValidatorText %>"
                        SetFocusOnError="True" />
                </td>
                <td align="right" style="width: 146px">
                    <asp:Literal ID="m_litModality" runat="server" Text="<%$ Resources : Default,LabelModalityColon %>" />
                </td>
                <td align="left" style="width: 513px">
                    <asp:TextBox ID="m_txtModality" runat="server" Width="235px"></asp:TextBox>
                </td>
                <td align="right" style="width: 175px">
                    <asp:Literal ID="m_litModelColor" runat="server" Text="<%$ Resources : Default,LabelColorColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:DropDownList ID="m_ddlModelColor" runat="server" Width="247px">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3"
                        runat="server"
                        ControlToValidate="m_ddlModelColor"
                        Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources : ModelManagement,ModelColorRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,ModelColorRequired %>"
                        SetFocusOnError="True"></asp:RequiredFieldValidator>

                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litWeight" runat="server" Text="<%$ Resources : HandsetManagement,WeightOzColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:TextBox ID="m_txtWeight" runat="server" Width="235px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvWeight" runat="server" ControlToValidate="m_txtWeight"
                        Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : ModelManagement,WeightRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,WeightRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="m_rvWeight" runat="server" ErrorMessage="<%$ Resources : ModelManagement,WeightMustBeValueBetween %>"
                        ControlToValidate="m_txtWeight" MaximumValue="1000000" MinimumValue="<%$ Resources : ModelManagement,WeightMinValue %>"
                        ToolTip="<%$ Resources : ModelManagement,WeightMustBeValueBetween %>" Type="Double" Text="<%$ Resources:Default, ValidatorText %>"></asp:RangeValidator>
                </td>
                <td align="right">
                    <asp:Literal ID="m_litERPModelName" runat="server" Text="<%$ Resources : ModelManagement,ERPModelNameColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:TextBox ID="m_txtERPModelName" runat="server" Width="235px" MaxLength="10"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="m_txtERPModelName"
                        Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : Default,ModelNameRequired %>"
                        ToolTip="<%$ Resources : Default,ModelNameRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>

                </td>
                <td align="right">
                    <asp:Literal ID="m_litERPModelShortDesc" runat="server" Text="<%$ Resources : ModelManagement,ERPModelShortDescriptionColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td style="width: 294px">
                    <asp:TextBox ID="m_txtERPModelShortDesc" runat="server" Width="235px" MaxLength="15"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="m_txtERPModelShortDesc"
                        Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : ModelManagement,ERPModelShortDescriptionRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,ERPModelShortDescriptionRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>

                </td>
            </tr>
            <tr valign="top">
                <td align="right">
                    <asp:Literal ID="m_litPicture" runat="server" Text="<%$ Resources : HandsetManagement,LabelPictureColon %>" />
                </td>
                <td align="left" style="width: 294px">
                    <asp:Panel ID="m_pnlHandsetPic" runat="server"
                        Visible="False">
                        <asp:Image ID="m_imgHandsetPic" runat="server" />
                        <br />
                    </asp:Panel>
                    <asp:FileUpload ID="m_fuPictureUpload" runat="server"
                        ToolTip="<%$ Resources : Default,FileUploadBrowse %>" />
                    (Max Size : 100kb)
                    <br />
                    <asp:CheckBox ID="m_chkDeleteCurrentImage" runat="server"
                        Text="<%$ Resources : Default,CheckBoxDeleteCurrentImage %>" />
                </td>
                                <td align="right">
                    <asp:Literal ID="m_litDescription" runat="server" Text="<%$ Resources : ClaimsManagement , LabelDescriptionColon %>" />
                </td>
                <td style="width: 294px">
                    <asp:TextBox ID="m_txtDescription" runat="server" TextMode="MultiLine" Width="241px" Height="197px" CssClass="multilinetb"></asp:TextBox>
                </td>
                <td align="right" style="width: 146px">
                    <asp:Literal ID="m_litDimensions" runat="server" Text="<%$ Resources : Default,LabelDimensionsColon %>" />
                </td>
                <td align="left" style="width: 300px">
                    <asp:TextBox ID="m_txtDimensions" runat="server" Width="235px"></asp:TextBox>
                    <br />
                    <br />
                </td>
            </tr>
            <tr>
                <td align = "right">
                    <asp:Literal ID="m_litIsCellular" runat="server" Text="<%$ Resources : HandsetManagement,IsCellularColon %>" />
                </td><td>
                    <asp:CheckBox runat="server" ID="m_chkIsCellular" Text="" />
                </td><td>
                    <asp:Literal ID="m_litCapacity" runat="server" Text="<%$ Resources : HandsetManagement,CapacityColon %>" />
                </td><td>
                    <asp:TextBox ID="m_txtCapacity" runat="server" Width="205px"></asp:TextBox>
                            <asp:Literal ID="Literal1" runat="server" Text="GB" />
                    <asp:CompareValidator ID="m_cvTxtCapacity" runat="server" Operator="DataTypeCheck" Type="Integer" 
                        ControlToValidate="m_txtCapacity" ErrorMessage="<%$ Resources : Default,RangeValidatorValueMastBeInteger %>" />
                </td><td>
                    
                </td><td>
                
                </td>
            </tr>
        </table>
    </div>


    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" HeaderText="<%$ Resources : ModelManagement,ExtendedValidationSummaryNeedCreatingNewHandsetModel %>" />
    <%--<h2>
        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources : Default,LabelAccessoryAssociations %>" />
    </h2>--%>
   

    <table width="100%">
        <tr>
            <td align="center">
                <div id="ProcessButtonsDIV">
                    <asp:Button ID="m_btnUpdate" runat="server" Text="<%$ Resources : Default,ButtonUpdate %>" OnClick="m_btnUpdate_Click"
                        CssClass="pagebutton" />
                    <asp:Button ID="m_btnCancel" runat="server" Text="<%$ Resources : Default,ButtonCancel %>" OnClick="m_btnCancel_Click"
                        CausesValidation="False" CssClass="pagebutton" />
                </div>
            </td>
        </tr>
    </table>

   <%-- <apop:AddPop ID="accessoryAssociationAdd" runat="server" OnAccesoryAddCompleted="accessoryAssociationAdd_AddCompleted" />
    <uc:PopupWindowYesNo ID="ucPopupWindowYesNo" runat="server" OnYesClicked="ucPopupWindowYesNo_YesClicked" />
    <uc:PopupWindow ID="ucPopupInvalidAssociation" runat="server" />--%>

</asp:Content>
