public ActionResult AddStorageType(仓库转移类别 model) { if (string.IsNullOrEmpty(model.name)) { return(View()); } else { return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.name)); } }
public ActionResult UpdateStorageType(仓库转移类别 model) { if (ModelState.IsValid) { 仓库转移类别 updmodel = MSSQLManager.GetDmodel().仓库转移类别.FirstOrDefault(c => c.id == model.id); return(MSSQLManager.getMsslManager().UpdateModel(model, updmodel, IEnumMessageCode.uppdateSuccess, model.name)); } else { return(Content(string.Format("2004".GetMessage(), model.name))); } }
public ActionResult DelStorageType(int id) { 仓库转移类别 model = MSSQLManager.GetDmodel().仓库转移类别.FirstOrDefault(C => C.id == id); return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Deleted, IEnumMessageCode.addSucess, model.name, IEnumMessageCode.back, "ListStorageType")); }