2023-06-08 17:34:02 +08:00
|
|
|
|
<UserControl
|
|
|
|
|
x:Class="SicUI.Models.PMs.PMMfcRorView"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:cal="http://www.caliburn.org"
|
2023-07-04 13:21:07 +08:00
|
|
|
|
xmlns:cvt="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
|
|
|
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
|
|
xmlns:local="clr-namespace:SicUI.Models.PMs"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
d:DesignHeight="800"
|
2023-06-12 14:35:24 +08:00
|
|
|
|
d:DesignWidth="1800"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
mc:Ignorable="d">
|
2023-06-05 14:39:23 +08:00
|
|
|
|
<UserControl.Resources>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
|
<Setter Property="FontSize" Value="15" />
|
|
|
|
|
<Setter Property="TextAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="TextWrapping" Value="Wrap" />
|
|
|
|
|
<Setter Property="Margin" Value="3" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Style TargetType="Border">
|
|
|
|
|
<Setter Property="Background" Value="#FFD0DEEB" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="Gray" />
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="1,0,1,1" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<Style x:Key="InfBorder" TargetType="Border">
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Setter Property="Background" Value="White" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="Gray" />
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="0,0,1,1" />
|
|
|
|
|
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Style>
|
|
|
|
|
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Style TargetType="TextBox">
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="FontSize" Value="15" />
|
|
|
|
|
<Setter Property="Margin" Value="3" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Style>
|
|
|
|
|
|
2023-06-09 18:31:58 +08:00
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
2023-06-12 14:35:24 +08:00
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
2023-06-09 18:31:58 +08:00
|
|
|
|
</Style>
|
2023-06-05 14:39:23 +08:00
|
|
|
|
|
2023-07-04 13:21:07 +08:00
|
|
|
|
<cvt:ColorConverter_IsTestOK x:Key="ColorConverter_IsTestOK" />
|
2023-07-03 09:12:26 +08:00
|
|
|
|
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2023-06-12 14:35:24 +08:00
|
|
|
|
<ColumnDefinition Width="350" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
2023-06-27 18:24:31 +08:00
|
|
|
|
<RowDefinition Height="300" />
|
2023-06-28 14:09:59 +08:00
|
|
|
|
<RowDefinition Height="200" />
|
2023-06-09 18:31:58 +08:00
|
|
|
|
<RowDefinition Height="90" />
|
|
|
|
|
<RowDefinition Height="*" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<StackPanel
|
|
|
|
|
Width="320"
|
|
|
|
|
Margin="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Orientation="Vertical">
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Height="30"
|
|
|
|
|
Background="#FF243664"
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
CornerRadius="8,8,0,0">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Padding="8,0,0,0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
Text="基准MFC" />
|
|
|
|
|
</Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<StackPanel Width="200" HorizontalAlignment="Left">
|
2023-06-05 14:39:23 +08:00
|
|
|
|
<Border BorderThickness="1,0,1,1">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="基准MFC" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
2023-06-12 14:35:24 +08:00
|
|
|
|
<Border BorderThickness="1,0,1,1">
|
|
|
|
|
<TextBlock Text="腔体压差(mbar)" />
|
|
|
|
|
</Border>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="压力P1(mbar)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="压力P2(mbar)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="压力P3(mbar)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="压力P4(mbar)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
2023-06-12 14:35:24 +08:00
|
|
|
|
<TextBlock Text="腔体平均压差(mbar)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="MFC实际流量(sccm)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<TextBlock Text="MFC设定流量(sccm)" />
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
2023-06-27 18:24:31 +08:00
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="腔体体积(ml)" />
|
|
|
|
|
</Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Width="120" HorizontalAlignment="Left">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<Border Background="#FFD6D6D6" BorderThickness="0,0,1,1">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.Name, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-12 14:35:24 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" BorderThickness="0,0,1,1">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.MaintainPressureDifference, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.Pressure1, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.Pressure2, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.Pressure3, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.Pressure4, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.MeanDifferencePressure, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.ActualFlow, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.SetFlow, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
2023-06-27 18:24:31 +08:00
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="{Binding StandardMfcRorData.Volume, StringFormat=0.00}"
|
|
|
|
|
TextAlignment="Center" />
|
|
|
|
|
</Border>
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Width="320"
|
|
|
|
|
Margin="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Orientation="Vertical">
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
|
Height="30"
|
|
|
|
|
Background="#FF243664"
|
2023-06-07 10:10:59 +08:00
|
|
|
|
BorderThickness="0"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
CornerRadius="8,8,0,0">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Padding="8,0,0,0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
Text="Set" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<StackPanel Width="200" HorizontalAlignment="Left">
|
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="反应腔温度(K)" />
|
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="压力记录时间间隔(s)" />
|
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="设定流量(sccm)" />
|
|
|
|
|
</Border>
|
2023-06-28 14:09:59 +08:00
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="压力(mbar)" />
|
|
|
|
|
</Border>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="设定为标准MFC" />
|
|
|
|
|
</Border>
|
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="MFC量程(sccm)" />
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Width="120">
|
|
|
|
|
<Border Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBox Text="{Binding SelectedMfcRorData.Temperature, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBox Text="{Binding SelectedMfcRorData.Interval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Style="{StaticResource InfBorder}">
|
2023-06-13 11:23:42 +08:00
|
|
|
|
<TextBox Text="{Binding SelectedMfcRorData.SetFlow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
2023-06-28 14:09:59 +08:00
|
|
|
|
<Border Style="{StaticResource InfBorder}">
|
|
|
|
|
<TextBox Text="{Binding SelectedMfcRorData.BasePressure, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
|
</Border>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Border>
|
|
|
|
|
<CheckBox
|
|
|
|
|
Margin="5"
|
|
|
|
|
VerticalContentAlignment="Center"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
IsChecked="{Binding SelectedMfcRorData.IsStandardMfc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
2023-06-08 17:34:02 +08:00
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#FFD6D6D6" Style="{StaticResource InfBorder}">
|
|
|
|
|
<TextBlock Text="{Binding SelectedMfcRorData.Scale}" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Height="20" />
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Margin="5"
|
|
|
|
|
Orientation="Vertical">
|
|
|
|
|
<Border
|
|
|
|
|
Width="320"
|
2023-06-07 10:10:59 +08:00
|
|
|
|
Margin="0,0,0,10"
|
|
|
|
|
HorizontalAlignment="Left"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
BorderThickness="0"
|
|
|
|
|
CornerRadius="8,8,0,0">
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
<Border
|
|
|
|
|
Background="#FF243664"
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
CornerRadius="8,8,0,0">
|
|
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
Text="Set" />
|
|
|
|
|
</Border>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
|
|
<ComboBox
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Width="160"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
Height="30"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Margin="10,5,0,5"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
FontSize="15"
|
2023-07-03 09:12:26 +08:00
|
|
|
|
ItemsSource="{Binding MfcNameList}"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
SelectedItem="{Binding SelectedMfcRorData.Name}">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<cal:ActionMessage MethodName="MfcSelectionChanged" />
|
2023-06-07 10:10:59 +08:00
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
|
|
<Button
|
2023-06-08 17:34:02 +08:00
|
|
|
|
Width="80"
|
|
|
|
|
Height="30"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Margin="35,5,0,5"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
Content="Start">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="Click">
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<cal:ActionMessage MethodName="StartMfcRor" />
|
2023-06-07 10:10:59 +08:00
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</Button>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
|
2023-06-07 10:10:59 +08:00
|
|
|
|
</StackPanel>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
|
2023-06-07 10:10:59 +08:00
|
|
|
|
</StackPanel>
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Border>
|
2023-06-09 18:31:58 +08:00
|
|
|
|
</StackPanel>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
|
2023-06-09 18:31:58 +08:00
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
Margin="5"
|
|
|
|
|
Orientation="Vertical">
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<Border
|
|
|
|
|
Width="320"
|
|
|
|
|
Margin="0,10,0,0"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
BorderThickness="1,0,1,1"
|
|
|
|
|
CornerRadius="8,8,0,0">
|
|
|
|
|
<StackPanel Width="302" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Margin="0,15">
|
|
|
|
|
<StackPanel Height="40" Orientation="Horizontal">
|
|
|
|
|
<TextBlock Width="75" Text="Start Time" />
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<WindowsFormsHost
|
2023-06-05 14:39:23 +08:00
|
|
|
|
Width="170"
|
|
|
|
|
Height="22"
|
2023-06-07 10:10:59 +08:00
|
|
|
|
Margin="20,0,0,0"
|
2023-06-05 14:39:23 +08:00
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontFamily="Arial"
|
|
|
|
|
FontSize="14">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<forms:DateTimePicker
|
2023-06-09 18:31:58 +08:00
|
|
|
|
x:Name="wfTimeFrom"
|
2023-06-05 14:39:23 +08:00
|
|
|
|
CustomFormat="yyyy/MM/dd HH:mm:ss"
|
|
|
|
|
Format="Custom"
|
2023-06-07 10:10:59 +08:00
|
|
|
|
Value="2023-1-1" />
|
|
|
|
|
</WindowsFormsHost>
|
|
|
|
|
</StackPanel>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
<StackPanel
|
|
|
|
|
Height="40"
|
|
|
|
|
Margin="0,5,0,0"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<TextBlock Width="75" Text="End Time" />
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<WindowsFormsHost
|
2023-06-05 14:39:23 +08:00
|
|
|
|
Width="170"
|
|
|
|
|
Height="22"
|
2023-06-07 10:10:59 +08:00
|
|
|
|
Margin="20,0,0,0"
|
2023-06-05 14:39:23 +08:00
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontFamily="Arial"
|
|
|
|
|
FontSize="14">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<forms:DateTimePicker
|
2023-06-05 14:39:23 +08:00
|
|
|
|
x:Name="wfTimeTo"
|
|
|
|
|
CustomFormat="yyyy/MM/dd HH:mm:ss"
|
|
|
|
|
Format="Custom"
|
2023-06-07 10:10:59 +08:00
|
|
|
|
Value="2023-1-1" />
|
|
|
|
|
</WindowsFormsHost>
|
|
|
|
|
</StackPanel>
|
2023-06-09 18:31:58 +08:00
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Margin="5"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Orientation="Horizontal">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<Button
|
2023-06-08 17:34:02 +08:00
|
|
|
|
Width="100"
|
|
|
|
|
Height="30"
|
|
|
|
|
Margin="5,0,5,0"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
HorizontalAlignment="Center"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
Content="Query">
|
2023-06-07 10:10:59 +08:00
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="Click">
|
2023-07-03 18:05:21 +08:00
|
|
|
|
<cal:ActionMessage MethodName="QueryData" />
|
2023-06-07 10:10:59 +08:00
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</Button>
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</StackPanel>
|
2023-06-09 18:31:58 +08:00
|
|
|
|
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</StackPanel>
|
2023-06-07 10:10:59 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
2023-06-08 17:34:02 +08:00
|
|
|
|
|
2023-06-09 18:31:58 +08:00
|
|
|
|
<DataGrid
|
2023-07-03 09:12:26 +08:00
|
|
|
|
Grid.RowSpan="2"
|
2023-06-08 17:34:02 +08:00
|
|
|
|
Grid.Column="1"
|
2023-07-03 09:12:26 +08:00
|
|
|
|
Width="1315"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
CanUserAddRows="False"
|
2023-07-03 18:05:21 +08:00
|
|
|
|
ItemsSource="{Binding DataGridMfcRorList}"
|
2023-06-12 14:35:24 +08:00
|
|
|
|
LoadingRow="DataGrid_LoadingRow"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
ScrollViewer.CanContentScroll="True">
|
|
|
|
|
<DataGrid.Columns>
|
2023-06-12 14:35:24 +08:00
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="50"
|
|
|
|
|
Binding="{Binding Path=Header, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGridRow}}}"
|
|
|
|
|
Header="No" />
|
2023-06-09 18:31:58 +08:00
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
2023-06-12 14:35:24 +08:00
|
|
|
|
Width="100"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Binding="{Binding Name}"
|
|
|
|
|
Header="MFCName"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
2023-06-12 14:35:24 +08:00
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="130"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding StartTime, StringFormat='yyyy-MM-dd HH:mm:ss'}"
|
2023-06-12 14:35:24 +08:00
|
|
|
|
Header="开始时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="130"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding EndTime, StringFormat='yyyy-MM-dd HH:mm:ss'}"
|
2023-06-12 14:35:24 +08:00
|
|
|
|
Header="结束时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding Pressure1, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="P1"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding Pressure2, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="P2"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding Pressure3, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="P3"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding Pressure4, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="P4"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding MeanDifferencePressure, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="腔体平均压差"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding ActualFlow, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="实际流量"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding SetFlow, StringFormat=0.00}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="设定流量"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="100"
|
2023-06-13 11:23:42 +08:00
|
|
|
|
Binding="{Binding Deviation, StringFormat={}{0:F2}%}"
|
2023-06-09 18:31:58 +08:00
|
|
|
|
Header="偏差"
|
2023-06-12 14:35:24 +08:00
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTextColumn.CellStyle>
|
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Style.Triggers>
|
2023-07-04 09:18:14 +08:00
|
|
|
|
<DataTrigger Binding="{Binding Result}" Value="OK">
|
|
|
|
|
<Setter Property="Background" Value="LightGreen" />
|
|
|
|
|
</DataTrigger>
|
2023-07-03 09:12:26 +08:00
|
|
|
|
<DataTrigger Binding="{Binding Result}" Value="NG">
|
2023-07-04 09:18:14 +08:00
|
|
|
|
<Setter Property="Background" Value="LightCoral" />
|
2023-06-12 14:35:24 +08:00
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGridTextColumn.CellStyle>
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
|
|
|
|
|
<DataGridTemplateColumn Width="80" Header="基准MFC">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<CheckBox
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
IsChecked="{Binding IsStandardMfc}"
|
|
|
|
|
IsEnabled="False" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
2023-06-09 18:31:58 +08:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
2023-06-12 14:35:24 +08:00
|
|
|
|
|
|
|
|
|
|
2023-06-09 18:31:58 +08:00
|
|
|
|
</DataGrid>
|
2023-06-12 14:35:24 +08:00
|
|
|
|
|
2023-07-03 18:05:21 +08:00
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="2">
|
2023-07-03 09:12:26 +08:00
|
|
|
|
<Border
|
|
|
|
|
Margin="3"
|
|
|
|
|
BorderBrush="Gray"
|
|
|
|
|
BorderThickness="0,0,0,3">
|
|
|
|
|
<Label FontSize="15" FontWeight="Black">ROR测试结果</Label>
|
|
|
|
|
</Border>
|
2023-07-03 18:05:21 +08:00
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
Width="70"
|
|
|
|
|
Height="30"
|
|
|
|
|
Margin="3"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Content="Clear">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="Click">
|
|
|
|
|
<cal:ActionMessage MethodName="ClearMfcRorData" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="3" Grid.Column="2">
|
2023-07-03 09:12:26 +08:00
|
|
|
|
<ItemsControl ItemsSource="{Binding MfcRorList}">
|
|
|
|
|
<!-- 指定子项目容器为WrapPanel控件 -->
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<WrapPanel />
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<!-- 指定子项目模板 -->
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border
|
|
|
|
|
Margin="3"
|
|
|
|
|
BorderBrush="Gray"
|
|
|
|
|
BorderThickness="1">
|
|
|
|
|
<StackPanel Height="32" Orientation="Horizontal">
|
|
|
|
|
<Border
|
|
|
|
|
Width="14"
|
|
|
|
|
Height="14"
|
|
|
|
|
Margin="10,0,2,0"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="{Binding Result, Converter={StaticResource ColorConverter_IsTestOK}}"
|
|
|
|
|
CornerRadius="7" />
|
|
|
|
|
<Label
|
2023-07-03 18:05:21 +08:00
|
|
|
|
Width="50"
|
|
|
|
|
Margin="0,0,0,0"
|
2023-07-03 09:12:26 +08:00
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Content="{Binding Name}"
|
|
|
|
|
Foreground="{Binding Result, Converter={StaticResource ColorConverter_IsTestOK}}" />
|
2023-07-03 18:05:21 +08:00
|
|
|
|
<TextBlock
|
|
|
|
|
Width="50"
|
|
|
|
|
Margin="0,0,0,0"
|
2023-07-03 09:12:26 +08:00
|
|
|
|
VerticalAlignment="Center"
|
2023-07-03 18:05:21 +08:00
|
|
|
|
Foreground="{Binding Result, Converter={StaticResource ColorConverter_IsTestOK}}"
|
|
|
|
|
Text="{Binding Deviation, StringFormat={}{0:F2}%}" />
|
2023-07-03 09:12:26 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
2023-06-05 14:39:23 +08:00
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|