导出百分比修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-11-11 13:20:30 +08:00
parent eef764dd90
commit 6d11fc68b4
2 changed files with 12 additions and 1 deletions

View File

@ -24,6 +24,8 @@ public class TumorCommonQustionInfo
public string TranslateDicName { get; set; }
public ValueUnit? Unit { get; set; }
public ValueOfType? ValueType { get; set; }
}
public class TumorLessionInfo

View File

@ -302,6 +302,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
QuestionName = isEn_Us ? c.ReadingQuestionTrial.QuestionEnName : c.ReadingQuestionTrial.QuestionName,
QuestionValue = c.IsGlobalChange ? c.GlobalChangeAnswer : c.Answer,
TranslateDicName = c.ReadingQuestionTrial.DictionaryCode,
ValueType = c.ReadingQuestionTrial.ValueType,
Unit = c.ReadingQuestionTrial.Unit
}).ToList(),
@ -576,7 +577,15 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
}
else
{
tr.OriginalMeasurements = questionAnswer.QuestionValue;
if (questionAnswer.ValueType == ValueOfType.Percentage)
{
tr.OriginalMeasurements = questionAnswer.QuestionValue +"%";
}
else
{
tr.OriginalMeasurements = questionAnswer.QuestionValue;
}
}
tr.OriginalUnit = translateDataList["ValueUnit"].Where(t => t.Code.ToLower() == ((int?)questionAnswer.Unit)?.ToString().ToLower()).Select(t => isEn_Us ? t.Value : t.ValueCN).FirstOrDefault() ?? String.Empty;