2026-06-13 14:16:34 +08:00
|
|
|
|
<Window x:Class="AciTester.Views.ConfigWindow"
|
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2026-06-17 23:08:06 +08:00
|
|
|
|
Title="参数校准配置 - Ctrl+P" Height="550" Width="520"
|
2026-06-13 14:16:34 +08:00
|
|
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
|
|
<Grid Margin="10">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 流量校准 -->
|
2026-06-13 14:16:34 +08:00
|
|
|
|
<GroupBox Header="流量校准" Grid.Row="0">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
|
|
|
|
<TextBlock Text="流量系数:" Width="80" VerticalAlignment="Center"/>
|
|
|
|
|
|
<TextBox Text="{Binding Calibration.FlowCalibration}" Width="100"/>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
<TextBlock Text=" 保护低限:" Margin="20,0,0,0"/>
|
2026-06-13 14:16:34 +08:00
|
|
|
|
<TextBox Text="{Binding Calibration.FlowLowLimit}" Width="80"/>
|
|
|
|
|
|
<TextBlock Text="高限:" Margin="5,0,0,0"/>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
<TextBox Text="{Binding Calibration.FlowHighLimit}" Width="80"/>
|
2026-06-13 14:16:34 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 温度校准 -->
|
2026-06-13 14:16:34 +08:00
|
|
|
|
<GroupBox Header="温度校准" Grid.Row="1" Margin="0,10">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
|
|
|
|
<TextBlock Text="温度系数:" Width="80"/>
|
|
|
|
|
|
<TextBox Text="{Binding Calibration.TemperatureCalibration}" Width="100"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 压力校准(泵端) -->
|
2026-06-13 14:16:34 +08:00
|
|
|
|
<GroupBox Header="压力校准(泵端)" Grid.Row="2">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
|
|
|
|
<TextBlock Text="泵端压力系数:" Width="120"/>
|
|
|
|
|
|
<TextBox Text="{Binding Calibration.PumpPressureCalibration}" Width="100"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 压力校准(撞击器端) -->
|
2026-06-13 14:16:34 +08:00
|
|
|
|
<GroupBox Header="压力校准(撞击器端)" Grid.Row="3" Margin="0,10">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
|
|
|
|
<TextBlock Text="撞击器端压力系数:" Width="140"/>
|
|
|
|
|
|
<TextBox Text="{Binding Calibration.ImpactorPressureCalibration}" Width="100"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-06-16 11:53:02 +08:00
|
|
|
|
|
2026-06-17 23:08:06 +08:00
|
|
|
|
<!-- 温度保护 -->
|
2026-06-16 11:53:02 +08:00
|
|
|
|
<GroupBox Header="温度保护" Grid.Row="4" Margin="0,10">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
|
|
|
|
<TextBlock Text="温度保护值(℃):" Width="120"/>
|
|
|
|
|
|
<TextBox Text="{Binding Calibration.TemperatureProtect}" Width="100"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 校准开关(新增) -->
|
|
|
|
|
|
<GroupBox Header="校准开关" Grid.Row="5" Margin="0,10">
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Calibration.FlowCalibrationEnabled}" Content="流量校准 (M1300)" Margin="5"/>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Calibration.PumpPressureCalibrationEnabled}" Content="压力校准负压泵端 (M1302)" Margin="5"/>
|
|
|
|
|
|
<CheckBox IsChecked="{Binding Calibration.ImpactorPressureCalibrationEnabled}" Content="压力校准撞击器端 (M1303)" Margin="5"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 按钮区域(原 Grid.Row="4" 调整为 Row="6") -->
|
|
|
|
|
|
<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10">
|
2026-06-13 14:16:34 +08:00
|
|
|
|
<Button Command="{Binding LoadConfigCommand}" Content="读取" Width="80" Margin="5"/>
|
|
|
|
|
|
<Button Command="{Binding SaveConfigCommand}" Content="保存" Width="80" Margin="5"/>
|
2026-06-17 23:08:06 +08:00
|
|
|
|
<Button Click="CloseWindow" Content="关闭" Width="80" Margin="5"/>
|
2026-06-13 14:16:34 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Window>
|