public void Disable()
    {
        BillFirstName.Enabled = false;
        BillLastName.Enabled  = false;
        BillZip.Enabled       = false;
        BillAddress1.Enabled  = false;
        BillAddress2.Enabled  = false;

        PageUtility.AddClass(this.BillAddressTable, "disabled");

        this.UpdatePanelBillingAddressWrap.Update();
    }
Esempio n. 2
0
    public void ShowCreateNewPassword()
    {
        PanelUsername.Visible = true;
        PanelPassword.Visible = true;
        PanelPassword.Enabled = false;

        PanelError.Visible = false;

        PanelCreateNewPassword.Visible       = true;
        LabelCreateNewPasswordFirstName.Text = this.AccountModel.FirstName;

        PanelNoAccount.Visible = false;

        txtEmailAddress.Visible = true;
        txtEmailAddress.Enabled = false;
        PageUtility.AddClass(txtEmailAddress, "disabled");

        btnEmailSubmit.Visible = false;
        btnEmailSubmit.Enabled = false;

        btnPasswordSubmit.Visible = false;
        btnPasswordSubmit.Enabled = true;

        ButtonForgotPassword.Visible = true;
        ButtonForgotPassword.Enabled = true;

        LabelForgotPasswordResults.Visible = false;
        LostPasswordResults.Visible        = false;

        if (PaymentModel.ActivePaymentMethod != null &&
            PaymentModel.ActivePaymentMethod.PaymentType == PaymentType.PayPalExpress &&
            ((PaypalExpressPaymentModel)this.PaymentModel.ActivePaymentMethod).ExpressLoginComplete)
        {
            linkSwitchUser.Visible      = false;
            this.PanelNoAccount.Visible = false;
        }
        else
        {
            linkSwitchUser.Visible = true;
            linkSwitchUser.Enabled = true;
        }

        txtPassword.Visible = true;
        txtPassword.Enabled = false;
        PageUtility.AddClass(txtPassword, "disabled");

        txtEmailAddress.Text    = this.AccountModel.Username;
        txtPassword.Text        = "********";
        txtPassword.TextMode    = TextBoxMode.SingleLine;
        EmailHelperText.Visible = false;

        PageUtility.RegisterFocusScript(this, TextBoxNewPassword1);
    }
Esempio n. 3
0
    public void ShowAccountFound()
    {
        PanelUsername.Visible = true;
        PanelPassword.Visible = true;
        PanelError.Visible    = false;

        PanelNoAccount.Visible = false;

        PanelCreateNewPassword.Visible = false;

        txtEmailAddress.Visible = true;
        txtEmailAddress.Enabled = false;
        PageUtility.AddClass(txtEmailAddress, "disabled");

        btnEmailSubmit.Visible = false;
        btnEmailSubmit.Enabled = false;

        btnPasswordSubmit.Visible = true;
        btnPasswordSubmit.Enabled = true;

        ButtonForgotPassword.Visible = true;
        ButtonForgotPassword.Enabled = true;

        LabelForgotPasswordResults.Visible = false;
        LostPasswordResults.Visible        = false;

        if (PaymentModel.ActivePaymentMethod != null &&
            PaymentModel.ActivePaymentMethod.PaymentType == PaymentType.PayPalExpress &&
            ((PaypalExpressPaymentModel)this.PaymentModel.ActivePaymentMethod).ExpressLoginComplete)
        {
            linkSwitchUser.Visible      = false;
            this.PanelNoAccount.Visible = false;
        }
        else
        {
            linkSwitchUser.Visible = true;
            linkSwitchUser.Enabled = true;
        }

        trConfirmEmail.Visible = false;

        txtPassword.Visible  = true;
        txtPassword.Enabled  = true;
        txtPassword.TextMode = TextBoxMode.Password;
        PageUtility.RemoveClass(txtPassword, "disabled");

        txtEmailAddress.Text    = this.Model.Username;
        EmailHelperText.Visible = false;

        btnSkipLogin.Visible = AspDotNetStorefrontCore.Customer.NewEmailPassesDuplicationRules(this.Model.Username, int.Parse(this.Model.AccountId), !this.Model.IsRegistered);
        btnSkipLogin.Enabled = AspDotNetStorefrontCore.Customer.NewEmailPassesDuplicationRules(this.Model.Username, int.Parse(this.Model.AccountId), !this.Model.IsRegistered);
    }
