稽查修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
55b75d7c32
commit
9a6220bda1
|
|
@ -7,6 +7,10 @@ public class Segmentation : BaseFullDeleteAuditEntity
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<Segment> SegmentList { get; set; } = new List<Segment>();
|
public List<Segment> SegmentList { get; set; } = new List<Segment>();
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("VisitTaskId")]
|
||||||
|
public VisitTask VisitTask { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -3631,8 +3631,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
var entity = item.Entity as Segmentation;
|
var entity = item.Entity as Segmentation;
|
||||||
|
|
||||||
|
|
||||||
|
var visitTask = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
await InsertInspection<Segmentation>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<Segmentation>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
|
TrialReadingCriterionId = visitTask != null ? visitTask.TrialReadingCriterionId : null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3645,9 +3648,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
var entity = item.Entity as Segment;
|
var entity = item.Entity as Segment;
|
||||||
|
|
||||||
|
var visitTask = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
await InsertInspection<Segment>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<Segment>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
|
TrialReadingCriterionId = visitTask != null ? visitTask.TrialReadingCriterionId : null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3721,7 +3726,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var segmentation = await _dbContext.Segmentation.Where(x => x.Id == entity.SegmentationId).FirstOrDefaultAsync()?? new Segmentation() { };
|
var segmentation = await _dbContext.Segmentation.Where(x => x.Id == entity.SegmentationId).Include(x=>x.VisitTask).FirstOrDefaultAsync()?? new Segmentation() { };
|
||||||
|
|
||||||
var segment= await _dbContext.Segment.Where(x => x.Id == entity.SegmentId).FirstOrDefaultAsync()?? new Segment() { };
|
var segment= await _dbContext.Segment.Where(x => x.Id == entity.SegmentId).FirstOrDefaultAsync()?? new Segment() { };
|
||||||
|
|
||||||
|
|
@ -3729,12 +3734,17 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
var questionName = await _dbContext.ReadingQuestionTrial.Where(x => x.Id == entity.QuestionId).Select(x => _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName).FirstOrDefaultAsync();
|
var questionName = await _dbContext.ReadingQuestionTrial.Where(x => x.Id == entity.QuestionId).Select(x => _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
|
Guid? trialReadingCriterionId = null;
|
||||||
|
if (segmentation.VisitTask != null)
|
||||||
|
{
|
||||||
|
trialReadingCriterionId= segmentation.VisitTask.TrialReadingCriterionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
await InsertInspection<SegmentBinding>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<SegmentBinding>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
|
TrialReadingCriterionId= trialReadingCriterionId,
|
||||||
},new
|
},new
|
||||||
{
|
{
|
||||||
segmentation.SegmentationName,
|
segmentation.SegmentationName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue