更新202612
This commit is contained in:
@@ -1625,6 +1625,7 @@ namespace TabletTester2025.ViewModels
|
||||
throw new InvalidOperationException("硬度测试已停止,未保存结果");
|
||||
|
||||
ApplyHardnessStatistics(count);
|
||||
AddHardnessGroupSummaryRow();
|
||||
resultReady = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1775,6 +1776,29 @@ namespace TabletTester2025.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private void AddHardnessGroupSummaryRow()
|
||||
{
|
||||
var stats = TestCalculationService.CalculateHardness(
|
||||
_hardnessResults,
|
||||
HardnessInternalMin,
|
||||
HardnessInternalMax,
|
||||
_hardnessResults.Count);
|
||||
|
||||
HardnessDisplaySamplePoints.Add(new HardnessDisplaySamplePoint
|
||||
{
|
||||
IsSummaryRow = true,
|
||||
GroupNo = _currentHardnessGroupNo,
|
||||
CumulativeNo = 0,
|
||||
SequenceNo = 0,
|
||||
Value = 0,
|
||||
DeviationFromAverage = 0,
|
||||
GroupAverage = stats.Average,
|
||||
GroupAverageDeviation = stats.AverageDeviation,
|
||||
GroupRSD = stats.RsdPercent,
|
||||
RecordedAt = DateTime.MinValue
|
||||
});
|
||||
}
|
||||
|
||||
/// 脆碎度测试主逻辑(实时状态显示)
|
||||
|
||||
private async Task RunFriabilityAsync()
|
||||
|
||||
Reference in New Issue
Block a user