Browse Source

1.修改工厂资料维护BAS001,修正报错信息解析

master
Marvin 1 year ago
parent
commit
ed95566b30
  1. 7
      AMESCoreStudio.Web/Controllers/BASController.cs

7
AMESCoreStudio.Web/Controllers/BASController.cs

@ -375,6 +375,8 @@ namespace AMESCoreStudio.Web.Controllers
return RedirectToAction("Refresh", "Home", new { msg = _msg }); return RedirectToAction("Refresh", "Home", new { msg = _msg });
} }
else else
{
if (result.Errors != null)
{ {
if (result.Errors.Count > 0) if (result.Errors.Count > 0)
{ {
@ -385,6 +387,11 @@ namespace AMESCoreStudio.Web.Controllers
ModelState.AddModelError("error", result.Msg); ModelState.AddModelError("error", result.Msg);
} }
} }
else
{
ModelState.AddModelError("error", result.Msg);
}
}
} }
if (model.FactoryID == 0) if (model.FactoryID == 0)
{ {

Loading…
Cancel
Save