Exemplo n.º 1
0
        private void btnOperationOK_Click(object sender, System.EventArgs e)
        {
            if (string.IsNullOrEmpty(this.productIds))
            {
                this.ShowMsg("没有要修改的商品", false);
                return;
            }
            decimal AdminFraction = 0;

            if (!decimal.TryParse(this.txtAddStock.Text, out AdminFraction))
            {
                this.ShowMsg("请输入正确的权重格式", false);
                return;
            }
            if (ProductHelper.AddProductsAdminFraction(this.productIds, AdminFraction))
            {
                this.BindProduct();
                this.ShowMsg("修改商品的权重成功", true);
                return;
            }
            this.ShowMsg("修改商品的权重失败", false);
        }