Exemplo n.º 1
0
        private void AssignShippingAddressValidatorPrerequisites(AddressControl2 ctrlShippingAddress)
        {
            ctrlShippingAddress.FirstNameRequiredErrorMessage   = AppLogic.GetString("createaccount.aspx.56", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.LastNameRequiredErrorMessage    = AppLogic.GetString("createaccount.aspx.57", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.AccountNameRequiredErrorMessage = AppLogic.GetString("createaccount.aspx.58", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.AddressRequiredErrorMessage     = AppLogic.GetString("createaccount.aspx.59", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.PhoneRequiredErrorMessage       = AppLogic.GetString("createaccount.aspx.60", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);

            ctrlShippingAddress.FirstNameMaximumCharacterLength             = 50;
            ctrlShippingAddress.FirstNameMaximumCharacterLengthErrorMessage = AppLogic.GetString("createaccount.aspx.61", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.LastNameMaximumCharacterLength                = 50;
            ctrlShippingAddress.LastNameMaximumCharacterLengthErrorMessage    = AppLogic.GetString("createaccount.aspx.62", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.AccountNameMaximumCharacterLength             = 100;
            ctrlShippingAddress.AccountNameMaximumCharacterLengthErrorMessage = AppLogic.GetString("createaccount.aspx.63", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.AddressMaximumCharacterLength             = 200;
            ctrlShippingAddress.AddressMaximumCharacterLengthErrorMessage = AppLogic.GetString("createaccount.aspx.64", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.PhoneMaximumCharacterLength             = 50;
            ctrlShippingAddress.PhoneMaximumCharacterLengthErrorMessage = AppLogic.GetString("createaccount.aspx.65", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);

            ctrlShippingAddress.CityRequiredErrorMessage               = AppLogic.GetString("createaccount.aspx.71", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.CityMaximumCharacterLength             = 50;
            ctrlShippingAddress.CityMaximumCharacterLengthErrorMessage = AppLogic.GetString("createaccount.aspx.75", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);

            ctrlShippingAddress.PostalCodeRequiredErrorMessage               = AppLogic.GetString("createaccount.aspx.72", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.PostalCodeMaximumCharacterLength             = 10;
            ctrlShippingAddress.PostalCodeMaximumCharacterLengthErrorMessage = AppLogic.GetString("createaccount.aspx.76", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
        }
Exemplo n.º 2
0
        private void InitializeAddressControl(AddressControl2 ctrlShippingAddress)
        {
            LoadAllAvailableCountriesAndAssignRegistriesForAddresses(ctrlShippingAddress);
            AssignShippingAddressCaptions(ctrlShippingAddress);
            AssignShippingAddressValidatorPrerequisites(ctrlShippingAddress);

            ctrlShippingAddress.ShowCounty = AppLogic.AppConfigBool("Address.ShowCounty");
            //for mobile layout
            ctrlShippingAddress.DataBind();
        }
Exemplo n.º 3
0
        private void LoadAllAvailableCountriesAndAssignRegistriesForAddresses(AddressControl2 ctrlShippingAddress)
        {
            if (null == _countries || _countries.Count == 0)
            {
                _countries = CountryAddressDTO.GetAllCountries();
            }

            ctrlShippingAddress.Countries         = _countries;
            ctrlShippingAddress.RegisterCountries = shouldRegisterAddressCountries;

            // avoid re-registering
            shouldRegisterAddressCountries = false;
        }
Exemplo n.º 4
0
        private void AssignShippingAddressCaptions(AddressControl2 ctrlShippingAddress)
        {
            ctrlShippingAddress.FirstNameCaption          = AppLogic.GetString("createaccount.aspx.6", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.LastNameCaption           = AppLogic.GetString("createaccount.aspx.7", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.AccountNameCaption        = AppLogic.GetString("createaccount.aspx.34", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.AddressCaption            = AppLogic.GetString("createaccount.aspx.22", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.ResidenceTypeCaption      = AppLogic.GetString("address.cs.15", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.CountryCaption            = AppLogic.GetString("createaccount.aspx.23", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.PhoneNumberCaption        = AppLogic.GetString("createaccount.aspx.16", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.WithOutStateCityCaption   = AppLogic.GetString("createaccount.aspx.33", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.WithOutStatePostalCaption = AppLogic.GetString("createaccount.aspx.77", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);

            ctrlShippingAddress.WithStateCityStatePostalCaption = AppLogic.GetString("createaccount.aspx.31", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            ctrlShippingAddress.CountyCaption = AppLogic.GetString("createaccount.aspx.32", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
        }
Exemplo n.º 5
0
 private void InitializeAddressControl(AddressControl2 ctrlShippingAddress)
 {
 }