稽查保存Ivus和Oct

Temp_Event_IRC_Met8
he 2025-06-23 14:36:46 +08:00
parent 6374781d26
commit 1b4bc3690a
1 changed files with 21 additions and 0 deletions

View File

@ -3232,10 +3232,31 @@ namespace IRaCIS.Core.Infra.EFCore.Common
entity.RowMark = entity.OrderMark + entity.RowIndex.GetLesionMark(); entity.RowMark = entity.OrderMark + entity.RowIndex.GetLesionMark();
string extraIdentification = string.Empty;
if (type == AuditOpt.Add)
{
var readingQuestion = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == entity.QuestionId).FirstOrDefaultAsync();
List<LesionType?> lesionTypeList = new List<LesionType?>()
{
LesionType.MatchValues,
LesionType.PatchDataStatistics,
LesionType.PAV,
LesionType.FCT,
LesionType.LipidAngle,
};
if (lesionTypeList.Contains(readingQuestion.LesionType))
{
extraIdentification = "/" + readingQuestion.LesionType.GetEnumNullInt();
}
}
await InsertInspection<ReadingTableAnswerRowInfo>(entity, type, x => new InspectionConvertDTO() await InsertInspection<ReadingTableAnswerRowInfo>(entity, type, x => new InspectionConvertDTO()
{ {
ExtraIndentification = extraIdentification,
VisitTaskId = x.VisitTaskId, VisitTaskId = x.VisitTaskId,
ObjectRelationParentId = x.VisitTaskId, ObjectRelationParentId = x.VisitTaskId,