<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Inherits="site_HITS_Orders_Add" Title="Brightstar Device Protection: Order"
    Culture="auto" 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 Src="~/Controls/ModelSummary.ascx" TagName="ModelSummary" TagPrefix="uc" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName="CustomSorter" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <center>
        <asp:Label ID="lblSuccess" runat="server" Text="<%$ Resources : Default,LabelLabel %>" Font-Bold="True" ForeColor="Green"
            ></asp:Label>
    </center>
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" ValidationGroup="OrderMain"
        HeaderText="<%$ Resources : ServicePlanManagement,ExtendedValidationSummaryTheFollowingItemsNeedToBeReviewedBeforeUpdatingThisOrderDot %>"
        />
    <table width="100%">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_litTitle" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelNewOrder %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    <!---------------------------------------General Info ------------------------------------------->
    <asp:Panel ID="m_pnlGeneralInfo" runat="server">
        <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">
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litOrderNHeader" runat="server" Text="<%$ Resources : ServicePlanManagement,LabelOrderNumberSignColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbOrderN" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litInvoiceNHeader" runat="server" Text="<%$ Resources : ClaimsManagement,LabelInvoiceNumberSignColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbInvoiceN" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litSupplierHeader" runat="server" Text="<%$ Resources : SubscriberManagement,SupplierLabel %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlSupplier" runat="server" Width="250px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="m_ddlSupplier"
                            ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litInvoicePostedOnHeader" runat="server" Text="<%$ Resources : BillingManagement,LabelInvoicePostedOnColon %>"
                            />
                    </td>
                    <td align="left">
                        <uc:HITSCalendar ID="m_calInvoicePostedOn" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litBillToHeader" runat="server" Text="<%$ Resources : BillingManagement,LabelBillToColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlBillTo" runat="server" Width="250px"
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlBillTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ForeColor="red" Text="*"
                            runat="server" ControlToValidate="m_ddlBillTo" ValidationGroup="OrderMain" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litShipToHeader" runat="server" Text="<%$Resources : BillingManagement,LabelShipToColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlShipTo" runat="server" Width="250px"
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlShipTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ForeColor="red" Text="*"
                            runat="server" ControlToValidate="m_ddlShipTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litDepartmentBillToHeader" runat="server" Text="<%$ Resources : ClaimsManagement,DepartmentLabel %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlDepartmentBillTo" runat="server" Width="250px"
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlDepartmentBillTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlDepartmentBillTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litDepartmentShipToHeader" runat="server" Text="<%$ Resources : ClaimsManagement,DepartmentLabel %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlDepartmentShipTo" runat="server" Width="250px"
                            AutoPostBack="True" OnSelectedIndexChanged="m_ddlDepartmentShipTo_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlDepartmentShipTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litContactBillToHeader" runat="server" Text="<%$ Resources : OrganizationManagement,LabelContactColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlContactBillTo" runat="server" Width="250px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlContactBillTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                        <%--                    <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="*" MinimumValue="1" ControlToValidate="m_ddlContactBillTo" MaximumValue="1000000" Display="Dynamic" Text="*" ValidationGroup="OrderMain" Type="Integer"></asp:RangeValidator>
--%>
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litContactShipToHeader" runat="server" Text="<%$ Resources : OrganizationManagement,LabelContactColon %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlContactShipTo" runat="server" Width="250px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ForeColor="red"
                            Text="*" ControlToValidate="m_ddlContactShipTo" ErrorMessage="*" ValidationGroup="OrderMain"></asp:RequiredFieldValidator>
                        <%--                    <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="*" MinimumValue="1" ControlToValidate="m_ddlContactShipTo" MaximumValue="1000000" Text="*" ValidationGroup="OrderMain" Font-Bold="false" Font-Italic="false" CultureInvariantValues="true" Type="Integer"></asp:RangeValidator>
--%>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litAddressBillToHeader" runat="server" Text="<%$ Resources : AddressResources,LabelAddressColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddressBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litAddressShipToHeader" runat="server" Text="<%$ Resources : AddressResources,Address2 %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddressShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litAddress2BillToHeader" runat="server" Text="<%$ Resources : AddressResources,Address2 %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddress2BillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litAddress2ShipToHeader" runat="server" Text="<%$ Resources : AddressResources,Address2 %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbAddress2ShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litCityBillToHeader" runat="server" Text="<%$ Resources : AddressResources,City %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbCityBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litCityShipToHeader" runat="server" Text="<%$ Resources : AddressResources,City %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbCityShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litStateBillToHeader" runat="server" Text="<%$ Resources:AddressResources, State  %>" />
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlStateBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litStateShipToHeader" runat="server" Text="<%$ Resources:AddressResources, State  %>" />
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="m_ddlStateShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litZipBillToHeader" runat="server" Text="<%$Resources : AddressResources,Zip %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbZipBillTo" runat="server" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="m_tbZipBillTo"
                            ValidationExpression="<%$ Resources:AddressResources, ZipValidation %>" Text="<%$ Resources:Default, ValidatorText %>"
                            Display="Dynamic" ErrorMessage="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>" ToolTip="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>"
                            />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litZipShipToHeader" runat="server" Text="<%$Resources : AddressResources,Zip %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbZipShipTo" runat="server" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="m_tbZipShipTo"
                            ValidationExpression="<%$ Resources:AddressResources, ZipValidation %>" Text="<%$ Resources:Default, ValidatorText %>"
                            Display="Dynamic" ErrorMessage="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>" ToolTip="<%$ Resources : AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>"
                            />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litEmailBillToHeader" runat="server" Text="<%$ Resources : SubscriberManagement,LabelEmailColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbEmailBillTo" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litEmailShipToHeader" runat="server" Text="<%$ Resources : SubscriberManagement,LabelEmailColon %>" />
                    </td>
                    <td align="left">
                        <asp:TextBox ID="m_tbEmailShipTo" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Literal ID="m_litPhoneBillToHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelDaytimePhoneColon %>" />
                    </td>
                    <td align="left">
                        <uc1:PhoneNumber ID="m_ucPhoneBillTo" runat="server" Required="false" />
                    </td>
                    <td align="right">
                        <asp:Literal ID="m_litPhoneShipToHeader" runat="server" Text="<%$ Resources : HandsetManagement,LabelDaytimePhoneColon %>" />
                    </td>
                    <td align="left">
                        <uc1:PhoneNumber ID="m_ucPhoneShipTo" runat="server" Required="false" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <!---------------------------------Update Button----------------------------------->
    <div style="padding-left: 25%">
        <asp:Button ID="m_btnSave" OnClick="m_btnSave_Click" ValidationGroup="OrderMain" CssClass="pagebutton" 
            Text="<%$ Resources : Default,ButtonCreate %>" runat="server" />
        <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" Text="<%$ Resources : Default,ButtonCancel %>" 
            OnClientClick="javascript:window.close();" />
    </div>
</asp:Content>
