修改入组稽查

Test.EIImageViewer
hang 2022-08-24 11:38:57 +08:00
parent 5fd1737ffc
commit d86e2aac70
1 changed files with 8 additions and 5 deletions

View File

@ -697,9 +697,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var entity = item.Entity as Enroll;
var doctor = await _dbContext.Doctor.FirstOrDefaultAsync(x => x.Id == entity.DoctorId);
var readingCategoryList = await _dbContext.EnrollReadingCategory.Where(x => x.EnrollId == entity.Id).Select(t=>t.ReadingCategory).ToListAsync();
await InsertInspection<Enroll>(item.Entity as Enroll, type, x => new InspectionConvertDTO()
{
GeneralId = x.Id,
ObjectRelationParentId = x.TrialId
}, new
{
//父层级的数据 暂时没有记录稽查 所以这里必须查
@ -708,11 +709,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common
Email = doctor.EMail,
IsUploadedACKSOW = entity.AttachmentId != Guid.Empty
IsUploadedACKSOW = entity.AttachmentId != Guid.Empty,
ReadingCategoryList=readingCategoryList
});
}
//独立阅片人 状态修改 上传SoW
//独立阅片人 状态修改 上传SoW 子对象稽查记录到父对象 要求 记录的数据一致
if (entitys.Any(x => x.Entity.GetType() == typeof(EnrollReadingCategory)))
{
@ -723,6 +725,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
await InsertInspection<Enroll>(enroll, type, x => new InspectionConvertDTO()
{
GeneralId = enroll.Id,
ObjectRelationParentId = x.TrialId
}, new
{
//父层级的数据 暂时没有记录稽查 所以这里必须查