更新12
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
|
||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel>
|
||||
<GroupBox Header="硬度内控">
|
||||
<GroupBox Header="硬度">
|
||||
<StackPanel>
|
||||
<WrapPanel>
|
||||
<StackPanel Style="{StaticResource ParamRow}">
|
||||
|
||||
@@ -133,9 +133,9 @@ namespace TabletTester2025
|
||||
private static void ValidateParameters(PharmaParameters p)
|
||||
{
|
||||
if (!double.IsFinite(p.HardnessMin_N) || !double.IsFinite(p.HardnessMax_N))
|
||||
throw new InvalidOperationException("硬度内控参数必须为有效数字。");
|
||||
throw new InvalidOperationException("硬度参数必须为有效数字。");
|
||||
if (p.HardnessMin_N < 0 || p.HardnessMax_N <= p.HardnessMin_N)
|
||||
throw new InvalidOperationException("硬度内控上限必须大于下限。");
|
||||
throw new InvalidOperationException("硬度上限必须大于下限。");
|
||||
if (p.HardnessTestCount <= 0)
|
||||
throw new InvalidOperationException("硬度测试次数必须大于0。");
|
||||
if (!double.IsFinite(p.FriabilityTargetRpm) || !double.IsFinite(p.FriabilityTargetTimeMin) || !double.IsFinite(p.FriabilityMaxLossPercent))
|
||||
|
||||
Reference in New Issue
Block a user