OCT IVUS 修改1
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2026-03-16 14:46:03 +08:00
parent 02a1ffe8b7
commit 991f1554ec
6 changed files with 123 additions and 44 deletions
@@ -131,6 +131,23 @@ namespace IRaCIS.Core.Infra.EFCore.Common
}
}
public static string DecimalNullToString (this decimal? value,int ? digitPlaces)
{
digitPlaces = digitPlaces ?? 0;
if (value==null)
{
return string.Empty;
}
if (digitPlaces == -1)
{
return value.Value.ToString();
}
else
{
return decimal.Round(value.Value, digitPlaces.Value, MidpointRounding.AwayFromZero).ToString("F" + digitPlaces.ToString());
}
}
public static Dictionary<ReadingCategory, decimal> TaskNumDic = new Dictionary<ReadingCategory, decimal>()
{
{ReadingCategory.Visit, 0 },