修改入组稽查
parent
5fd1737ffc
commit
d86e2aac70
|
@ -697,9 +697,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
var entity = item.Entity as Enroll;
|
var entity = item.Entity as Enroll;
|
||||||
var doctor = await _dbContext.Doctor.FirstOrDefaultAsync(x => x.Id == entity.DoctorId);
|
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()
|
await InsertInspection<Enroll>(item.Entity as Enroll, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
GeneralId = x.Id,
|
ObjectRelationParentId = x.TrialId
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
//父层级的数据 暂时没有记录稽查 所以这里必须查
|
//父层级的数据 暂时没有记录稽查 所以这里必须查
|
||||||
|
@ -708,11 +709,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
Email = doctor.EMail,
|
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)))
|
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()
|
await InsertInspection<Enroll>(enroll, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
GeneralId = enroll.Id,
|
GeneralId = enroll.Id,
|
||||||
|
ObjectRelationParentId = x.TrialId
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
//父层级的数据 暂时没有记录稽查 所以这里必须查
|
//父层级的数据 暂时没有记录稽查 所以这里必须查
|
||||||
|
|
Loading…
Reference in New Issue