Esempio n. 4
0
    void ShowAccountNotFound()
    {
        PanelUsername.Visible = true;
        PanelPassword.Visible = false;

        PanelError.Visible     = false;
        PanelNoAccount.Visible = true;

        PanelCreateNewPassword.Visible = false;

        txtEmailAddress.Visible = true;
        txtEmailAddress.Enabled = false;
        PageUtility.AddClass(txtEmailAddress, "disabled");

        txtConfirmEmailAddress.Visible = true;
        txtConfirmEmailAddress.Enabled = false;
        PageUtility.AddClass(txtConfirmEmailAddress, "disabled");

        btnEmailSubmit.Visible = false;
        btnEmailSubmit.Enabled = false;

        btnPasswordSubmit.Visible = false;
        btnPasswordSubmit.Enabled = false;

        ButtonForgotPassword.Visible = false;
        ButtonForgotPassword.Enabled = false;

        LabelForgotPasswordResults.Visible = false;
        LostPasswordResults.Visible        = false;

        if (PaymentModel.ActivePaymentMethod != null &&
            PaymentModel.ActivePaymentMethod.PaymentType == PaymentType.PayPalExpress &&
            ((PaypalExpressPaymentModel)this.PaymentModel.ActivePaymentMethod).ExpressLoginComplete)
        {
            linkSwitchUser.Visible      = false;
            this.PanelNoAccount.Visible = false;
        }
        else
        {
            PanelNoAccount.Visible = true;
            linkSwitchUser.Visible = true;
            linkSwitchUser.Enabled = true;
        }

        txtPassword.Visible = false;
        txtPassword.Enabled = false;
        PageUtility.AddClass(txtPassword, "disabled");

        txtEmailAddress.Text    = this.Model.Username;
        EmailHelperText.Visible = false;
    }
Esempio n. 5
0
    private void ShowNotAuthenticated()
    {
        PanelUsername.Visible = true;
        PanelPassword.Visible = true;

        PanelError.Visible     = true;
        PanelNoAccount.Visible = false;

        PanelCreateNewPassword.Visible = false;

        txtEmailAddress.Visible = true;
        txtEmailAddress.Enabled = false;
        PageUtility.AddClass(txtEmailAddress, "disabled");

        btnEmailSubmit.Visible = false;
        btnEmailSubmit.Enabled = false;

        btnPasswordSubmit.Visible = true;
        btnPasswordSubmit.Enabled = true;

        ButtonForgotPassword.Visible = true;
        ButtonForgotPassword.Enabled = true;

        LabelForgotPasswordResults.Visible = false;
        LostPasswordResults.Visible        = false;

        if (PaymentModel.ActivePaymentMethod != null &&
            PaymentModel.ActivePaymentMethod.PaymentType == PaymentType.PayPalExpress &&
            ((PaypalExpressPaymentModel)this.PaymentModel.ActivePaymentMethod).ExpressLoginComplete)
        {
            linkSwitchUser.Visible = false;
        }
        else
        {
            linkSwitchUser.Visible = true;
            linkSwitchUser.Enabled = true;
        }

        txtPassword.Visible  = true;
        txtPassword.Enabled  = true;
        txtPassword.TextMode = TextBoxMode.Password;
        PageUtility.RemoveClass(txtPassword, "disabled");

        txtEmailAddress.Text    = this.AccountModel.Username;
        lblError.Text           = StringResourceProvider.GetString("smartcheckout.aspx.128");
        EmailHelperText.Visible = false;

        PageUtility.RegisterFocusScript(this, txtPassword);
    }
Esempio n. 6
0
    public override void Disable()
    {
        BillFirstName.Enabled = false;
        BillLastName.Enabled  = false;
        BillCompany.Enabled   = false;
        BillZip.Enabled       = false;
        BillOtherCity.Enabled = false;
        BillAddress1.Enabled  = false;
        BillAddress2.Enabled  = false;
        BillPhone.Enabled     = false;

        PageUtility.AddClass(this.BillAddressTable, "disabled");

        this.UpdatePanelBillingAddressWrap.Update();
    }
