コード例 #1
0
        /// <summary>
        /// 批量删除商品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDelete_Click(object sender, EventArgs e)
        {
            string str = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(str))
            {
                this.ShowMsg("请先选择要删除的商品!", false);
            }
            else if (ProductHelper.DelSendsIntegralProducts(str) > 0)
            {
                this.ShowMsg("成功从删除了选择的商品!", true);
                this.BindProducts();
            }
            else
            {
                this.ShowMsg("删除商品失败,未知错误!", false);
            }
        }