Compare commits
2 Commits
c49bd189b6
...
8bbe424456
Author | SHA1 | Date |
---|---|---|
|
8bbe424456 | |
|
dd35e37e65 |
|
@ -3245,20 +3245,30 @@ 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();
|
||||||
var liverSegmentation = await _dbContext.ReadingTableQuestionAnswer.Where(x => x.RowId == entity.RowId && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.liverSegmentation).Select(x => x.Answer).FirstOrDefaultAsync();
|
var liverSegmentation = await _dbContext.ReadingTableQuestionAnswer.Where(x => x.RowId == entity.RowId && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.liverSegmentation).Select(x => x.Answer).FirstOrDefaultAsync();
|
||||||
|
|
||||||
await InsertInspection<ReadingTaskQuestionMark>(entity, type, x => new InspectionConvertDTO()
|
var generalId=new Guid();
|
||||||
|
if (entity.TableQuestionId == null && entity.QuestionId == null)
|
||||||
{
|
{
|
||||||
VisitTaskId = entity.VisitTaskId,
|
generalId = entity.Id;
|
||||||
GeneralId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.TableQuestionId.ToString()),
|
}
|
||||||
ObjectRelationParentId = entity.VisitTaskId,
|
else
|
||||||
|
{
|
||||||
|
generalId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.TableQuestionId.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
}, new
|
await InsertInspection<ReadingTaskQuestionMark>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
QuestionName = questionName,
|
VisitTaskId = entity.VisitTaskId,
|
||||||
RowMark = rowMark,
|
GeneralId = generalId,
|
||||||
TableQuestionName = tableQuestionName,
|
ObjectRelationParentId = entity.VisitTaskId,
|
||||||
Answer = answer,
|
|
||||||
LiverSegmentation = liverSegmentation,
|
}, new
|
||||||
}, _userInfo.AuditIdentification);
|
{
|
||||||
|
QuestionName = questionName,
|
||||||
|
RowMark = rowMark,
|
||||||
|
TableQuestionName = tableQuestionName,
|
||||||
|
Answer = answer,
|
||||||
|
LiverSegmentation = liverSegmentation,
|
||||||
|
}, _userInfo.AuditIdentification);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue