Exemplo n.º 1
0
        public ActionResult ChangePrice(ProductChangePrice obj)
        {
            obj.StoreId = Request["StoreId"];
            var re = ProductService.SaveOrUpdateChangePrice(obj, Request["Inserted"], Request["Deleted"], Request["Updated"]);

            return(Content(re.ToJson()));
        }
Exemplo n.º 2
0
        public ActionResult ChangePrice(string id)
        {
            ViewBag.users = ListToSelect(new Pharos.Sys.BLL.SysUserInfoBLL().GetUsers(0).Select(o => new SelectListItem()
            {
                Value = o.UID, Text = o.FullName
            }), emptyTitle: "请选择");
            //ViewBag.suppliers = ListToSelect(SupplierService.GetList().Where(o => o.BusinessType == 1).Select(o => new SelectListItem() { Value = o.Id, Text = o.Title }), emptyTitle: "请选择");
            ViewBag.stores = ListToSelect(WarehouseService.GetList().Select(o => new SelectListItem()
            {
                Value = o.StoreId, Text = o.Title
            }), emptyTitle: "全部", emptyValue: "-1");
            ProductChangePrice obj = new ProductChangePrice()
            {
                CreateUID = Sys.CurrentUser.UID
            };

            if (!id.IsNullOrEmpty())
            {
                obj = BaseService <ProductChangePrice> .FindById(id);
            }
            return(View(obj.IsNullThrow()));
        }