public ActionResult AddC_functioninfo(C_functioninfo model) { if (ModelState.IsValid && !string.IsNullOrEmpty(model.name)) { model.controllername = "TAHBOA"; return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.displayname)); } return(PartialView()); }
public ActionResult UpdateCcontract(合同记录 model) { if (!ModelState.IsValid) { return(Content(string.Format("2004".GetMessage(), model.合同编号))); } 合同记录 updmodel = MSSQLManager.GetDmodel().合同记录.FirstOrDefault(c => c.id == model.id); return(MSSQLManager.getMsslManager().UpdateModel(model, updmodel, IEnumMessageCode.uppdateSuccess, model.合同编号)); }
public ActionResult AddStorage(仓库记录 model) { if (string.IsNullOrEmpty(model.source)) { return(View()); } else { return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.source)); } }
public ActionResult AddDirectory(C_directories model) { if (string.IsNullOrEmpty(model.type)) { return(View()); } else { return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.type)); } }
public ActionResult AddContratType(合同类别 model) { if (string.IsNullOrEmpty(model.code)) { return(View()); } else { return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.name)); } }
public ActionResult AddAreaCode(区域代码 model) { if (string.IsNullOrEmpty(model.code)) { return(View()); } else { return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.area)); } }
public ActionResult UpdateDirectory(C_directories model) { if (ModelState.IsValid) { C_directories updmodel = MSSQLManager.GetDmodel().C_directories.FirstOrDefault(c => c.id == model.id); return(MSSQLManager.getMsslManager().UpdateModel(model, updmodel, IEnumMessageCode.uppdateSuccess, model.type)); } else { return(Content(string.Format("2004".GetMessage(), model.type))); } }
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 UpdateAreaCode(区域代码 model) { if (ModelState.IsValid) { 区域代码 updmodel = MSSQLManager.GetDmodel().区域代码.FirstOrDefault(c => c.id == model.id); return(MSSQLManager.getMsslManager().UpdateModel(model, updmodel, IEnumMessageCode.uppdateSuccess, model.area)); } else { return(Content(string.Format("2004".GetMessage(), model.area))); } }
public ActionResult AddC_contract(合同记录 model) { if (model.签订时间 != null && ModelState.IsValid) { model.合同编号 = GetContractId(model); return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Added, IEnumMessageCode.addSucess, model.合同编号)); } else { return(PartialView()); } }
public ActionResult DelDirectory(int id) { C_directories model = MSSQLManager.GetDmodel().C_directories.FirstOrDefault(C => C.id == id); return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Deleted, IEnumMessageCode.addSucess, model.type, IEnumMessageCode.back, "ListDirectory")); }
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")); }
public ActionResult DelAreaCode(int id) { 区域代码 model = MSSQLManager.GetDmodel().区域代码.FirstOrDefault(C => C.id == id); return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Deleted, IEnumMessageCode.DeleteSuccess, model.area, IEnumMessageCode.back, "ListAreaCode")); }
public ActionResult DelContracts(long id) { 合同记录 model = MSSQLManager.GetDmodel().合同记录.FirstOrDefault(c => c.id == id); return(MSSQLManager.getMsslManager().SaveModel(model, EntityState.Deleted, IEnumMessageCode.DeleteSuccess, model.合同编号, IEnumMessageCode.back, "ListContracts")); }