Compare commits

..

No commits in common. "7af5249e9c1ce169905d2efd7a69dc52a1a43e3b" and "860a09f6e842fd808e2e19fda9634e49dc1438d5" have entirely different histories.

1 changed files with 19 additions and 1 deletions

View File

@ -646,7 +646,25 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
else if (calculate.GetDecimalNullFun != null)
{
var value = await calculate.GetDecimalNullFun(inDto);
item.Answer = value == null ? string.Empty : value.Value.ToString();
if (value == null)
{
if (typeNAList.Contains(item.QuestionType ?? QuestionType.SOD))
{
item.Answer = nameof(YesOrNoOrNa.NA);
}
else
{
item.Answer = this.nAString;
}
}
else
{
item.Answer = value==null?string.Empty: value.ToString();
}
}
else if (calculate.GetStringFun != null)
{