예제 #1
0
        protected void btnNew_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            RateTableLevel r = new RateTableLevel();
            r.Level = decimal.Parse(this.NewLevelField.Text);
            r.Rate = decimal.Parse(this.NewAmountField.Text);

            RateTableSettings settings = new RateTableSettings();
            settings.Merge(ShippingMethod.Settings);

            settings.AddLevel(r);

            ShippingMethod.Settings = settings;
            MyPage.MTApp.OrderServices.ShippingMethods.Update(ShippingMethod);
            LoadLevels();
        }
예제 #2
0
        private void LoadLevels()
        {
            RateTableSettings settings = new RateTableSettings();
            settings.Merge(ShippingMethod.Settings);

            List<RateTableLevel> levels = settings.GetLevels();
            this.GridView1.DataSource = levels;
            this.GridView1.DataBind();
        }
예제 #3
0
        private void RemoveLevel(string level, string rate)
        {
            RateTableSettings settings = new RateTableSettings();
            settings.Merge(ShippingMethod.Settings);

            RateTableLevel r = new RateTableLevel();
            r.Level = decimal.Parse(level);
            r.Rate = decimal.Parse(rate, System.Globalization.NumberStyles.Currency);

            settings.RemoveLevel(r);

            ShippingMethod.Settings = settings;
            MyPage.MTApp.OrderServices.ShippingMethods.Update(ShippingMethod);
            LoadLevels();
        }
예제 #4
0
 public PerItem()
 {
     Settings = new RateTableSettings();
 }
예제 #5
0
 public RateTableByItemCount()
 {
     Settings = new RateTableSettings();
 }
예제 #6
0
 public PerItem()
 {
     Settings = new RateTableSettings();
 }
예제 #7
0
 public RateTableByTotalPrice()
 {
     Settings = new RateTableSettings();
 }
 public RateTableByTotalPrice()
 {
     Settings = new RateTableSettings();
 }
예제 #9
0
 public RateTableByTotalWeight()
 {
     Settings = new RateTableSettings();
 }
예제 #10
0
 public RateTableByItemCount()
 {
     Settings = new RateTableSettings();
 }
 public RateTableByTotalWeight()
 {
     Settings = new RateTableSettings();
 }