@@ -941,19 +941,13 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
var eEMLumenSum = inDto.QuestionInfo.Where(x => x.QuestionType == QuestionType.EEMSubLumenSum).Select(x => x.Answer).FirstOrDefault().IsNullOrEmptyReturn0();
|
||||
var eEMSum = inDto.QuestionInfo.Where(x => x.QuestionType == QuestionType.EEMSum).Select(x => x.Answer).FirstOrDefault().IsNullOrEmptyReturn0();
|
||||
|
||||
string pav = string.Empty;
|
||||
decimal pav = 0;
|
||||
if (eEMSum != 0)
|
||||
{
|
||||
pav = (eEMLumenSum * 100 / eEMSum).ToString();
|
||||
pav = eEMLumenSum * 100 / eEMSum;
|
||||
}
|
||||
|
||||
if (inDto.DigitPlaces != -1)
|
||||
{
|
||||
|
||||
pav = decimal.Round(decimal.Parse(pav ?? "0"), inDto.DigitPlaces, MidpointRounding.AwayFromZero).ToString("F" + inDto.DigitPlaces.ToString());
|
||||
}
|
||||
|
||||
return decimal.Parse(pav);
|
||||
return pav;
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
|
||||
Reference in New Issue
Block a user