protected void btnAdd_Click(object sender, System.EventArgs e) { string text = base.Request.Form["CheckBoxGroup"]; if (string.IsNullOrEmpty(text)) { this.ShowMsg("请选择一件商品!", false); return; } if (PromoteHelper.AddPromotionProducts(this.activityId, text)) { this.CloseWindow(); return; } this.ShowMsg("选择的商品已经参加其他促销活动,不能添加到此促销活动中!", false); }
protected void btnAdd_Click(object sender, EventArgs e) { string text = base.Request.Form["CheckBoxGroup"]; if (string.IsNullOrEmpty(text)) { this.ShowMsg("请选择一件商品!", false); } else if (PromoteHelper.AddPromotionProducts(this.activityId, text, this.IsMobileExclusive)) { base.CloseWindow(null); } else { this.ShowMsg("选择的商品没有添加到此促销活动中!", false); } }