线下考核,考核结果必填
This commit is contained in:
parent
876269e95e
commit
f6f822448f
@ -179,7 +179,21 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (data.Nav_Notify != null && data.Nav_Notify.CHECKTYPE == PlanCheckType.InOffLine)
|
||||
{
|
||||
//参加的就要有考核结果
|
||||
int rowindex = 1;
|
||||
foreach (var item in joinUsers)
|
||||
{
|
||||
if (item.IS_DELETED)
|
||||
continue;
|
||||
if (item.STATUS == SETrainRecordUserStatusEnum.参与 && !item.EXAMINATION_RESULTS.HasValue)
|
||||
{
|
||||
throw new Exception("请填写行【" + rowindex + "】的考核结果!");
|
||||
}
|
||||
rowindex++;
|
||||
}
|
||||
}
|
||||
|
||||
entity.TRAIN_COUNT = joinUsers.Count(t => t.STATUS == SETrainRecordUserStatusEnum.参与);
|
||||
var allSendTitles = new List<string>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user