public ActionResult Save(string id) { ViewBag.types = ListToSelect(SysDataDictService.GetWholesalerTypes().Select(o => new SelectListItem() { Value = o.DicSN.ToString(), Text = o.Title }), emptyTitle: "请选择"); var obj = new Logic.Entity.Supplier() { MasterState = 1, Designee = Sys.CurrentUser.UID, CreateDT = DateTime.Now }; if (!id.IsNullOrEmpty()) { obj = WholesalerBLL.FindById(id); } return(View(obj.IsNullThrow())); }
public ActionResult MerchantInformation(Logic.Entity.Supplier obj) { var re = new OpResult(); var supp = SupplierService.FindById(obj.Id); var exc = new List <string>(); if (string.IsNullOrEmpty(obj.MasterPwd)) { exc.Add("MasterPwd"); } exc.Add("CreateDT"); exc.Add("MasterState"); obj.ToCopyProperty(supp, exc); re = SupplierService.Update(supp); return(Content(re.ToJson())); }
public ActionResult Save(Logic.Entity.Supplier obj) { var re = WholesalerBLL.SaveOrUpdate(obj); return(Content(re.ToJson())); }
public ActionResult Save(Logic.Entity.Supplier obj) { var re = SupplierService.SaveOrUpdate(obj); return(Content(re.ToJson())); }