GasLeakCheckView.xaml 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <UserControl x:Class="Venus_MainPages.Views.GasLeakCheckView"
  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. xmlns:local="clr-namespace:Venus_MainPages.Views"
  7. mc:Ignorable="d"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. xmlns:ctrls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  11. xmlns:unity="clr-namespace:Venus_MainPages.Unity"
  12. xmlns:converters="clr-namespace:Venus_Themes.Converters;assembly=Venus_Themes"
  13. xmlns:converters2="clr-namespace:Venus_MainPages.Converters"
  14. xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
  15. d:DesignHeight="450" d:DesignWidth="2000">
  16. <UserControl.Resources>
  17. <LinearGradientBrush x:Key="buttonBrush" StartPoint="0.5,0" EndPoint="0.5,1">
  18. <GradientStop Color="White" Offset="0.0" />
  19. <GradientStop Color="Gray" Offset="0.1" />
  20. <GradientStop Color="White" Offset="1" />
  21. </LinearGradientBrush>
  22. <converters:IntToIsEnableConverter x:Key="intToIsEnableConverter"/>
  23. <converters:ToBoolMultiValueConverter x:Key="toBoolMultiValueConverter"/>
  24. <converters:ToBoolMultiValueConverter2 x:Key="toBoolMultiValueConverter2"/>
  25. <converters:ToBoolMultiValueConverter3 x:Key="toBoolMultiValueConverter3"/>
  26. <converters:ToBoolMultiValueConverter4 x:Key="toBoolMultiValueConverter4"/>
  27. <converters:BoolToColor x:Key="boolToColor"/>
  28. <converters:BoolToColor2 x:Key="boolToColor2"/>
  29. <converters:BoolToColor3 x:Key="boolToColor3"/>
  30. <converters:BoolToColor4 x:Key="boolToColor4"/>
  31. <converters:BoolToColor5 x:Key="boolToColor5"/>
  32. <converters:BoolToBool x:Key="BoolToBool"/>
  33. <converters:IntToBoolConverter x:Key="converters:IntToBoolConverter"/>
  34. <converters:IntToBoolConverter2 x:Key="converters:IntToBoolConverter2"/>
  35. <converters2:AllNoneCheckboxConverter x:Key="AllNoneCheckboxConverter"/>
  36. </UserControl.Resources>
  37. <Grid>
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition Width="200"/>
  40. <ColumnDefinition Width="2*"/>
  41. <ColumnDefinition Width="4*"/>
  42. </Grid.ColumnDefinitions>
  43. <Canvas>
  44. <TextBlock Text="Gas1" FontSize="15" Canvas.Top="221" Canvas.Left="20"/>
  45. <TextBox Text="{Binding MFC1Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="221" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  46. <TextBox Text="{Binding MFC1Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="221" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  47. <TextBlock Text="Gas2" Canvas.Top="277" Canvas.Left="20"/>
  48. <TextBox Text="{Binding MFC2Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="277" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  49. <TextBox Text="{Binding MFC2Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="277" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  50. <TextBlock Text="Gas3" Canvas.Top="333" Canvas.Left="20"/>
  51. <TextBox Text="{Binding MFC3Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="333" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  52. <TextBox Text="{Binding MFC3Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="333" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  53. <TextBlock Text="Gas4" Canvas.Top="389" Canvas.Left="20"/>
  54. <TextBox Text="{Binding MFC4Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="389" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  55. <TextBox Text="{Binding MFC4Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="389" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  56. <TextBlock Text="Gas5" Canvas.Top="445" Canvas.Left="20"/>
  57. <TextBox Text="{Binding MFC5Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="445" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  58. <TextBox Text="{Binding MFC5Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="445" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  59. <TextBlock Text="Gas6" Canvas.Top="501" Canvas.Left="20"/>
  60. <TextBox Text="{Binding MFC6Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="501" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  61. <TextBox Text="{Binding MFC6Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="501" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  62. <TextBlock Text="Gas7" Canvas.Top="557" Canvas.Left="20"/>
  63. <TextBox Text="{Binding MFC7Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="557" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  64. <TextBox Text="{Binding MFC7Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="557" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  65. <TextBlock Text="Gas8" Canvas.Top="613" Canvas.Left="20"/>
  66. <TextBox Text="{Binding MFC8Data.DisplayName}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="613" Canvas.Left="70" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  67. <TextBox Text="{Binding MFC8Data.Scale}" IsReadOnly="True" BorderThickness="0,0,0,1" Canvas.Top="613" Canvas.Left="150" Background="Transparent" Width="70" HorizontalContentAlignment="Center"/>
  68. </Canvas>
  69. <Canvas Grid.Column="1">
  70. <ctrls:Pipe2 Canvas.Left="490" Canvas.Top="615" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="90" />
  71. <!--N2-->
  72. <ctrls:FlowPipe Name="N2Pipe2" Height="8" Width="230" Canvas.Left="255" Canvas.Top="120">
  73. <ctrls:FlowPipe.IsFlowing>
  74. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter}">
  75. <Binding Path="PVN22ValveIsOpen"/>
  76. <Binding Path="N2ValveIsOpen"/>
  77. <Binding Path="GasFinalValveIsOpen"/>
  78. </MultiBinding>
  79. </ctrls:FlowPipe.IsFlowing>
  80. </ctrls:FlowPipe>
  81. <TextBlock Text="Vent Valve" Canvas.Left="416" Canvas.Top="90"/>
  82. <customControls:CommonValveControl Status="{Binding N2ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="114" IsCanEdit="True" Tag="10" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  83. <ctrls:FlowPipe x:Name="N2Pipe1" Height="8" Width="193" Canvas.Left="64" Canvas.Top="120">
  84. <ctrls:FlowPipe.IsFlowing>
  85. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter3}">
  86. <Binding Path="PVN21ValveIsOpen"/>
  87. <Binding Path="PVN22ValveIsOpen"/>
  88. <Binding Path="N2ValveIsOpen"/>
  89. <Binding Path="GasFinalValveIsOpen"/>
  90. </MultiBinding>
  91. </ctrls:FlowPipe.IsFlowing>
  92. </ctrls:FlowPipe>
  93. <TextBlock Text="VN22" Canvas.Left="280" Canvas.Top="90"/>
  94. <customControls:CommonValveControl Status="{Binding PVN22ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="288" Canvas.Top="114" IsCanEdit="True" Tag="1" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  95. <ctrls:FlowPipe Height="8" Width="308" Canvas.Left="176" Canvas.Top="230" IsFlowing="{Binding MFC1ValveIsOpen}"/>
  96. <TextBlock Text="V1" Canvas.Left="438" Canvas.Top="208"/>
  97. <customControls:CommonValveControl Status="{Binding MFC1ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="224" IsCanEdit="True" Tag="11" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  98. <ctrls:FlowPipe Height="8" Width="114" Canvas.Left="64" Canvas.Top="230" IsFlowing="{Binding PV11ValveIsOpen}"/>
  99. <ctrls:FlowPipe Height="8" Width="80" Canvas.Left="177" Canvas.Top="266" IsFlowing="{Binding PV12ValveIsOpen}"/>
  100. <!--<ctrls:Pipe2 Canvas.Left="214" Canvas.Top="274" RotateTransformValue="-180"/>-->
  101. <ctrls:FlowPipe Height="8" Width="30" Canvas.Left="178" Canvas.Top="236" RotateTransformValue="90" IsFlowing="{Binding PV12ValveIsOpen}"/>
  102. <ctrls:Pipe2 Canvas.Left="183" Canvas.Top="274" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-180" />
  103. <ctrls:FlowPipe Height="8" Width="145" Canvas.Left="257" Canvas.Top="126" RotateTransformValue="90" IsReverse="True">
  104. <ctrls:FlowPipe.IsFlowing>
  105. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  106. <Binding Path="PV12ValveIsOpen"/>
  107. <Binding Path="PV22ValveIsOpen"/>
  108. <Binding Path="PV32ValveIsOpen"/>
  109. <Binding Path="PV42ValveIsOpen"/>
  110. </MultiBinding>
  111. </ctrls:FlowPipe.IsFlowing>
  112. </ctrls:FlowPipe>
  113. <!--SF6-->
  114. <ctrls:FlowPipe Height="8" Width="310" Canvas.Left="174" Canvas.Top="286" IsFlowing="{Binding MFC2ValveIsOpen}"/>
  115. <TextBlock Text="V2" Canvas.Left="438" Canvas.Top="264"/>
  116. <customControls:CommonValveControl Status="{Binding MFC2ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="280" IsCanEdit="True" Tag="12" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  117. <ctrls:FlowPipe Height="8" Width="112" Canvas.Left="64" Canvas.Top="286" IsFlowing="{Binding PV21ValveIsOpen}"/>
  118. <ctrls:FlowPipe Height="8" Width="80" Canvas.Left="177" Canvas.Top="322" IsFlowing="{Binding PV22ValveIsOpen}"/>
  119. <ctrls:FlowPipe Height="8" Width="32" Canvas.Left="178" Canvas.Top="290" RotateTransformValue="90" IsFlowing="{Binding PV22ValveIsOpen}"/>
  120. <ctrls:Pipe2 Canvas.Left="183" Canvas.Top="330" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-180" />
  121. <ctrls:FlowPipe Height="8" Width="55" Canvas.Left="257" Canvas.Top="270" RotateTransformValue="90" IsReverse="True" >
  122. <ctrls:FlowPipe.IsFlowing>
  123. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  124. <Binding Path="PV22ValveIsOpen"/>
  125. <Binding Path="PV32ValveIsOpen"/>
  126. <Binding Path="PV42ValveIsOpen"/>
  127. </MultiBinding>
  128. </ctrls:FlowPipe.IsFlowing>
  129. </ctrls:FlowPipe>
  130. <!--Gas3-->
  131. <ctrls:FlowPipe Height="8" Width="310" Canvas.Left="174" Canvas.Top="342" IsFlowing="{Binding MFC3ValveIsOpen}"/>
  132. <TextBlock Text="V3" Canvas.Left="436" Canvas.Top="320"/>
  133. <customControls:CommonValveControl Status="{Binding MFC3ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="336" IsCanEdit="True" Tag="13" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  134. <ctrls:FlowPipe Height="8" Width="112" Canvas.Left="64" Canvas.Top="342" IsFlowing="{Binding PV31ValveIsOpen}"/>
  135. <ctrls:FlowPipe Height="8" Width="80" Canvas.Left="177" Canvas.Top="378" IsFlowing="{Binding PV32ValveIsOpen}"/>
  136. <ctrls:FlowPipe Height="8" Width="30" Canvas.Left="178" Canvas.Top="348" RotateTransformValue="90" IsFlowing="{Binding PV32ValveIsOpen}"/>
  137. <ctrls:Pipe2 Canvas.Left="183" Canvas.Top="386" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-180" />
  138. <ctrls:FlowPipe Height="8" Width="57" Canvas.Left="257" Canvas.Top="324" RotateTransformValue="90" IsReverse="True" >
  139. <ctrls:FlowPipe.IsFlowing>
  140. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  141. <Binding Path="PV32ValveIsOpen"/>
  142. <Binding Path="PV42ValveIsOpen"/>
  143. </MultiBinding>
  144. </ctrls:FlowPipe.IsFlowing>
  145. </ctrls:FlowPipe>
  146. <!--Gas4-->
  147. <ctrls:FlowPipe Height="8" Width="112" Canvas.Left="64" Canvas.Top="396" IsFlowing="{Binding PV41ValveIsOpen}"/>
  148. <ctrls:FlowPipe Height="8" Width="76" Canvas.Left="175" Canvas.Top="428" IsFlowing="{Binding PV42ValveIsOpen}"/>
  149. <ctrls:FlowPipe Height="8" Width="310" Canvas.Left="174" Canvas.Top="396" IsFlowing="{Binding MFC4ValveIsOpen}"/>
  150. <TextBlock Text="V4" Canvas.Left="436" Canvas.Top="374"/>
  151. <customControls:CommonValveControl Status="{Binding MFC4ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="390" IsCanEdit="True" Tag="14" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  152. <ctrls:FlowPipe Height="8" Width="50" Canvas.Left="257" Canvas.Top="380" RotateTransformValue="90" IsReverse="True">
  153. <ctrls:FlowPipe.IsFlowing>
  154. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  155. <Binding Path="PV42ValveIsOpen"/>
  156. </MultiBinding>
  157. </ctrls:FlowPipe.IsFlowing>
  158. </ctrls:FlowPipe>
  159. <ctrls:Pipe2 Canvas.Left="257" Canvas.Top="423" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="90" />
  160. <ctrls:FlowPipe Height="8" Width="30" Canvas.Left="178" Canvas.Top="401" RotateTransformValue="90" IsFlowing="{Binding PV42ValveIsOpen}"/>
  161. <ctrls:Pipe2 Canvas.Left="183" Canvas.Top="436" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-180" />
  162. <!--Gas5-->
  163. <ctrls:FlowPipe Height="8" Width="419" Canvas.Left="64" Canvas.Top="452" IsFlowing="{Binding MFC5ValveIsOpen}"/>
  164. <TextBlock Text="V5" Canvas.Left="438" Canvas.Top="430"/>
  165. <customControls:CommonValveControl Status="{Binding MFC5ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="446" IsCanEdit="True" Tag="15" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  166. <!--O2-->
  167. <ctrls:FlowPipe Height="8" Width="419" Canvas.Left="65" Canvas.Top="507" IsFlowing="{Binding MFC6ValveIsOpen}"/>
  168. <TextBlock Text="V6" Canvas.Left="438" Canvas.Top="485"/>
  169. <customControls:CommonValveControl Status="{Binding MFC6ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="501" IsCanEdit="True" Tag="16" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  170. <!--Gas7-->
  171. <ctrls:FlowPipe Height="8" Width="418" Canvas.Left="65" Canvas.Top="563" IsFlowing="{Binding MFC7ValveIsOpen}"/>
  172. <TextBlock Text="V7" Canvas.Left="438" Canvas.Top="541"/>
  173. <customControls:CommonValveControl Status="{Binding MFC7ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="557" IsCanEdit="True" Tag="17" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  174. <!--Gas8-->
  175. <ctrls:FlowPipe Height="8" Width="412" Canvas.Left="68" Canvas.Top="620" IsFlowing="{Binding MFC8ValveIsOpen}"/>
  176. <TextBlock Text="V8" Canvas.Left="438" Canvas.Top="598"/>
  177. <customControls:CommonValveControl Status="{Binding MFC8ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="436" Canvas.Top="614" IsCanEdit="True" Tag="18" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  178. <!--与chamber上方连接的管道-->
  179. <ctrls:FlowPipe Height="8" Width="100" Canvas.Left="482" Canvas.Top="120">
  180. <ctrls:FlowPipe.IsFlowing>
  181. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter4}">
  182. <Binding Path="GasFinalValveIsOpen"/>
  183. <Binding Path="N2ValveIsOpen"/>
  184. <Binding Path="PV11ValveIsOpen"/>
  185. <Binding Path="PV21ValveIsOpen"/>
  186. <Binding Path="PV31ValveIsOpen"/>
  187. <Binding Path="PV41ValveIsOpen"/>
  188. <Binding Path="MFC5ValveIsOpen"/>
  189. <Binding Path="MFC6ValveIsOpen"/>
  190. <Binding Path="MFC7ValveIsOpen"/>
  191. <Binding Path="MFC8ValveIsOpen"/>
  192. </MultiBinding>
  193. </ctrls:FlowPipe.IsFlowing>
  194. </ctrls:FlowPipe>
  195. <Image Canvas.Left="590" Canvas.Top="110" Width="40" Height="25" Source="Pack://application:,,,/Venus_Themes;Component/Resources/Arrow.png" Stretch="Uniform">
  196. </Image>
  197. <ctrls:FlowPipe Name="l8" Height="8" Width="56" Canvas.Left="490" Canvas.Top="126" RotateTransformValue="90" IsReverse="True">
  198. <ctrls:FlowPipe.IsFlowing>
  199. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  200. <Binding Path="MFC1ValveIsOpen"/>
  201. <Binding Path="MFC2ValveIsOpen"/>
  202. <Binding Path="MFC3ValveIsOpen"/>
  203. <Binding Path="MFC4ValveIsOpen"/>
  204. <Binding Path="MFC5ValveIsOpen"/>
  205. <Binding Path="MFC6ValveIsOpen"/>
  206. <Binding Path="MFC7ValveIsOpen"/>
  207. <Binding Path="MFC8ValveIsOpen"/>
  208. </MultiBinding>
  209. </ctrls:FlowPipe.IsFlowing>
  210. </ctrls:FlowPipe>
  211. <ctrls:FlowPipe Height="8" Width="56" Canvas.Left="490" Canvas.Top="180" RotateTransformValue="90" IsReverse="True">
  212. <ctrls:FlowPipe.IsFlowing>
  213. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  214. <Binding Path="MFC1ValveIsOpen"/>
  215. <Binding Path="MFC2ValveIsOpen"/>
  216. <Binding Path="MFC3ValveIsOpen"/>
  217. <Binding Path="MFC4ValveIsOpen"/>
  218. <Binding Path="MFC5ValveIsOpen"/>
  219. <Binding Path="MFC6ValveIsOpen"/>
  220. <Binding Path="MFC7ValveIsOpen"/>
  221. <Binding Path="MFC8ValveIsOpen"/>
  222. </MultiBinding>
  223. </ctrls:FlowPipe.IsFlowing>
  224. </ctrls:FlowPipe>
  225. <ctrls:FlowPipe Height="8" Width="58" Canvas.Left="490" Canvas.Top="234" RotateTransformValue="90" IsReverse="True">
  226. <ctrls:FlowPipe.IsFlowing>
  227. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  228. <Binding Path="MFC2ValveIsOpen"/>
  229. <Binding Path="MFC3ValveIsOpen"/>
  230. <Binding Path="MFC4ValveIsOpen"/>
  231. <Binding Path="MFC5ValveIsOpen"/>
  232. <Binding Path="MFC6ValveIsOpen"/>
  233. <Binding Path="MFC7ValveIsOpen"/>
  234. <Binding Path="MFC8ValveIsOpen"/>
  235. </MultiBinding>
  236. </ctrls:FlowPipe.IsFlowing>
  237. </ctrls:FlowPipe>
  238. <ctrls:FlowPipe Height="8" Width="56" Canvas.Left="490" Canvas.Top="290" RotateTransformValue="90" IsReverse="True">
  239. <ctrls:FlowPipe.IsFlowing>
  240. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  241. <Binding Path="MFC3ValveIsOpen"/>
  242. <Binding Path="MFC4ValveIsOpen"/>
  243. <Binding Path="MFC5ValveIsOpen"/>
  244. <Binding Path="MFC6ValveIsOpen"/>
  245. <Binding Path="MFC7ValveIsOpen"/>
  246. <Binding Path="MFC8ValveIsOpen"/>
  247. </MultiBinding>
  248. </ctrls:FlowPipe.IsFlowing>
  249. </ctrls:FlowPipe>
  250. <ctrls:FlowPipe Height="8" Width="58" Canvas.Left="490" Canvas.Top="344" RotateTransformValue="90" IsReverse="True">
  251. <ctrls:FlowPipe.IsFlowing>
  252. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  253. <Binding Path="MFC4ValveIsOpen"/>
  254. <Binding Path="MFC5ValveIsOpen"/>
  255. <Binding Path="MFC6ValveIsOpen"/>
  256. <Binding Path="MFC7ValveIsOpen"/>
  257. <Binding Path="MFC8ValveIsOpen"/>
  258. </MultiBinding>
  259. </ctrls:FlowPipe.IsFlowing>
  260. </ctrls:FlowPipe>
  261. <ctrls:FlowPipe Height="8" Width="58" Canvas.Left="490" Canvas.Top="400" RotateTransformValue="90" IsReverse="True">
  262. <ctrls:FlowPipe.IsFlowing>
  263. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  264. <Binding Path="MFC5ValveIsOpen"/>
  265. <Binding Path="MFC6ValveIsOpen"/>
  266. <Binding Path="MFC7ValveIsOpen"/>
  267. <Binding Path="MFC8ValveIsOpen"/>
  268. </MultiBinding>
  269. </ctrls:FlowPipe.IsFlowing>
  270. </ctrls:FlowPipe>
  271. <ctrls:FlowPipe Height="8" Width="58" Canvas.Left="490" Canvas.Top="456" RotateTransformValue="90" IsReverse="True">
  272. <ctrls:FlowPipe.IsFlowing>
  273. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  274. <Binding Path="MFC6ValveIsOpen"/>
  275. <Binding Path="MFC7ValveIsOpen"/>
  276. <Binding Path="MFC8ValveIsOpen"/>
  277. </MultiBinding>
  278. </ctrls:FlowPipe.IsFlowing>
  279. </ctrls:FlowPipe>
  280. <ctrls:FlowPipe Height="8" Width="58" Canvas.Left="490" Canvas.Top="512" RotateTransformValue="90" IsReverse="True">
  281. <ctrls:FlowPipe.IsFlowing>
  282. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  283. <Binding Path="MFC7ValveIsOpen"/>
  284. <Binding Path="MFC8ValveIsOpen"/>
  285. </MultiBinding>
  286. </ctrls:FlowPipe.IsFlowing>
  287. </ctrls:FlowPipe>
  288. <ctrls:FlowPipe Height="8" Width="48" Canvas.Left="490" Canvas.Top="568" RotateTransformValue="90" IsReverse="True">
  289. <ctrls:FlowPipe.IsFlowing>
  290. <MultiBinding Converter="{StaticResource toBoolMultiValueConverter2}">
  291. <Binding Path="MFC8ValveIsOpen"/>
  292. </MultiBinding>
  293. </ctrls:FlowPipe.IsFlowing>
  294. </ctrls:FlowPipe>
  295. <!--阀-->
  296. <TextBlock Text="V41" Canvas.Left="128" Canvas.Top="374"/>
  297. <customControls:CommonValveControl Status="{Binding PV41ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="127" Canvas.Top="390" IsCanEdit="True" Tag="8" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  298. <TextBlock Text="V31" Canvas.Left="128" Canvas.Top="320"/>
  299. <customControls:CommonValveControl Status="{Binding PV31ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="127" Canvas.Top="336" Tag="6" IsCanEdit="True" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  300. <TextBlock Text="V21" Canvas.Left="128" Canvas.Top="266"/>
  301. <customControls:CommonValveControl Status="{Binding PV21ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="127" Canvas.Top="280" Tag="4" IsCanEdit="True" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  302. <TextBlock Text="V11" Canvas.Left="128" Canvas.Top="208"/>
  303. <customControls:CommonValveControl Status="{Binding PV11ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="127" Canvas.Top="224" Tag="2" IsCanEdit="True" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  304. <TextBlock Text="V12" Canvas.Left="200" Canvas.Top="243"/>
  305. <customControls:CommonValveControl Status="{Binding PV12ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="200" Canvas.Top="259" IsCanEdit="True" Tag="3" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  306. <TextBlock Text="V22" Canvas.Left="200" Canvas.Top="300"/>
  307. <customControls:CommonValveControl Status="{Binding PV22ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="200" Canvas.Top="315" IsCanEdit="True" Tag="5" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  308. <TextBlock Text="V32" Canvas.Left="200" Canvas.Top="355"/>
  309. <customControls:CommonValveControl Status="{Binding PV32ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="200" Canvas.Top="371" IsCanEdit="True" Tag="7" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  310. <TextBlock Text="V42" Canvas.Left="200" Canvas.Top="405"/>
  311. <customControls:CommonValveControl Status="{Binding PV42ValveIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="200" Canvas.Top="421" IsCanEdit="True" Tag="9" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  312. <TextBlock Text="VN21" Canvas.Left="200" Canvas.Top="152"/>
  313. <customControls:CommonValveControl Status="{Binding PVN21ValveIsOpen,Mode=TwoWay}" ValveOrientation="Vertical" Height="20" Width="20" Canvas.Left="243" Canvas.Top="148" IsCanEdit="True" Tag="0" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}"/>
  314. <!--左侧管道标签-->
  315. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC1SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="205" Canvas.Left="275" LabelValue="MFC1" ToolTip="{Binding MFC1Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  316. <!--<TextBox Canvas.Top="205" Canvas.Left="250" Width="100" Text="{Binding MfcGas1Setpoint,Mode=TwoWay}"/>-->
  317. <ctrls:TextboxWithLabel Canvas.Top="205" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC1Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  318. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC2SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="260" Canvas.Left="275" LabelValue="MFC2" ToolTip="{Binding MFC2Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  319. <ctrls:TextboxWithLabel Canvas.Top="260" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC2Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  320. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC3SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="318" Canvas.Left="275" LabelValue="MFC3" ToolTip="{Binding MFC3Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  321. <ctrls:TextboxWithLabel Canvas.Top="318" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC3Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  322. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC4SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="370" Canvas.Left="275" LabelValue="MFC4" ToolTip="{Binding MFC4Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  323. <ctrls:TextboxWithLabel Canvas.Top="370" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC4Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  324. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC5SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="426" Canvas.Left="275" LabelValue="MFC5" ToolTip="{Binding MFC5Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  325. <ctrls:TextboxWithLabel Canvas.Top="426" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC5Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  326. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC6SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="482" Canvas.Left="275" LabelValue="MFC6" ToolTip="{Binding MFC6Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  327. <ctrls:TextboxWithLabel Canvas.Top="482" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC6Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  328. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC7SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="538" Canvas.Left="275" LabelValue="MFC7" ToolTip="{Binding MFC7Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  329. <ctrls:TextboxWithLabel Canvas.Top="538" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC7Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  330. <ctrls:TextboxWithLabel TextBoxValue="{Binding MFC8SetPoint,Mode=TwoWay}" IsReadOnly="False" Canvas.Top="595" Canvas.Left="275" LabelValue="MFC8" ToolTip="{Binding MFC8Data.SetPoint,StringFormat='F1'}" TextBoxColor="White" />
  331. <ctrls:TextboxWithLabel Canvas.Top="595" Canvas.Left="345" LabelValue="Flow" TextBoxValue="{Binding MFC8Data.FeedBack,StringFormat='F1'}" TextBoxColor="#D7E4BD"/>
  332. <Ellipse Width="20" Height="20" Fill="{Binding GasIsFlowing,Converter={StaticResource boolToColor}}" Canvas.Left="360" Canvas.Top="680" Stroke="Silver" StrokeThickness="2"/>
  333. <Button Width="100" Content="Gas ON/OFF" Canvas.Left="390" Canvas.Top="680" Style="{StaticResource SysBtnStyle}" Command="{Binding GasCommand}" IsEnabled="{Binding IsAutoMode,Converter={StaticResource BoolToBool}}"/>
  334. <TextBlock FontSize="13" Text="Vent N2" Canvas.Left="1" Canvas.Top="117" Foreground="Black" Block.TextAlignment="Right" Width="50"/>
  335. <TextBlock FontSize="13" Text="{Binding MFC1Data.DisplayName}" Canvas.Left="10" Canvas.Top="227" Block.TextAlignment="Right" Width="50"/>
  336. <TextBlock FontSize="13" Text="{Binding MFC2Data.DisplayName}" Canvas.Left="10" Canvas.Top="284" Block.TextAlignment="Right" Width="50"/>
  337. <TextBlock FontSize="13" Text="{Binding MFC3Data.DisplayName}" Canvas.Left="10" Canvas.Top="338" Block.TextAlignment="Right" Width="50"/>
  338. <TextBlock FontSize="13" Text="{Binding MFC4Data.DisplayName}" Canvas.Left="10" Canvas.Top="392" Block.TextAlignment="Right" Width="50"/>
  339. <TextBlock FontSize="13" Text="{Binding MFC5Data.DisplayName}" Canvas.Left="10" Canvas.Top="448" Block.TextAlignment="Right" Width="50"/>
  340. <TextBlock FontSize="13" Text="{Binding MFC6Data.DisplayName}" Canvas.Left="10" Canvas.Top="503" Block.TextAlignment="Right" Width="50"/>
  341. <TextBlock FontSize="13" Text="{Binding MFC7Data.DisplayName}" Canvas.Left="10" Canvas.Top="562" Block.TextAlignment="Right" Width="50"/>
  342. <TextBlock FontSize="13" Text="{Binding MFC8Data.DisplayName}" Canvas.Left="10" Canvas.Top="618" Block.TextAlignment="Right" Width="50"/>
  343. </Canvas >
  344. <Canvas Grid.Column="2">
  345. <Grid Width="350" Height="440" Canvas.Left="80" Canvas.Top="20" Background="White" unity:GridOptions.ShowBorder="True">
  346. <Grid.RowDefinitions>
  347. <RowDefinition Height="40"/>
  348. <RowDefinition/>
  349. <RowDefinition/>
  350. <RowDefinition/>
  351. <RowDefinition/>
  352. <RowDefinition/>
  353. <RowDefinition/>
  354. <RowDefinition/>
  355. <RowDefinition/>
  356. <RowDefinition/>
  357. <RowDefinition/>
  358. <RowDefinition/>
  359. <RowDefinition/>
  360. <RowDefinition/>
  361. <RowDefinition/>
  362. <RowDefinition/>
  363. <RowDefinition/>
  364. <RowDefinition/>
  365. </Grid.RowDefinitions>
  366. <Grid.ColumnDefinitions>
  367. <ColumnDefinition Width="2*"/>
  368. <ColumnDefinition Width="3*"/>
  369. </Grid.ColumnDefinitions>
  370. <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="检漏设置" FontSize="22" VerticalAlignment="Center" HorizontalAlignment="Center" />
  371. <TextBlock Grid.Row="1" Text="抽气时间(s)" FontSize="15" VerticalAlignment="Center" Padding="10" />
  372. <TextBlock Grid.Row="2" Text="检漏时间(s)" FontSize="15" VerticalAlignment="Center" Padding="10" />
  373. <TextBlock Grid.Row="3" Text="漏率上限(mt/min)" FontSize="15" VerticalAlignment="Center" Padding="10" />
  374. <TextBlock Grid.Row="4" Text="检漏模式" FontSize="15" VerticalAlignment="Center" Padding="10" />
  375. <TextBlock Grid.Row="5" Text="全选" FontSize="15" VerticalAlignment="Center" Padding="10" />
  376. <TextBlock Grid.Row="6" Text="Vent N2" FontSize="15" VerticalAlignment="Center" Padding="10" />
  377. <TextBlock Grid.Row="7" Text="MfcGas1" FontSize="15" VerticalAlignment="Center" Padding="10" />
  378. <TextBlock Grid.Row="8" Text="MfcGas2" FontSize="15" VerticalAlignment="Center" Padding="10" />
  379. <TextBlock Grid.Row="9" Text="MfcGas3" FontSize="15" VerticalAlignment="Center" Padding="10" />
  380. <TextBlock Grid.Row="10" Text="MfcGas4" FontSize="15" VerticalAlignment="Center" Padding="10" />
  381. <TextBlock Grid.Row="11" Text="MfcGas5" FontSize="15" VerticalAlignment="Center" Padding="10" />
  382. <TextBlock Grid.Row="12" Text="MfcGas6" FontSize="15" VerticalAlignment="Center" Padding="10" />
  383. <TextBlock Grid.Row="13" Text="MfcGas7" FontSize="15" VerticalAlignment="Center" Padding="10" />
  384. <TextBlock Grid.Row="14" Text="MfcGas8" FontSize="15" VerticalAlignment="Center" Padding="10" />
  385. <TextBlock Grid.Row="15" Text="状态" FontSize="15" VerticalAlignment="Center" Padding="10" />
  386. <TextBlock Grid.Row="16" Text="检漏时间" FontSize="15" VerticalAlignment="Center" Padding="10" />
  387. <TextBlock Grid.Row="17" Text="当前压力" FontSize="15" VerticalAlignment="Center" Padding="10" />
  388. <TextBox Grid.Row="1" Grid.Column="1" BorderThickness="0" VerticalContentAlignment="Center" Text="{Binding VentTime}"/>
  389. <TextBox Grid.Row="2" Grid.Column="1" BorderThickness="0" VerticalContentAlignment="Center" Text="{Binding CheckTime}"/>
  390. <TextBox Grid.Row="3" Grid.Column="1" BorderThickness="0" VerticalContentAlignment="Center" Text="{Binding LeakRateUpperLimit}"/>
  391. <ComboBox Grid.Row="4" Grid.Column="1" BorderBrush="Transparent" Margin="-2,-2,-1,-1" ItemsSource="{Binding LeakCheckMode}" SelectedIndex="{Binding LeakCheckModeSelectedIndex}"/>
  392. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}">
  393. <CheckBox.IsChecked>
  394. <MultiBinding Converter="{StaticResource AllNoneCheckboxConverter}">
  395. <Binding ElementName="n2CheckBox" Path="IsChecked"/>
  396. <Binding ElementName="gas1CheckBox" Path="IsChecked"/>
  397. <Binding ElementName="gas2CheckBox" Path="IsChecked"/>
  398. <Binding ElementName="gas3CheckBox" Path="IsChecked"/>
  399. <Binding ElementName="gas4CheckBox" Path="IsChecked"/>
  400. <Binding ElementName="gas5CheckBox" Path="IsChecked"/>
  401. <Binding ElementName="gas6CheckBox" Path="IsChecked"/>
  402. <Binding ElementName="gas7CheckBox" Path="IsChecked"/>
  403. <Binding ElementName="gas8CheckBox" Path="IsChecked"/>
  404. </MultiBinding>
  405. </CheckBox.IsChecked>
  406. </CheckBox>
  407. <CheckBox x:Name="n2CheckBox" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[0]}" />
  408. <CheckBox x:Name="gas1CheckBox" Grid.Row="7" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[1]}"/>
  409. <CheckBox x:Name="gas2CheckBox" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[2]}"/>
  410. <CheckBox x:Name="gas3CheckBox" Grid.Row="9" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[3]}"/>
  411. <CheckBox x:Name="gas4CheckBox" Grid.Row="10" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[4]}"/>
  412. <CheckBox x:Name="gas5CheckBox" Grid.Row="11" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[5]}"/>
  413. <CheckBox x:Name="gas6CheckBox" Grid.Row="12" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[6]}"/>
  414. <CheckBox x:Name="gas7CheckBox" Grid.Row="13" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[7]}"/>
  415. <CheckBox x:Name="gas8CheckBox" Grid.Row="14" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding LeakCheckModeSelectedIndex}" IsChecked="{Binding GasIsCheck[8]}"/>
  416. <TextBlock Grid.Row="15" Grid.Column="1"/>
  417. <TextBlock Grid.Row="16" Grid.Column="1"/>
  418. <TextBlock Grid.Row="17" Grid.Column="1"/>
  419. </Grid>
  420. <Button Foreground="White" FontWeight="Bold" Content="Leak Check" Width="120" Height="25" Canvas.Left="480" Canvas.Top="40" Command="{Binding CheckCommand}"/>
  421. <Button Foreground="White" FontWeight="Bold" Content="Gas Pump Purge" Width="120" Height="25" Canvas.Left="480" Canvas.Top="90" />
  422. <Button Foreground="White" FontWeight="Bold" Content="Abort" Width="120" Height="25" Canvas.Left="480" Canvas.Top="140" Command="{Binding AbortCommand}"/>
  423. <TextBlock Canvas.Left="80" Canvas.Top="460" Text="Leak Check Result" FontSize="15" FontWeight="Bold"/>
  424. <Button FontSize="15" Foreground="White" FontWeight="Bold" Content="Export" Width="100" Height="30" Canvas.Left="900" Canvas.Top="440" Command="{Binding ExportCommand}"/>
  425. <Button FontSize="15" Foreground="White" FontWeight="Bold" Content="Delete" Width="100" Height="30" Canvas.Left="1020" Canvas.Top="440" />
  426. <DataGrid Canvas.Left="80" Height="300" Canvas.Top="480" AutoGenerateColumns="False" BorderThickness="0.1" FontSize="12" MinRowHeight="20" VerticalAlignment="Stretch"
  427. CanUserAddRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False" CanUserResizeColumns="True" CanUserResizeRows="False" CanUserSortColumns="False"
  428. SelectionMode="Single" SelectionUnit="FullRow" Background="#05000000" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
  429. ItemsSource="{Binding LeakCheckResultList}" SelectedItem="{Binding CurrentLeakCheckResultItem}" FontFamily="Arial,SimSun" Margin="0,0,8,45">
  430. <DataGrid.Columns>
  431. <DataGridTextColumn Width="160" Binding="{Binding CheckDate}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  432. <DataGridTextColumn.HeaderTemplate >
  433. <DataTemplate>
  434. <TextBlock Text="CheckDate" />
  435. </DataTemplate>
  436. </DataGridTextColumn.HeaderTemplate>
  437. </DataGridTextColumn>
  438. <DataGridTextColumn Width="120" Binding="{Binding StartPressure}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  439. <DataGridTextColumn.HeaderTemplate >
  440. <DataTemplate>
  441. <TextBlock Text="StartPressure" />
  442. </DataTemplate>
  443. </DataGridTextColumn.HeaderTemplate>
  444. </DataGridTextColumn>
  445. <DataGridTextColumn Width="120" Binding="{Binding EndPressure}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  446. <DataGridTextColumn.HeaderTemplate >
  447. <DataTemplate>
  448. <TextBlock Text="StopPressure" />
  449. </DataTemplate>
  450. </DataGridTextColumn.HeaderTemplate>
  451. </DataGridTextColumn>
  452. <DataGridTextColumn Width="120" Binding="{Binding LeakCheckTime}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  453. <DataGridTextColumn.HeaderTemplate >
  454. <DataTemplate>
  455. <TextBlock Text="Leak Check Time(s)" />
  456. </DataTemplate>
  457. </DataGridTextColumn.HeaderTemplate>
  458. </DataGridTextColumn>
  459. <DataGridTextColumn Width="120" Binding="{Binding LeakRate}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  460. <DataGridTextColumn.HeaderTemplate >
  461. <DataTemplate>
  462. <TextBlock Text="LeakRate" />
  463. </DataTemplate>
  464. </DataGridTextColumn.HeaderTemplate>
  465. </DataGridTextColumn>
  466. <DataGridTextColumn Width="200" Binding="{Binding CheckMode}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  467. <DataGridTextColumn.HeaderTemplate >
  468. <DataTemplate>
  469. <TextBlock Text="CheckMode" />
  470. </DataTemplate>
  471. </DataGridTextColumn.HeaderTemplate>
  472. </DataGridTextColumn>
  473. <DataGridTextColumn Width="200" Binding="{Binding Result}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  474. <DataGridTextColumn.HeaderTemplate >
  475. <DataTemplate>
  476. <TextBlock Text=" GlobalLableLeakCheckStatus" />
  477. </DataTemplate>
  478. </DataGridTextColumn.HeaderTemplate>
  479. </DataGridTextColumn>
  480. </DataGrid.Columns>
  481. </DataGrid>
  482. </Canvas>
  483. </Grid>
  484. </UserControl>