예제 #1
0
        public ActionResult ModifyGoodsSupplies(Model.ViewModel.GoodsList g)
        {
            Model.Good modify_g = new Model.Good();
            modify_g.GoodsID  = g.GoodsID;
            modify_g.Supplies = g.Supplies;
            int ok = OperateContext.Current.BLLSession.IGoodBLL.Modify(modify_g, new string[] { "Supplies" });

            if (ok == 1)
            {
                return(Content("Ok modify Supplies!"));
            }
            else
            {
                return(Content("Error modify Supplies!"));
            }
        }
예제 #2
0
        public ActionResult ModifyGoods(Model.ViewModel.GoodsList g)
        {
            Model.Good modify_g = new Model.Good();
            modify_g.GoodsID        = g.GoodsID;
            modify_g.GoodsName      = g.GoodsName;
            modify_g.GoodsPic       = g.GoodsPic;
            modify_g.GoodsBrife     = g.GoodsBrife;
            modify_g.GoodsSortID    = g.GoodsSortID;
            modify_g.ProductsSortID = g.ProductsSortID;
            modify_g.SalePrice      = Convert.ToDecimal(g.SalePrice);
            modify_g.RentPrice      = Convert.ToDecimal(g.RentPrice);
            int ok = OperateContext.Current.BLLSession.IGoodBLL.Modify(modify_g, new string[] { "GoodsName", "RentPrice", "SalePrice", "GoodsSortID", "ProductsSortID", "GoodsPic", "GoodsBrife" });

            if (ok == 1)
            {
                return(Content("Ok modify!"));
            }
            else
            {
                return(Content("Error modify!"));
            }
        }