线下考核,考核结果必填

This commit is contained in:
wyw 2026-05-13 08:53:13 +08:00
parent 876269e95e
commit f6f822448f

View File

@ -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>();