private void btnInStock_Click(object sender, EventArgs e)
        {
            string str = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(str))
            {
                ShowMsg("请先选择要入库的商品", false);
            }
            else if (SubSiteProducthelper.UpdateProductSaleStatus(str, ProductSaleStatus.OnStock) > 0)
            {
                ShowMsg("成功入库了选择的商品,您可以在仓库里的商品里面找到入库以后的商品", true);
                BindProducts();
            }
            else
            {
                ShowMsg("入库商品失败,未知错误", false);
            }
        }
Exemplo n.º 2
0
        private void btnOffShelf_Click(object sender, EventArgs e)
        {
            string str = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(str))
            {
                this.ShowMsg("请先选择要下架的商品", false);
            }
            else if (SubSiteProducthelper.UpdateProductSaleStatus(str, ProductSaleStatus.UnSale) > 0)
            {
                this.ShowMsg("成功下架了选择的商品,您可以在下架区的商品里面找到下架以后的商品", true);
                this.BindProducts();
            }
            else
            {
                this.ShowMsg("下架商品失败,未知错误", false);
            }
        }
Exemplo n.º 3
0
        private void btnInStock_Click(object sender, System.EventArgs e)
        {
            string text = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(text))
            {
                this.ShowMsg("请先选择要入库的商品", false);
                return;
            }
            int num = SubSiteProducthelper.UpdateProductSaleStatus(text, ProductSaleStatus.OnStock);

            if (num > 0)
            {
                this.ShowMsg("成功入库了选择的商品,您可以在仓库里的商品里面找到入库以后的商品", true);
                this.BindProducts();
                return;
            }
            this.ShowMsg("入库商品失败,未知错误", false);
        }
Exemplo n.º 4
0
        private void btnOffShelf_Click(object sender, System.EventArgs e)
        {
            string text = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(text))
            {
                this.ShowMsg("请先选择要下架的商品", false);
                return;
            }
            int num = SubSiteProducthelper.UpdateProductSaleStatus(text, ProductSaleStatus.UnSale);

            if (num > 0)
            {
                this.ShowMsg("成功下架了选择的商品,您可以在下架区的商品里面找到下架以后的商品", true);
                this.BindProducts();
                return;
            }
            this.ShowMsg("下架商品失败,未知错误", false);
        }
        private void btnUpShelf_Click(object sender, EventArgs e)
        {
            string str = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(str))
            {
                ShowMsg("请先选择要上架的商品", false);
            }
            else if (!SubSiteProducthelper.IsOnSale(str))
            {
                ShowMsg("选择要上架的商品中有一口价低于最低零售价的情况", false);
            }
            else if (SubSiteProducthelper.UpdateProductSaleStatus(str, ProductSaleStatus.OnSale) > 0)
            {
                ShowMsg("成功上架了选择的商品,您可以到出售中的商品中找到上架的商品", true);
                BindProducts();
            }
            else
            {
                ShowMsg("上架商品失败,未知错误", false);
            }
        }
Exemplo n.º 6
0
        private void btnUpShelf_Click(object sender, System.EventArgs e)
        {
            string text = base.Request.Form["CheckBoxGroup"];

            if (string.IsNullOrEmpty(text))
            {
                this.ShowMsg("请先选择要上架的商品", false);
                return;
            }
            if (!SubSiteProducthelper.IsOnSale(text))
            {
                this.ShowMsg("选择要上架的商品中有一口价低于最低零售价的情况", false);
                return;
            }
            int num = SubSiteProducthelper.UpdateProductSaleStatus(text, ProductSaleStatus.OnSale);

            if (num > 0)
            {
                this.ShowMsg("成功上架了选择的商品,您可以到出售中的商品中找到上架的商品", true);
                this.BindProducts();
                return;
            }
            this.ShowMsg("上架商品失败,未知错误", false);
        }