IRC_NewDev
parent
6a60e4696b
commit
e9e4b45823
|
@ -1920,11 +1920,14 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TaskStudy)))
|
||||
{
|
||||
var entity = item.Entity as TaskStudy;
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
var armEnum = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).Select(x => x.ArmEnum).FirstOrDefaultAsync();
|
||||
await InsertInspection<TaskStudy>(item.Entity as TaskStudy, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
ObjectRelationParentId = x.VisitTaskId
|
||||
ObjectRelationParentId = x.VisitTaskId,
|
||||
},new {
|
||||
ArmEnum= armEnum,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1976,9 +1979,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
|
||||
var extraIdentification = string.Empty;
|
||||
|
||||
Arm armEnum = Arm.SingleReadingArm;
|
||||
if (entity.VisitTaskId!=null)
|
||||
{
|
||||
extraIdentification = "/VisitTask";
|
||||
armEnum = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).Select(x => x.ArmEnum).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
var trialid = await _dbContext.NoneDicomStudy.Where(x => x.Id == entity.NoneDicomStudyId).Select(x => x.TrialId).FirstOrDefaultAsync();
|
||||
|
@ -1989,6 +1994,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
TrialId= trialid,
|
||||
ObjectRelationParentId = x.VisitTaskId,
|
||||
ExtraIndentification = extraIdentification
|
||||
}, new
|
||||
{
|
||||
ArmEnum = armEnum,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue