Exemplo n.º 1
0
        public ActionResult TradePrice(ProductTradePrice obj)
        {
            obj.Wholesaler = Request["Wholesaler"];
            var re = ProductService.SaveOrUpdateTradePrice(obj, Request["Inserted"], Request["Deleted"], Request["Updated"]);

            return(Content(re.ToJson()));
        }
Exemplo n.º 2
0
        public ActionResult TradePrice(string id)
        {
            ViewBag.suppliers = ListToSelect(SupplierService.GetWholesalerList().Select(o => new SelectListItem()
            {
                Value = o.Id, Text = o.FullTitle
            }), emptyTitle: "全部", emptyValue: "-1");
            ProductTradePrice obj = new ProductTradePrice()
            {
                CreateUID = Sys.CurrentUser.UID
            };

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