导出百分比修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
eef764dd90
commit
6d11fc68b4
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue