LeakCheckView.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <UserControl x:Class="Aitex.Triton160.UI.Views.LeakCheckView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. mc:Ignorable="d"
  7. d:DesignHeight="800" d:DesignWidth="1250" Background="#669ACC">
  8. <Grid x:Name="grid">
  9. <Grid.Resources>
  10. <BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
  11. <Style TargetType="{x:Type GroupBox}">
  12. <Setter Property="BorderBrush" Value="#D5DFE5" />
  13. <Setter Property="BorderThickness" Value="1" />
  14. <Setter Property="Template">
  15. <Setter.Value>
  16. <ControlTemplate TargetType="{x:Type GroupBox}">
  17. <Grid SnapsToDevicePixels="true">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="6" />
  20. <ColumnDefinition Width="Auto" />
  21. <ColumnDefinition Width="*" />
  22. <ColumnDefinition Width="6" />
  23. </Grid.ColumnDefinitions>
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="Auto" />
  26. <RowDefinition Height="Auto" />
  27. <RowDefinition Height="*" />
  28. <RowDefinition Height="6" />
  29. </Grid.RowDefinitions>
  30. <Border CornerRadius="4" Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" Grid.ColumnSpan="4" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Transparent" Background="{TemplateBinding Background}" />
  31. <Border Name="Header" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1">
  32. <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  33. </Border>
  34. <ContentPresenter Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  35. <Border Grid.Row="1" Grid.RowSpan="3" Grid.ColumnSpan="4" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="3">
  36. <Border.OpacityMask>
  37. <MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
  38. <Binding ElementName="Header" Path="ActualWidth" />
  39. <Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
  40. <Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
  41. </MultiBinding>
  42. </Border.OpacityMask>
  43. </Border>
  44. </Grid>
  45. </ControlTemplate>
  46. </Setter.Value>
  47. </Setter>
  48. </Style>
  49. <!--<Style TargetType="{x:Type TextBox}">
  50. <Setter Property="Template">
  51. <Setter.Value>
  52. <ControlTemplate TargetType="{x:Type TextBox}">
  53. <Border x:Name="border" Width="Auto" Height="Auto" BorderThickness="1" BorderBrush="#FF7F9DB9">
  54. <Grid x:Name="grid" Background="Transparent">
  55. <ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  56. </Grid>
  57. </Border>
  58. </ControlTemplate>
  59. </Setter.Value>
  60. </Setter>
  61. </Style>-->
  62. </Grid.Resources>
  63. <Grid.ColumnDefinitions>
  64. <ColumnDefinition Width="*" />
  65. <ColumnDefinition Width="420" />
  66. <ColumnDefinition Width="1"/>
  67. <ColumnDefinition Width="790"/>
  68. <ColumnDefinition Width="*" />
  69. </Grid.ColumnDefinitions>
  70. <Grid Grid.Column="1" Width="380" HorizontalAlignment="Center" Margin="0,100,0,0" >
  71. <Grid.RowDefinitions>
  72. <RowDefinition Height="50" />
  73. <RowDefinition Height="40" />
  74. <RowDefinition Height="40" />
  75. <RowDefinition Height="40" />
  76. <RowDefinition Height="0" />
  77. <RowDefinition Height="0" />
  78. <RowDefinition Height="0" />
  79. <RowDefinition Height="0" />
  80. <RowDefinition Height="0" />
  81. <RowDefinition Height="50" />
  82. <RowDefinition Height="50" />
  83. <RowDefinition Height="40" />
  84. <RowDefinition Height="40" />
  85. <RowDefinition Height="40" />
  86. <RowDefinition Height="40" />
  87. </Grid.RowDefinitions>
  88. <Grid.ColumnDefinitions>
  89. <ColumnDefinition Width="190" />
  90. <ColumnDefinition Width="90" />
  91. <ColumnDefinition Width="90" />
  92. </Grid.ColumnDefinitions>
  93. <Rectangle Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  94. <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" FontSize="18" TextAlignment="Center" Text="{DynamicResource GlobalLableLeakCheckConfiguration}" Foreground="White" />
  95. <Rectangle Grid.Row="1" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  96. <TextBlock Grid.Row="1" Grid.Column="0" FontSize="17" Text="{DynamicResource GlobalLablePumpDownTime}" Foreground="White" />
  97. <!--<Rectangle Grid.Row="1" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  98. <TextBlock Grid.Row="1" Grid.Column="1" TextAlignment="Center" FontSize="13" Width="88" Height="20" Margin="3" Padding="0,0,0,0" Text="{Binding Path=Rf.TextWorkMode}" />-->
  99. <Rectangle Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  100. <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" IsEnabled="{Binding Path=IsManualMode}" TextAlignment="Center" PreviewTextInput="OnPreviewTextInput" FontSize="15" Width="160" Height="30" Margin="3" Padding="0,4,0,0" Text="{Binding LeakCheckPumpDownTimeSetPoint}" />
  101. <Rectangle Grid.Row="2" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  102. <TextBlock Grid.Row="2" Grid.Column="0" FontSize="17" Text="{DynamicResource GlobalLableLeakCheckTime}" Foreground="White" />
  103. <!--<Rectangle Grid.Row="2" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  104. <TextBlock Grid.Row="2" Grid.Column="1" TextAlignment="Center" FontSize="13" Width="88" Height="20" Margin="3" Padding="0,0,0,0" Text="{Binding Path=Rf.TextWorkMode}" />-->
  105. <Rectangle Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  106. <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" PreviewTextInput="OnPreviewTextInput" TextAlignment="Center" IsEnabled="{Binding Path=IsManualMode}" FontSize="15" Width="160" Height="30" Margin="3" Padding="0,4,0,0" Text="{Binding LeakCheckTimeSetPoint}" />
  107. <Rectangle Grid.Row="3" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  108. <TextBlock Grid.Row="3" Grid.Column="0" FontSize="17" Text="{DynamicResource GlobalLableLeakCheckMode}" Foreground="White" />
  109. <Rectangle Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  110. <ComboBox Text="{Binding Path=LeakCheckModeSetPoint}" IsEnabled="{Binding Path=IsManualMode}" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" FontSize="13" >
  111. <ComboBoxItem>ChamberOnly</ComboBoxItem>
  112. <ComboBoxItem>ChamberAndGasLine</ComboBoxItem>
  113. </ComboBox>
  114. <Rectangle Grid.Row="4" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  115. <TextBlock Grid.Row="4" Grid.Column="0" FontSize="17" Text="MFC1" Foreground="White" />
  116. <Rectangle Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  117. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine1}" />
  118. <Rectangle Grid.Row="5" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  119. <TextBlock Grid.Row="5" Grid.Column="0" FontSize="17" Text="MFC2" Foreground="White" />
  120. <Rectangle Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  121. <CheckBox Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine2}" />
  122. <Rectangle Grid.Row="6" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  123. <TextBlock Grid.Row="6" Grid.Column="0" FontSize="17" Text="MFC3" Foreground="White" />
  124. <Rectangle Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  125. <CheckBox Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine3}" />
  126. <Rectangle Grid.Row="7" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  127. <TextBlock Grid.Row="7" Grid.Column="0" FontSize="17" Text="MFC4" Foreground="White" />
  128. <Rectangle Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  129. <CheckBox Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine4}" />
  130. <Rectangle Grid.Row="8" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  131. <TextBlock Grid.Row="8" Grid.Column="0" FontSize="17" Text="MFC5" Foreground="White" />
  132. <Rectangle Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  133. <CheckBox Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine5}" />
  134. <Rectangle Grid.Row="10" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  135. <TextBlock Grid.Row="10" Grid.Column="0" FontSize="18" Text="{DynamicResource GlobalLableLeakCheckStatus}" Foreground="White" />
  136. <Rectangle Grid.Row="10" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  137. <TextBlock Grid.Row="10" Grid.Column="1" Grid.ColumnSpan="2" TextAlignment="Center" FontSize="13" Margin="3" Padding="0,0,0,0" Text="{Binding Path=Status}" />
  138. <Rectangle Grid.Row="11" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  139. <TextBlock Grid.Row="11" Grid.Column="0" FontSize="18" Text="{DynamicResource GlobalLableLeakCheckTime}" Foreground="White" />
  140. <Rectangle Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  141. <TextBlock Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="2" TextAlignment="Center" FontSize="13" Margin="3" Padding="0,0,0,0" Text="{Binding Path=LeakCheckElapseTime}" />
  142. <Rectangle Grid.Row="12" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  143. <TextBlock Grid.Row="12" Grid.Column="0" FontSize="18" Text="{DynamicResource GlobalLableLeakCheckPressure}" Foreground="White" />
  144. <Rectangle Grid.Row="12" Grid.Column="1" Grid.ColumnSpan="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  145. <TextBlock Grid.Row="12" Grid.Column="1" Grid.ColumnSpan="2" TextAlignment="Center" FontSize="13" Margin="3" Padding="0,0,0,0" Text="{Binding Path=Pressure}" />
  146. </Grid>
  147. <Border Grid.Column="2" Width="1" Background="Black"/>
  148. <Grid Grid.Column="3" HorizontalAlignment="Center" >
  149. <Grid.RowDefinitions>
  150. <RowDefinition Height="130" />
  151. <RowDefinition Height="*" />
  152. </Grid.RowDefinitions>
  153. <StackPanel Grid.Row="0" VerticalAlignment="Bottom" Orientation="Horizontal" HorizontalAlignment="Center">
  154. <Button Content="{DynamicResource GlobalLableButtonLeakCheck}" Command="{Binding LeakCheckCommand}" IsEnabled="{Binding Path=IsEnableLeakCheck}" FontSize="16" />
  155. <Button Content="{DynamicResource GlobalLableButtonAbort}" Command="{Binding AbortCommand}" IsEnabled="{Binding Path=IsLeakCheck}" FontSize="16" />
  156. <Button Content="{DynamicResource GlobalLableButtonDelete}" Command="{Binding DeleteCommand}" HorizontalAlignment="Right" FontSize="16" />
  157. </StackPanel>
  158. <DataGrid Grid.Row="1"
  159. Padding="12,0"
  160. AutoGenerateColumns="False"
  161. BorderThickness="0.1"
  162. CanUserAddRows="False"
  163. CanUserDeleteRows="False"
  164. CanUserReorderColumns="False"
  165. CanUserResizeColumns="True"
  166. CanUserResizeRows="False"
  167. CanUserSortColumns="False"
  168. SelectionMode="Single"
  169. SelectionUnit="FullRow"
  170. Background="#05000000"
  171. VerticalScrollBarVisibility="Auto"
  172. HorizontalScrollBarVisibility="Disabled"
  173. FontSize="12" MinRowHeight="20"
  174. VerticalAlignment="Stretch"
  175. ItemsSource="{Binding LeakCheckResultList}"
  176. SelectedItem="{Binding CurrentLeakCheckResultItem}"
  177. FontFamily="Arial,SimSun" Margin="-8,10,8,45">
  178. <DataGrid.Columns>
  179. <DataGridTextColumn Width="160" Binding="{Binding Date, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  180. <DataGridTextColumn.HeaderTemplate >
  181. <DataTemplate>
  182. <TextBlock Text="{DynamicResource GlobalLableLeakCheckDate}" />
  183. </DataTemplate>
  184. </DataGridTextColumn.HeaderTemplate>
  185. </DataGridTextColumn>
  186. <DataGridTextColumn Width="100" Binding="{Binding StartPressure}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  187. <DataGridTextColumn.HeaderTemplate >
  188. <DataTemplate>
  189. <TextBlock Text="{DynamicResource GlobalLableStartPressure}" />
  190. </DataTemplate>
  191. </DataGridTextColumn.HeaderTemplate>
  192. </DataGridTextColumn>
  193. <DataGridTextColumn Width="100" Binding="{Binding StopPressure}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  194. <DataGridTextColumn.HeaderTemplate >
  195. <DataTemplate>
  196. <TextBlock Text="{DynamicResource GlobalLableStopPressure}" />
  197. </DataTemplate>
  198. </DataGridTextColumn.HeaderTemplate>
  199. </DataGridTextColumn>
  200. <DataGridTextColumn Width="120" Binding="{Binding LeakCheckTime}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  201. <DataGridTextColumn.HeaderTemplate >
  202. <DataTemplate>
  203. <TextBlock Text="{DynamicResource GlobalLableLeakCheckTime}" />
  204. </DataTemplate>
  205. </DataGridTextColumn.HeaderTemplate>
  206. </DataGridTextColumn>
  207. <DataGridTextColumn Width="120" Binding="{Binding LeakRate, StringFormat={}{0:F5}}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  208. <DataGridTextColumn.HeaderTemplate >
  209. <DataTemplate>
  210. <TextBlock Text="{DynamicResource GlobalLableLeakRate}" />
  211. </DataTemplate>
  212. </DataGridTextColumn.HeaderTemplate>
  213. </DataGridTextColumn>
  214. <DataGridTextColumn Width="*" Binding="{Binding LeakCheckStatus}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  215. <DataGridTextColumn.HeaderTemplate >
  216. <DataTemplate>
  217. <TextBlock Text="{DynamicResource GlobalLableLeakCheckStatus}" />
  218. </DataTemplate>
  219. </DataGridTextColumn.HeaderTemplate>
  220. </DataGridTextColumn>
  221. </DataGrid.Columns>
  222. </DataGrid>
  223. </Grid>
  224. </Grid>
  225. </UserControl>