<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="site_HITS_Accessories_Add" %>

<%@ 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,ExtendedValidationSummaryNeedCreatingNewAccessory %>" />


    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_litAccessoryModelDetailsHeader" runat="server" Text="<%$ Resources : ModelManagement,LabelAccessoryDetailsDash %>" />
                    <asp:Label ID="m_lblModelName" runat="server" Text="<%$ Resources: HandsetManagement, NewAccessory %>" />
                </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">
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litTechType" runat="server" Text="<%$ Resources: ModelManagement,LabelAccessoryTypeColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>
                <td>
                    <asp:DropDownList ID="m_ddlAccessoryType" runat="server" Width="171px">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator
                        ID="m_rfvAccessoryType"
                        runat="server"
                        ControlToValidate="m_ddlAccessoryType"
                        Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources : ModelManagement,AccessoryTypeRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,AccessoryTypeRequired %>"
                        SetFocusOnError="True"
                        InitialValue="0"></asp:RequiredFieldValidator>

                </td>
                <td align="right">
                    <asp:Literal ID="m_litModelName" runat="server" Text="<%$ Resources : ModelManagement,LabelAccessoryNameColon %>" /><b><span
                        style="color: #ff0000">*</span></b>
                </td>

                <td>
                    <asp:TextBox ID="m_txtAccessoryName" runat="server" Width="165px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="m_txtAccessoryName"
                        Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : ModelManagement,AccessoryNameRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,AccessoryNameRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>


                </td>
                <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:RequiredFieldValidator
                        ID="m_rfvManufacturer"
                        runat="server"
                        ControlToValidate="m_ddlManufacturer"
                        Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources : ModelManagement,AccessoryManufacturerRequired %>"
                        ToolTip="<%$ Resources : ModelManagement,AccessoryManufacturerRequired %>"
                        SetFocusOnError="True"
                        InitialValue="0"></asp:RequiredFieldValidator>


                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="m_litDescription" runat="server" Text="<%$ Resources : HandsetManagement , LabelDescriptionColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtDescription" runat="server" Width="165px"></asp:TextBox>

                </td>
                <td align="right">
                    <asp:Literal ID="m_litCost" runat="server" Text="<%$ Resources : ModelManagement , LabelAccessoryCostColon %>" />


                </td>
                <td>
                    <asp:TextBox ID="m_txtCost" runat="server" Width="165px"></asp:TextBox>
                    <asp:RangeValidator ID="m_rngvCost" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                        ErrorMessage="<%$ Resources : ModelManagement,CostMustBePositiveNumericAmount %>"
                        ControlToValidate="m_txtCost" MinimumValue="0" MaximumValue="999999999999" ToolTip="<%$ Resources : ModelManagement,CostMustBePositiveNumericAmount %>"
                        Type="Double"></asp:RangeValidator>

                </td>
                <td align="right">
                    <asp:Literal ID="m_litColor" runat="server" Text="<%$ Resources : HandsetManagement , LabelColorColon %>" /><b><span
                        style="color: #ff0000">*</span></b>


                </td>
                <td>
                    <asp:DropDownList ID="m_ddlAccessoryColor" runat="server" Width="171px">
                    </asp:DropDownList>


                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources : ModelManagement , LabelClientAccessoryNameColon %>" />
                </td>
                <td>
                    <asp:TextBox ID="m_txtClientAccessoryName" runat="server" Width="165px"></asp:TextBox>

                </td>
                <td align="right">&nbsp;</td>
                <td>&nbsp;</td>
                <td align="right">&nbsp;</td>
                <td>&nbsp;</td>
            </tr>

            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litERPAccessoryName" runat="server" Text="<%$ Resources : ModelManagement,ERPAccessoryNameColon %>" /><b><span
                            style="color: #ff0000">*</span></b>

                    </td>
                    <td>
                        <asp:TextBox ID="m_txtERPAccessoryName" runat="server" Width="168px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="m_txtERPAccessoryName"
                            Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : ModelManagement,ERPAccessoryNameRequired %>"
                            ToolTip="<%$ Resources : ModelManagement,ERPAccessoryNameRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>


                    </td>
                    <td align="left">
                        <asp:CheckBox runat="server" ID="m_chkActive" Checked="True" Text="<%$ Resources:ModelManagement, LabelAccessoryActive %>" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litERPAccessoryDesc" runat="server" Text="<%$ Resources : ModelManagement,ERPAccessoryDescriptionColon %>" /><b><span
                            style="color: #ff0000">*</span></b>

                    </td>
                    <td>
                        <asp:TextBox ID="m_txtERPAccessoryDesc" runat="server" Width="166px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="m_txtERPAccessoryDesc"
                            Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources : ModelManagement,ERPAccessoryDescriptionRequired %>"
                            ToolTip="<%$ Resources : ModelManagement,ERPAccessoryDescriptionRequired %>" SetFocusOnError="True"></asp:RequiredFieldValidator>


                    </td>
                    <td align="left">
                        <asp:CheckBox runat="server" ID="m_chkColorMustMatchModel" Text="<%$ Resources : ModelManagement,LabelColorMustMatchModel %>" />

                    </td>
                </tr>
            </table>

        </table>
    </div>

    <div style="padding-left: 350px">
        <asp:Button ID="m_btnUpdate" runat="server" Text="<%$ Resources : Default,ButtonCreate %>" 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>

    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" HeaderText="<%$ Resources : ModelManagement,ExtendedValidationSummaryNeedCreatingNewAccessory %>" />



</asp:Content>
