예제 #1
0
        private void grdPromoteSales_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e)
        {
            int activityId = (int)this.grdPromoteSales.DataKeys[e.RowIndex].Value;

            if (SubsitePromoteHelper.DeletePromotion(activityId))
            {
                this.ShowMsg("成功删除了选择的促销活动", true);
                this.BindProductPromotions();
                return;
            }
            this.ShowMsg("删除失败", false);
        }
예제 #2
0
        private void grdPromoteSales_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int activityId = (int)grdPromoteSales.DataKeys[e.RowIndex].Value;

            if (SubsitePromoteHelper.DeletePromotion(activityId))
            {
                ShowMsg("成功删除了选择的促销活动", true);
                BindPromoteSales();
            }
            else
            {
                ShowMsg("删除失败", false);
            }
        }