<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Inherits="site_HITS_HandsetModel_Add" Title="Brightstar Device Protection: Create New Handset Model"
    Culture="auto" UICulture="auto" Theme="eMain" Codebehind="Add.aspx.cs" %>
<%@ 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" 
        HeaderText="<%$ Resources : ModelManagement,ExtendedValidationSummaryNeedCreatingNewHandsetModel %>"
        />
    <table width="100%">
        <tr>
             <td>
                <h1> 
                    <asp:Literal ID="m_litCreateHandsetModelHeader" runat="server" Text="<%$ Resources : ModelManagement,LabelCreateNewHandsetModel %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID = "ChildHeader1" runat = "server" />
   <h2><asp:Literal ID="m_litGeneralInfoHeader" 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_litRequiredFieldIndicatorMessage" 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>
                    <asp:TextBox ID="m_txtModelName" runat="server" Width="165px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rvModelName" 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">
                    <asp:Literal ID="m_litTechType" runat="server" 
                        Text="<%$ Resources : SubscriberManagement,LabelTechnologyTypeColon %>" /><b><span style="color: #ff0000">*</span></b>
                    </td>
                <td>
                    <asp:DropDownList ID="m_ddlTechType" runat="server" Width="200px" DataTextField="RefName" DataValueField="ID">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator 
                        ID="m_rfvTechType" 
                        runat="server" 
                        ControlToValidate="m_ddlTechType"
                        Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources : Default,TechnologyTypeRequired %>"
                        ToolTip="<%$ Resources : Default,TechnologyTypeRequired %>" 
                        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="171px">
                    </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>
                    <asp:DropDownList ID="m_ddlManufacturer" runat="server" Width="171px">
                    </asp:DropDownList>
                    <asp:CustomValidator ID="m_cvManufacturer" runat="server" ControlToValidate="m_ddlManufacturer"
                        Text="<%$ Resources:Default, ValidatorText %>" OnServerValidate="m_cvManufacturer_ServerValidate"
                        ErrorMessage="<%$ Resources : Default,ManufacturerRequired %>" ToolTip="<%$ Resources : Default,ManufacturerRequired %>" 
                         />
                </td>
                <td align = "right">
                    <asp:Literal ID="m_litModality" runat="server" Text="<%$ Resources : Default,LabelModalityColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtModality" runat="server" Width="200px"></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="171px">
                    </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>
                    <asp:TextBox ID="m_txtWeight" runat="server" Width="50px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_rfvWeight" runat="server" ControlToValidate="m_txtWeight"
                        Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : Default,WeightRequired %>"
                        ToolTip="<%$ Resources : Default,WeightRequired %>" SetFocusOnError="True" 
                        ></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="m_rvWeight" runat="server" ControlToValidate="m_txtWeight"
                        Text="<%$ Resources:Default, ValidatorText %>" MaximumValue="1000000" MinimumValue="<%$ Resources : ModelManagement,WeightMinValue %>"
                        ErrorMessage="<%$ Resources : ModelManagement,WeightMustBeValueBetween %>" ToolTip="<%$ Resources : ModelManagement,WeightMustBeValueBetween %>"
                        Type="Double"></asp:RangeValidator></td>
                <td align = "right">
                    <asp:Literal ID="m_litBatteries" runat="server" Text="<%$ Resources : HandsetManagement,LabelBatteriesColon %>"/>
                </td>
                <td>
                    <asp:TextBox ID="m_txtBatteries" runat="server" Width="200px"></asp:TextBox>
                </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="168px" 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>
            </tr>
            <tr valign="top">
                <td align = "right">
                    <asp:Literal ID="m_litDescription" runat="server" Text="<%$ Resources : ClaimsManagement , LabelDescriptionColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtDescription" runat="server" TextMode="MultiLine" CssClass="multilinetb"></asp:TextBox>
                </td>
                <td align = "right">
                    <asp:Literal ID="m_litAccessories" runat="server" Text="<%$ Resources : Default,LabelAccessoriesColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtAccessories" runat="server" TextMode="MultiLine" CssClass="multilinetb"></asp:TextBox>
                </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="166px" 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>
                <td align = "right">
                    <asp:Literal ID="m_litPicture" runat="server" Text="<%$ Resources : HandsetManagement,LabelPictureColon %>" />
                </td>
                <td>
                    <asp:FileUpload ID="m_fuPictureUpload" runat="server"  ToolTip="<%$ Resources : Default,FileUploadBrowse %>"/><br />
                </td>
                <td align = "right">
                    <asp:Literal ID="m_litDimensions" runat="server" Text="<%$ Resources : Default,LabelDimensionsColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtDimensions" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td align = "right">
                    <asp:Literal ID="m_litIsCellular" runat="server" Text="<%$ Resources : HandsetManagement,IsCellularColon %>" />
                </td>
                <td>
                    <asp:CheckBox runat="server" ID="m_chkIsCellular" Text="" Checked="True" />
                </td>
            </tr>
            <tr>
                <td align = "right">
                    <asp:Literal ID="m_litCapacity" runat="server" Text="<%$ Resources : HandsetManagement,CapacityColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtCapacity" runat="server" Width="200px"></asp:TextBox>
                    <asp:CompareValidator runat="server" Operator="DataTypeCheck" Type="Integer" 
                        ControlToValidate="m_txtCapacity" ErrorMessage="<%$ Resources : Default,RangeValidatorValueMastBeInteger %>" />
                </td>                
            </tr>
        </table>
    </div>
    
    <div style="padding-left: 350px">
        <asp:Button ID="m_btnAdd" runat="server" Text="<%$ Resources : Default,ButtonCreate %>" OnClick="m_btnAdd_Click" CssClass="pagebutton"
             />
        <asp:Button ID="m_btnCancel" runat="server" Text="<%$ Resources : Default,ButtonCancel %>" OnClick="m_btnCancel_Click" CausesValidation = "False"
            CssClass="pagebutton" />
    </div>
    
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" 
        HeaderText="<%$ Resources : ModelManagement,ExtendedValidationSummaryNeedCreatingNewHandsetModel %>"
        />
</asp:Content>
