Esempio n. 1
0
    protected void Unwrap_Click(object sender, EventArgs e)
    {
        ShippingMethod method = BaseProviderModule.ShippingMethod;

        method.ShippingProviderId = Settings.ShippingProviderId;
        ShippingMethod.Update(method);
        // Redirect so that IsPostBack = false in the base provider module
        Response.Redirect(Request.Url.ToString());
    }
Esempio n. 2
0
 private void SaveData()
 {
     ShippingMethod.Name                  = NameField.Text.Trim();
     Settings.ShippingProviderId          = ShippingProviderField.SelectedValue;
     Settings.ShippingProviderServiceCode = ShippingProviderServiceCodeField.SelectedValue;
     if (string.IsNullOrEmpty(MethodAdjustmentAmountField.Text))
     {
         ShippingMethod.Adjustment = 0M;
     }
     else
     {
         ShippingMethod.Adjustment = Decimal.Parse(MethodAdjustmentAmountField.Text);
     }
     ShippingMethod.AdjustmentType =
         (ShippingMethodAdjustmentType)
         Enum.Parse(typeof(ShippingMethodAdjustmentType), MethodAdjustmentTypeField.SelectedValue);
     Settings.Visible = ShipMethodVisibleField.Checked;
     ShippingMethod.Update(ShippingMethod);
 }
Esempio n. 3
0
 private void SaveData()
 {
     Settings.Visible            = ShipMethodVisibleField.Checked;
     Settings.ShippingProviderId = BaseProviderField.SelectedValue;
     ShippingMethod.Update(ShippingMethod);
 }