三级安全培训记录 重复提交问题 判断处理
This commit is contained in:
parent
7a46f583d0
commit
f29a5ed071
@ -41,8 +41,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
{
|
||||
|
||||
|
||||
List<T_FM_NOTIFICATION_TASK> sendNoticeList = new List<T_FM_NOTIFICATION_TASK>();
|
||||
List<T_SE_NEW_USER_DETAIL_FILE> detailFiles = new List<T_SE_NEW_USER_DETAIL_FILE>();
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
@ -69,6 +67,20 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
{
|
||||
throw new Exception("学时不能为0!");
|
||||
}
|
||||
|
||||
if (entity.TaskID == Guid.Empty)
|
||||
{
|
||||
throw new Exception("获取待办信息失败,请到主页处理待办!");
|
||||
}
|
||||
else
|
||||
{
|
||||
finishNotice = GetEntity<T_FM_NOTIFICATION_TASK>(e => e.ID == entity.TaskID);
|
||||
if (finishNotice.SOURCE_FORMCODE == "SE061_SHOWPRINT")
|
||||
{
|
||||
throw new Exception("请勿重复提交!");
|
||||
}
|
||||
}
|
||||
|
||||
BaseFilter bf = new BaseFilter(entity.ORG_ID);
|
||||
bf.Include = new string[] { "Nav_Parent.Nav_Parent" };
|
||||
var alldeps = GetEntities<T_FM_DEPARTMENT>(t => t.ENABLE_STATUS == 0, bf);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user