更新20260622

This commit is contained in:
GukSang.Jin
2026-06-22 10:38:51 +08:00
parent a4f4fdd007
commit 7241d043c0

View File

@@ -410,6 +410,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel
return;
}
var actualLoadForReport = FormatActualLoad(points);
var report = new SlipReportExport(
TestNumber,
OperatorName,
@@ -421,7 +422,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel
CurrentMode(),
CurrentSurface(),
TargetLoadText,
ActualLoadText,
actualLoadForReport,
TestSpeedText,
StandardReference,
Samples.ToList(),
@@ -1199,6 +1200,12 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel
? Math.Max(1, targetLoad * MinimumAnalysisLoadRatio)
: 1;
private static string FormatActualLoad(IReadOnlyList<SlipDataPoint> points)
{
var actualLoad = points.Average(point => point.VerticalLoadN);
return $"{actualLoad.ToString("F1", CultureInfo.InvariantCulture)} N";
}
private static bool TryParseLoadValue(string value, out double load)
{
var numeric = new string(value