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