1
This commit is contained in:
parent
68bf40e59e
commit
992d3b535a
@ -87,6 +87,14 @@ namespace APT.FO.WebApi.Controllers
|
||||
{
|
||||
entity.CODE = "DHZY" + DateTime.Now.ToShortDateString().Replace("/", "") + new Random().Next(1, 999);
|
||||
}
|
||||
if (entity.FIRE_USER_ID == null)
|
||||
{
|
||||
throw new Exception("动火负责人必须填写");
|
||||
}
|
||||
if (entity.SAFE_USER_ID == null)
|
||||
{
|
||||
throw new Exception("安全管理人员必须填写");
|
||||
}
|
||||
var details = entity.Nav_Details;
|
||||
if (details != null && details.Any())
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user