Esempio n. 7
0
    public override void Initialize()
    {
        PanelUsername.Visible  = true;
        PanelPassword.Visible  = false;
        PanelError.Visible     = false;
        PanelNoAccount.Visible = false;

        txtEmailAddress.Visible = true;
        txtEmailAddress.Enabled = true;
        txtEmailAddress.Text    = String.Empty;

        PanelCreateNewPassword.Visible = false;

        txtPassword.Visible = false;
        txtPassword.Enabled = false;
        PageUtility.AddClass(txtPassword, "disabled");
        PageUtility.RemoveClass(txtEmailAddress, "disabled");

        txtPassword.Text = String.Empty;

        trConfirmEmail.Visible = false;

        btnEmailSubmit.Visible = true;
        btnEmailSubmit.Enabled = true;

        btnPasswordSubmit.Visible = false;
        btnPasswordSubmit.Enabled = false;

        ButtonForgotPassword.Visible = false;
        ButtonForgotPassword.Enabled = false;

        LostPasswordResults.Visible        = false;
        LabelForgotPasswordResults.Visible = false;

        linkSwitchUser.Visible = false;
        linkSwitchUser.Enabled = false;

        btnSkipLogin.Visible = false;
        btnSkipLogin.Enabled = false;

        EmailHelperText.Visible = true;

        if (!ConfigurationProvider.DefaultProvider.PasswordIsOptionalDuringCheckout)
        {
            lblNoAccount.Text = StringResourceProvider.GetString("smartcheckout.aspx.127");
        }
    }
Esempio n. 8
0
    public override void Disable()
    {
        this.ShipFirstName.Enabled     = false;
        this.ShipLastName.Enabled      = false;
        this.ShipZip.Enabled           = false;
        this.ShipCity.Enabled          = false;
        this.ShipCounty.Enabled        = false;
        this.ShipAddress1.Enabled      = false;
        this.ShipAddress2.Enabled      = false;
        this.ShipComments.Enabled      = false;
        this.ShipPhone.Enabled         = false;
        this.ButtonSaveAddress.Enabled = false;
        this.ButtonSaveAddress.Visible = false;
        PageUtility.AddClass(ShipAddressTable, "disabled");

        this.UpdatePanelShippingAddressWrap.Update();
    }
Esempio n. 9
0
    void ShowAuthenticated()
    {
        PanelUsername.Visible = true;
        PanelPassword.Visible = true;

        PanelError.Visible     = false;
        PanelNoAccount.Visible = false;

        txtEmailAddress.Visible = true;
        txtEmailAddress.Enabled = false;
        PageUtility.AddClass(txtEmailAddress, "disabled");

        trConfirmEmail.Visible = false;

        btnEmailSubmit.Visible = false;
        btnEmailSubmit.Enabled = false;

        PanelCreateNewPassword.Visible = false;

        btnPasswordSubmit.Visible = false;
        btnPasswordSubmit.Enabled = false;

        ButtonForgotPassword.Visible = false;
        ButtonForgotPassword.Enabled = false;

        LabelForgotPasswordResults.Visible = false;
        LostPasswordResults.Visible        = false;

        linkSwitchUser.Visible = true;
        linkSwitchUser.Enabled = true;

        txtPassword.Visible = false;
        txtPassword.Enabled = false;
        lblPassword.Visible = false;
        PageUtility.AddClass(txtPassword, "disabled");

        txtEmailAddress.Text    = this.Model.Username;
        txtPassword.Text        = "********";
        txtPassword.TextMode    = TextBoxMode.SingleLine;
        EmailHelperText.Visible = false;
    }
    public void Disable()
    {
        this.ShipFirstName.Enabled      = false;
        this.ShipLastName.Enabled       = false;
        this.TextBoxPhone.Enabled       = false;
        this.Company.Enabled            = false;
        this.ShipZip.Enabled            = false;
        this.ShipOtherCity.Enabled      = false;
        this.Company.Enabled            = false;
        this.ShipAddress1.Enabled       = false;
        this.ShipAddress2.Enabled       = false;
        this.ShipComments.Enabled       = false;
        this.ButtonSaveAddress.Enabled  = false;
        this.ButtonSaveAddress.Visible  = false;
        this.CheckBoxCommercial.Enabled = false;
        this.ShipOtherCountry.Enabled   = false;
        this.ShipOtherState.Enabled     = false;
        PageUtility.AddClass(ShipAddressTable, "disabled");

        this.UpdatePanelShippingAddressWrap.Update();
    }