SETMOperationView.xaml 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. <UserControl x:Class="Venus_MainPages.Views.SETMOperationView"
  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:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
  7. xmlns:userControls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  8. xmlns:converters="clr-namespace:Venus_Themes.Converters;assembly=Venus_Themes"
  9. xmlns:converters2="clr-namespace:Venus_MainPages.Converters"
  10. xmlns:prism="http://prismlibrary.com/"
  11. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. xmlns:local="clr-namespace:Venus_MainPages.Views"
  14. mc:Ignorable="d"
  15. d:DesignHeight="450" d:DesignWidth="800">
  16. <UserControl.Resources>
  17. <converters:BoolToBool x:Key="BoolToBool"/>
  18. <converters:BoolToColor x:Key="boolToColor"/>
  19. <converters:BoolToColor2 x:Key="boolToColor2"/>
  20. <converters:BoolToColor4 x:Key="boolToColor4"/>
  21. <converters:BoolToVisibility2 x:Key="BoolToVisibility2"/>
  22. <converters2:AllMultiValueConverter x:Key="AllMultiValueConverter"/>
  23. <converters2:AnyMultiValueConverter x:Key="AnyMultiValueConverter"/>
  24. <Style x:Key="DoorAnimationStyle" TargetType="Rectangle">
  25. <Setter Property="RenderTransform">
  26. <Setter.Value>
  27. <RotateTransform Angle="0"/>
  28. </Setter.Value>
  29. </Setter>
  30. </Style>
  31. <Style TargetType="{x:Type TabPanel}">
  32. <Setter Property="Background" Value="Transparent"></Setter>
  33. </Style>
  34. <Style TargetType="TabItem" x:Key="CustomTab">
  35. <Setter Property="Template">
  36. <Setter.Value>
  37. <ControlTemplate TargetType="TabItem">
  38. <Border Name="Border" BorderThickness="1,1,1,1" BorderBrush="Gainsboro" CornerRadius="3" Margin="40,0" Padding="3,1">
  39. <ContentPresenter x:Name="ContentSite"
  40. VerticalAlignment="Center"
  41. HorizontalAlignment="Center"
  42. ContentSource="Header"
  43. Margin="10,2"/>
  44. </Border>
  45. <ControlTemplate.Triggers>
  46. <Trigger Property="IsSelected" Value="True">
  47. <Setter TargetName="Border" Property="Background" Value="#376092" />
  48. <Setter TargetName="ContentSite" Property="TextBlock.Foreground" Value="White" />
  49. </Trigger>
  50. <Trigger Property="IsSelected" Value="False">
  51. <Setter TargetName="Border" Property="Background" Value="#95b3d7" />
  52. </Trigger>
  53. </ControlTemplate.Triggers>
  54. </ControlTemplate>
  55. </Setter.Value>
  56. </Setter>
  57. </Style>
  58. </UserControl.Resources>
  59. <Canvas>
  60. <Canvas>
  61. <!-- 用于整体定位 -->
  62. <Canvas Canvas.Left="100" Canvas.Top="80">
  63. <userControls:VenusSETM Canvas.Top="134" Canvas.Left="500"
  64. VCEIsInstalled="{Binding VCEIsInstalled }"
  65. PMAIsInstalled="{Binding PMAIsInstalled}"
  66. PMBIsInstalled="{Binding PMBIsInstalled}"
  67. PMCIsInstalled="{Binding PMCIsInstalled}"
  68. VCEDoorIsOpen = "{Binding VCEDoorIsOpen}"
  69. PMADoorIsOpen = "{Binding PMADoorIsOpen}"
  70. PMBDoorIsOpen = "{Binding PMBDoorIsOpen}"
  71. PMCDoorIsOpen = "{Binding PMCDoorIsOpen}"
  72. VPAIsShow="False" Panel.ZIndex="1"></userControls:VenusSETM>
  73. <!--PMB Slit Door-->
  74. <Rectangle Width="150" Height="22" Canvas.Top="134" Canvas.Left="548" Panel.ZIndex="100" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="Transparent" Cursor="Hand"
  75. Visibility="{Binding PMBIsInstalled,Converter={StaticResource BoolToVisibility2}}"
  76. >
  77. <Rectangle.ContextMenu >
  78. <ContextMenu>
  79. <MenuItem Header="Open Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMB,True" IsChecked="{Binding PMBDoorIsOpen}" IsEnabled="{Binding PMBDoorIsOpen,Converter={StaticResource BoolToBool}}"/>
  80. <MenuItem Header="Close Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMB,False" IsChecked="{Binding PMBDoorIsOpen,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding PMBDoorIsOpen}"/>
  81. </ContextMenu>
  82. </Rectangle.ContextMenu>
  83. </Rectangle>
  84. <!--VCE Slit Door-->
  85. <Rectangle Width="150" Height="20" Canvas.Top="472" Canvas.Left="548" Panel.ZIndex="100" Fill="Transparent" Cursor="Hand"
  86. Visibility="{Binding VCEIsInstalled,Converter={StaticResource BoolToVisibility2}}">
  87. <Rectangle.ContextMenu >
  88. <ContextMenu>
  89. <MenuItem Header="Open Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="VCE1,True" IsChecked="{Binding VCEDoorIsOpen}" IsEnabled="{Binding VCEDoorIsOpen,Converter={StaticResource BoolToBool}}"/>
  90. <MenuItem Header="Close Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="VCE1,False" IsChecked="{Binding VCEDoorIsOpen,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding VCEDoorIsOpen}"/>
  91. </ContextMenu>
  92. </Rectangle.ContextMenu>
  93. </Rectangle>
  94. <!--PMA Slit Door-->
  95. <Rectangle Width="150" Height="20" Canvas.Top="180" Canvas.Left="522" Panel.ZIndex="100" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="Transparent" Cursor="Hand"
  96. Visibility="{Binding PMAIsInstalled,Converter={StaticResource BoolToVisibility2}}"
  97. >
  98. <Rectangle.ContextMenu >
  99. <ContextMenu>
  100. <MenuItem Header="Open Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMA,True" IsChecked="{Binding PMADoorIsOpen}" IsEnabled="{Binding PMADoorIsOpen,Converter={StaticResource BoolToBool}}"/>
  101. <MenuItem Header="Close Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMA,False" IsChecked="{Binding PMADoorIsOpen,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding PMADoorIsOpen}"/>
  102. </ContextMenu>
  103. </Rectangle.ContextMenu>
  104. <Rectangle.RenderTransform>
  105. <RotateTransform Angle="90"></RotateTransform>
  106. </Rectangle.RenderTransform>
  107. </Rectangle>
  108. <!-- PMC -->
  109. <Rectangle Width="150" Height="20" Canvas.Top="180" Canvas.Left="743" Panel.ZIndex="100" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="Transparent" Cursor="Hand"
  110. Visibility="{Binding PMCIsInstalled,Converter={StaticResource BoolToVisibility2}}"
  111. >
  112. <Rectangle.ContextMenu >
  113. <ContextMenu>
  114. <MenuItem Header="Open Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMC,True" IsChecked="{Binding PMCDoorIsOpen}" IsEnabled="{Binding PMCDoorIsOpen,Converter={StaticResource BoolToBool}}"/>
  115. <MenuItem Header="Close Door" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMC,False" IsChecked="{Binding PMCDoorIsOpen,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding PMCDoorIsOpen}"/>
  116. </ContextMenu>
  117. </Rectangle.ContextMenu>
  118. <Rectangle.RenderTransform>
  119. <RotateTransform Angle="90"></RotateTransform>
  120. </Rectangle.RenderTransform>
  121. </Rectangle>
  122. <userControls:Vce Canvas.Top="462" Canvas.Left="520" Width="200" Height="180" HorizontalAlignment="Center" VerticalAlignment="Top" VCEOutDoorIsOpen="{Binding VCEOutDoorIsOpen}"></userControls:Vce>
  123. <!-- 管道 -->
  124. <Canvas Canvas.Top="270">
  125. <!-- N2 -->
  126. <userControls:FlowPipe Height="8" Width="180" Canvas.Left="80" Canvas.Top="50" IsFlowing="{Binding TMValveN2IsOpen}"/>
  127. <Image Width="40" Height="25" Canvas.Top="42" Canvas.Left="40" Source="Pack://application:,,,/Venus_Themes;Component/Resources/Arrow.png" Stretch="Uniform"/>
  128. <TextBlock FontSize="15" Canvas.Top="46" Canvas.Left="10" Text="N2"/>
  129. <userControls:FlowPipe Height="8" Width="180" Canvas.Left="260" Canvas.Top="54" RotateTransformValue="90">
  130. <userControls:FlowPipe.IsFlowing>
  131. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  132. <Binding Path="TMValveN2IsOpen"/>
  133. </MultiBinding>
  134. </userControls:FlowPipe.IsFlowing>
  135. </userControls:FlowPipe>
  136. <userControls:FlowPipe Height="8" Width="160" Canvas.Left="260" Canvas.Top="-105" RotateTransformValue="90">
  137. <userControls:FlowPipe.IsFlowing>
  138. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  139. <Binding Path="TMValveN2IsOpen"/>
  140. </MultiBinding>
  141. </userControls:FlowPipe.IsFlowing>
  142. </userControls:FlowPipe>
  143. <!--<customControls:CommonValveControl Status="{Binding TMValveN2IsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="160" Canvas.Top="44" Tag="TMValveN2" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3"/>-->
  144. <userControls:FlowPipe Height="8" Width="50" Canvas.Left="259" Canvas.Top="-112" IsFlowing="{Binding TMValveN2IsOpen}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  145. <Ellipse Width="20" Height="20" Canvas.Left="111" Canvas.Top="44" Fill="White" Stroke="Silver" StrokeThickness="2" Panel.ZIndex="3" HorizontalAlignment="Left" VerticalAlignment="Top"></Ellipse>
  146. <userControls:FlowPipe Height="8" Width="50" Canvas.Left="259" Canvas.Top="234" IsFlowing="{Binding TMValveN2IsOpen}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  147. <!-- TM vent -->
  148. <!-- Soft vent -->
  149. <userControls:TextboxWithLabel Canvas.Top="-106" Canvas.Left="324" TextBoxValue="{Binding HeGasSetpoint,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" LabelValue="MFC" TextBoxColor="White" IsReadOnly="False" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="3"/>
  150. <customControls:CommonValveControl Canvas.Left="405" Canvas.Top="-86" Status="{Binding TMSoftVentIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Tag="TMSoftVent" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3"/>
  151. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="315" Canvas.Top="-81" IsFlowing="{Binding TMSoftVentIsOpen}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  152. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="315" Canvas.Top="-110" IsFlowing="{Binding TMSoftVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  153. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="445" Canvas.Top="-110" IsFlowing="{Binding TMSoftVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  154. <!-- fast vent -->
  155. <customControls:CommonValveControl Canvas.Left="365" Canvas.Top="-150" Status="{Binding TMFastVentIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Tag="TMFastVent" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  156. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="315" Canvas.Top="-144" IsFlowing="{Binding TMFastVentIsOpen}" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  157. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="315" Canvas.Top="-137" IsFlowing="{Binding TMFastVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  158. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="445" Canvas.Top="-137" IsFlowing="{Binding TMFastVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  159. <userControls:FlowPipe Height="8" Width="83" Canvas.Left="439" Canvas.Top="-112" HorizontalAlignment="Left" VerticalAlignment="Center">
  160. <userControls:FlowPipe.IsFlowing>
  161. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  162. <Binding Path="TMFastVentIsOpen"/>
  163. <Binding Path="TMSoftVentIsOpen"/>
  164. </MultiBinding>
  165. </userControls:FlowPipe.IsFlowing>
  166. </userControls:FlowPipe>
  167. <!-- vce vent -->
  168. <!-- vce fast vent-->
  169. <customControls:CommonValveControl Status="{Binding VCEFastVentIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="365" Canvas.Top="197" Tag="VCEFastVent" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  170. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="315" Canvas.Top="204" IsFlowing="{Binding VCEFastVentIsOpen}" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  171. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="315" Canvas.Top="214" IsFlowing="{Binding VCEFastVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  172. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="445" Canvas.Top="214" IsFlowing="{Binding VCEFastVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  173. <!-- vce soft vent -->
  174. <customControls:CommonValveControl Status="{Binding VCESoftVentIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="365" Canvas.Top="258" Tag="VCESoftVent" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  175. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="315" Canvas.Top="264" IsFlowing="{Binding VCESoftVentIsOpen}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  176. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="315" Canvas.Top="234" IsFlowing="{Binding VCESoftVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  177. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="445" Canvas.Top="234" IsFlowing="{Binding VCESoftVentIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  178. <userControls:FlowPipe Height="8" Width="82" Canvas.Left="439" Canvas.Top="234" HorizontalAlignment="Left" VerticalAlignment="Center">
  179. <userControls:FlowPipe.IsFlowing>
  180. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  181. <Binding Path="VCEFastVentIsOpen"/>
  182. <Binding Path="VCESoftVentIsOpen"/>
  183. </MultiBinding>
  184. </userControls:FlowPipe.IsFlowing>
  185. </userControls:FlowPipe>
  186. <!--TM pump-->
  187. <userControls:TextboxWithLabel Canvas.Left="1080" Canvas.Top="39" LabelValue="CM(Torr)" TextBoxValue="{Binding RtDataValues[SETM.TMPipelinePressure.Value],StringFormat='F1'}" TextBoxColor="#D7E4BD" Panel.ZIndex="3"/>
  188. <!--TM fast pump-->
  189. <customControls:CommonValveControl Status="{Binding TMFastPumpIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="900" Canvas.Top="-151" Tag="TMFastPump" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  190. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="850" Canvas.Top="-144" IsFlowing="{Binding TMFastPumpIsOpen}" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  191. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="850" Canvas.Top="-137" IsFlowing="{Binding TMFastPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  192. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="978" Canvas.Top="-137" IsFlowing="{Binding TMFastPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  193. <!--TM soft pump-->
  194. <customControls:CommonValveControl Status="{Binding TMSoftPumpIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="900" Canvas.Top="-87" Tag="TMSoftPump" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  195. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="850" Canvas.Top="-81" IsFlowing="{Binding TMSoftPumpIsOpen}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  196. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="850" Canvas.Top="-110" IsFlowing="{Binding TMSoftPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  197. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="978" Canvas.Top="-110" IsFlowing="{Binding TMSoftPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  198. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="724" Canvas.Top="-112" HorizontalAlignment="Left" VerticalAlignment="Center">
  199. <userControls:FlowPipe.IsFlowing>
  200. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  201. <Binding Path="TMSoftPumpIsOpen"/>
  202. <Binding Path="TMFastPumpIsOpen"/>
  203. </MultiBinding>
  204. </userControls:FlowPipe.IsFlowing>
  205. </userControls:FlowPipe>
  206. <userControls:FlowPipe Height="8" Width="90" Canvas.Left="975" Canvas.Top="-112" HorizontalAlignment="Center" VerticalAlignment="Top">
  207. <userControls:FlowPipe.IsFlowing>
  208. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  209. <Binding Path="TMSoftPumpIsOpen"/>
  210. <Binding Path="TMFastPumpIsOpen"/>
  211. </MultiBinding>
  212. </userControls:FlowPipe.IsFlowing>
  213. </userControls:FlowPipe>
  214. <!-- vce pump-->
  215. <!-- vce fast pump-->
  216. <customControls:CommonValveControl Status="{Binding VCESoftPumpIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="900" Canvas.Top="198" Tag="VCESoftPump" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  217. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="845" Canvas.Top="204" IsFlowing="{Binding VCESoftPumpIsOpen}" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  218. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="845" Canvas.Top="214" IsFlowing="{Binding VCESoftPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  219. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="973" Canvas.Top="214" IsFlowing="{Binding VCESoftPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  220. <!-- vce soft pump-->
  221. <customControls:CommonValveControl Status="{Binding VCEFastPumpIsOpen,Mode=TwoWay}" ValveOrientation="Horizontal" Height="20" Width="20" Canvas.Left="900" Canvas.Top="258" Tag="VCEFastPump" Command="{Binding ControlValveCommand}" CommandParameter="{Binding RelativeSource={x:Static RelativeSource.Self}}" IsCanEdit="{Binding TMIsOFFline}" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  222. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="845" Canvas.Top="264" IsFlowing="{Binding VCEFastPumpIsOpen}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  223. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="845" Canvas.Top="234" IsFlowing="{Binding VCEFastPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  224. <userControls:FlowPipe Height="8" Width="30" Canvas.Left="973" Canvas.Top="234" IsFlowing="{Binding VCEFastPumpIsOpen}" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  225. <userControls:FlowPipe Height="8" Width="95" Canvas.Left="970" Canvas.Top="234" HorizontalAlignment="Left" VerticalAlignment="Center">
  226. <userControls:FlowPipe.IsFlowing>
  227. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  228. <Binding Path="VCESoftPumpIsOpen"/>
  229. <Binding Path="VCEFastPumpIsOpen"/>
  230. </MultiBinding>
  231. </userControls:FlowPipe.IsFlowing>
  232. </userControls:FlowPipe>
  233. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="719" Canvas.Top="234" HorizontalAlignment="Left" VerticalAlignment="Center">
  234. <userControls:FlowPipe.IsFlowing>
  235. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  236. <Binding Path="VCESoftPumpIsOpen"/>
  237. <Binding Path="VCEFastPumpIsOpen"/>
  238. </MultiBinding>
  239. </userControls:FlowPipe.IsFlowing>
  240. </userControls:FlowPipe>
  241. <!-- pump cm -->
  242. <!--<userControls:TextboxWithLabel Canvas.Left="1089" Canvas.Top="38" LabelValue="CM7(Torr)" TextBoxValue="{Binding RtDataValues[TM.LLBPressureGauge.Value],StringFormat='F1'}" TextBoxColor="#D7E4BD" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>-->
  243. <userControls:FlowPipe Height="8" Width="180" Canvas.Left="1074" Canvas.Top="-104" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top">
  244. <userControls:FlowPipe.IsFlowing>
  245. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  246. <Binding Path="TMFastPumpIsOpen"/>
  247. <Binding Path="TMSoftPumpIsOpen"/>
  248. </MultiBinding>
  249. </userControls:FlowPipe.IsFlowing>
  250. </userControls:FlowPipe>
  251. <userControls:FlowPipe Height="8" Width="165" Canvas.Left="1074" Canvas.Top="70" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top">
  252. <userControls:FlowPipe.IsFlowing>
  253. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  254. <Binding Path="VCEFastPumpIsOpen"/>
  255. <Binding Path="VCESoftPumpIsOpen"/>
  256. </MultiBinding>
  257. </userControls:FlowPipe.IsFlowing>
  258. </userControls:FlowPipe>
  259. <userControls:FlowPipe Height="8" Width="120" Canvas.Left="1072" Canvas.Top="63" HorizontalAlignment="Left" VerticalAlignment="Center">
  260. <userControls:FlowPipe.IsFlowing>
  261. <MultiBinding Converter="{StaticResource AnyMultiValueConverter}">
  262. <Binding Path="VCESoftPumpIsOpen"/>
  263. <Binding Path="VCEFastPumpIsOpen"/>
  264. <Binding Path="TMFastPumpIsOpen"/>
  265. <Binding Path="TMSoftPumpIsOpen"/>
  266. </MultiBinding>
  267. </userControls:FlowPipe.IsFlowing>
  268. </userControls:FlowPipe>
  269. <userControls:Pump Canvas.Left="1183" Canvas.Top="50" Width="35" Height="35" IsOpen="{Binding RtDataValues[SETM.PumpIsRunning],Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Center">
  270. <userControls:Pump.ContextMenu>
  271. <ContextMenu>
  272. <MenuItem Header="ON" Command="{Binding SETMPumpCommand}" CommandParameter="True" IsChecked="{Binding RtDataValues[SETM.PumpIsRunning],Mode=OneWay}" IsEnabled="{Binding RtDataValues[SETM.PumpIsRunning],Converter={StaticResource BoolToBool},Mode=OneWay}"/>
  273. <MenuItem Header="OFF" Command="{Binding SETMPumpCommand}" CommandParameter="False" IsChecked="{Binding RtDataValues[SETM.PumpIsRunning],Converter={StaticResource BoolToBool},Mode=OneWay}" IsEnabled="{Binding RtDataValues[SETM.PumpIsRunning],Mode=OneWay}"/>
  274. </ContextMenu>
  275. </userControls:Pump.ContextMenu>
  276. </userControls:Pump>
  277. <!-- tm atm-->
  278. <userControls:TextboxWithLabel Canvas.Left="920" Canvas.Top="45" LabelValue="CM(Torr)" TextBoxValue="{Binding RtDataValues[SETM.TMPressure.Value],StringFormat='F1'}" TextBoxColor="#D7E4BD" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  279. <Ellipse Width="20" Height="20" Canvas.Left="859" Canvas.Top="85" Stroke="Silver" StrokeThickness="2" Panel.ZIndex="3" HorizontalAlignment="Left" VerticalAlignment="Center" Fill="{Binding TMIsVAC,Converter={StaticResource boolToColor}}"></Ellipse>
  280. <Ellipse Width="20" Height="20" Canvas.Left="886" Canvas.Top="41" Stroke="Silver" StrokeThickness="2" Panel.ZIndex="3" HorizontalAlignment="Left" VerticalAlignment="Center" Fill="{Binding TMIsATM,Converter={StaticResource boolToColor}}"></Ellipse>
  281. <userControls:FlowPipe Height="8" Width="200" Canvas.Left="721" Canvas.Top="70" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="2"/>
  282. <userControls:FlowPipe Height="8" Width="20" Canvas.Left="873" Canvas.Top="71" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Center"></userControls:FlowPipe>
  283. <userControls:FlowPipe Height="8" Width="20" Canvas.Left="900" Canvas.Top="55" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top"></userControls:FlowPipe>
  284. <!-- vce atm-->
  285. <userControls:TextboxWithLabel Canvas.Left="815" Canvas.Top="306" LabelValue="CM(Torr)" TextBoxValue="{Binding RtDataValues[SETM.VCEPressure.Value],StringFormat='F1'}" TextBoxColor="#D7E4BD" Panel.ZIndex="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  286. <Ellipse Width="20" Height="20" Canvas.Left="758" Canvas.Top="344" Stroke="Silver" StrokeThickness="2" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="{Binding VCEIsVAC,Converter={StaticResource boolToColor}}"></Ellipse>
  287. <Ellipse Width="20" Height="20" Canvas.Left="779" Canvas.Top="305" Stroke="Silver" StrokeThickness="2" Panel.ZIndex="3" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="{Binding VCEIsATM,Converter={StaticResource boolToColor}}"></Ellipse>
  288. <userControls:FlowPipe Height="8" Width="100" Canvas.Left="719" Canvas.Top="331" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="2"/>
  289. <userControls:FlowPipe Height="8" Width="20" Canvas.Left="772" Canvas.Top="331" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  290. <userControls:FlowPipe Height="8" Width="20" Canvas.Left="793" Canvas.Top="319" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top"></userControls:FlowPipe>
  291. <!-- 转角 -->
  292. <userControls:Pipe2 Canvas.Left="1061" Canvas.Top="-112" HorizontalAlignment="Center" VerticalAlignment="Top" />
  293. <userControls:Pipe2 Canvas.Left="965" Canvas.Top="-144" HorizontalAlignment="Center" VerticalAlignment="Top" />
  294. <userControls:Pipe2 Canvas.Left="432" Canvas.Top="-144" HorizontalAlignment="Left" VerticalAlignment="Top" />
  295. <userControls:Pipe2 Canvas.Left="432" Canvas.Top="204" HorizontalAlignment="Left" VerticalAlignment="Center" />
  296. <userControls:Pipe2 Canvas.Left="960" Canvas.Top="204" HorizontalAlignment="Left" VerticalAlignment="Center" />
  297. <userControls:Pipe2 Canvas.Left="1074" Canvas.Top="229" HorizontalAlignment="Left" VerticalAlignment="Center" RotateTransformValue="90" />
  298. <userControls:Pipe2 Canvas.Left="973" Canvas.Top="259" HorizontalAlignment="Left" VerticalAlignment="Center" RotateTransformValue="90" />
  299. <userControls:Pipe2 Canvas.Left="445" Canvas.Top="259" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="90" />
  300. <userControls:Pipe2 Canvas.Left="445" Canvas.Top="-86" HorizontalAlignment="Center" VerticalAlignment="Top" RotateTransformValue="90" />
  301. <userControls:Pipe2 Canvas.Left="978" Canvas.Top="-86" HorizontalAlignment="Left" VerticalAlignment="Center" RotateTransformValue="90" />
  302. <userControls:Pipe2 Canvas.Left="842" Canvas.Top="-131" HorizontalAlignment="Left" VerticalAlignment="Center" RotateTransformValue="-90" />
  303. <userControls:Pipe2 Canvas.Left="307" Canvas.Top="-131" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-90" />
  304. <userControls:Pipe2 Canvas.Left="252" Canvas.Top="-99" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-90" />
  305. <userControls:Pipe2 Canvas.Left="307" Canvas.Top="217" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="-90" />
  306. <userControls:Pipe2 Canvas.Left="837" Canvas.Top="217" HorizontalAlignment="Left" VerticalAlignment="Center" RotateTransformValue="-90" />
  307. <userControls:Pipe2 Canvas.Left="850" Canvas.Top="272" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="180" />
  308. <userControls:Pipe2 Canvas.Left="855" Canvas.Top="-73" HorizontalAlignment="Left" VerticalAlignment="Center" RotateTransformValue="180" />
  309. <userControls:Pipe2 Canvas.Left="320" Canvas.Top="-73" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="180" />
  310. <userControls:Pipe2 Canvas.Left="320" Canvas.Top="272" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="180" />
  311. <userControls:Pipe2 Canvas.Left="265" Canvas.Top="242" HorizontalAlignment="Left" VerticalAlignment="Top" RotateTransformValue="180" />
  312. <!-- 文字 -->
  313. <TextBlock FontSize="15" Canvas.Top="70" Canvas.Left="162" Text="V1"/>
  314. <TextBlock FontSize="15" Canvas.Top="-174" Canvas.Left="317" Text="TM Fast vent V5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  315. <TextBlock FontSize="15" Canvas.Top="-51" Canvas.Left="356" Text="TM Soft vent V4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  316. <TextBlock FontSize="15" Canvas.Top="173" Canvas.Left="316" Text="VCE Fast vent V5" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  317. <TextBlock FontSize="15" Canvas.Top="285" Canvas.Left="315" Text="VCE Soft vent V4" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  318. <TextBlock FontSize="15" Canvas.Top="173" Canvas.Left="846" Text="VCE Soft Pump V3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  319. <TextBlock FontSize="15" Canvas.Top="278" Canvas.Left="846" Text="VCE Fast Pump V2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  320. <TextBlock FontSize="15" Canvas.Top="-57" Canvas.Left="849" Text="TM Soft Pump V2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  321. <TextBlock FontSize="15" Canvas.Top="-175" Canvas.Left="849" Text="TM Fast Pump V3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  322. <TextBlock FontSize="15" Canvas.Top="285" Canvas.Left="773" Text="ATM" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  323. <TextBlock FontSize="15" Canvas.Top="366" Canvas.Left="753" Text="VAC" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  324. <TextBlock FontSize="15" Canvas.Top="24" Canvas.Left="879" Text="ATM" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  325. <TextBlock FontSize="15" Canvas.Top="105" Canvas.Left="854" Text="VAC" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  326. </Canvas>
  327. </Canvas>
  328. </Canvas>
  329. <Canvas>
  330. <TabControl Height="700" Width="400" Canvas.Left="1370" Canvas.Top="14" Background="Transparent" TabStripPlacement="Top">
  331. <TabItem Header="TM" Style="{StaticResource CustomTab}">
  332. <Grid>
  333. <Grid.RowDefinitions>
  334. <RowDefinition Height=".5*"/>
  335. <RowDefinition Height="*"/>
  336. <RowDefinition Height="*"/>
  337. <RowDefinition Height="*"/>
  338. </Grid.RowDefinitions>
  339. <Border Grid.Row="0" Grid.Column="0" Background="#95b3d7" Margin="5" CornerRadius="5">
  340. <Grid>
  341. <Grid.RowDefinitions>
  342. <RowDefinition Height="*"></RowDefinition>
  343. <RowDefinition Height="*"></RowDefinition>
  344. </Grid.RowDefinitions>
  345. <Grid.ColumnDefinitions>
  346. <ColumnDefinition Width="*"/>
  347. <ColumnDefinition Width=".3*"/>
  348. <ColumnDefinition Width="1.5*"/>
  349. <ColumnDefinition Width=".3*"/>
  350. <ColumnDefinition Width="*"/>
  351. </Grid.ColumnDefinitions>
  352. <TextBlock Grid.Row="0" Grid.Column="0" TextAlignment="Center" VerticalAlignment="Center">Status</TextBlock>
  353. <TextBlock Grid.Row="1" Grid.Column="0" TextAlignment="Center" VerticalAlignment="Center">leak Check</TextBlock>
  354. <TextBox Grid.Row="1" Grid.Column="2" TextAlignment="Center" VerticalAlignment="Center">0.34 mt/min</TextBox>
  355. <TextBox Grid.Row="0" Grid.Column="2" TextAlignment="Center" VerticalAlignment="Center">offline</TextBox>
  356. <Grid Grid.Column="4" Grid.RowSpan="2">
  357. <Grid.RowDefinitions>
  358. <RowDefinition Height="*"></RowDefinition>
  359. <RowDefinition Height="*"></RowDefinition>
  360. <RowDefinition Height="*"></RowDefinition>
  361. <RowDefinition Height="*"></RowDefinition>
  362. </Grid.RowDefinitions>
  363. <Button Grid.Row="0" Margin="2">Online</Button>
  364. <Button Grid.Row="1" Margin="2">Offline</Button>
  365. <Button Grid.Row="2" Margin="2" Command="{Binding TmHome}">Home</Button>
  366. </Grid>
  367. </Grid>
  368. </Border>
  369. <Border Grid.Row="1" Grid.Column="0" Background="#95b3d7" Margin="5" Padding="20,40" CornerRadius="5">
  370. <Grid>
  371. <Grid.RowDefinitions>
  372. <RowDefinition Height="*"/>
  373. <RowDefinition Height="*"/>
  374. <RowDefinition Height="*"/>
  375. </Grid.RowDefinitions>
  376. <Grid.ColumnDefinitions>
  377. <ColumnDefinition Width="*"></ColumnDefinition>
  378. <ColumnDefinition Width=".5*"></ColumnDefinition>
  379. <ColumnDefinition Width="*"></ColumnDefinition>
  380. </Grid.ColumnDefinitions>
  381. <Button Grid.Column="0" Grid.Row="0">Leak Check</Button>
  382. <Button Grid.Column="2" Grid.Row="0" Command="{Binding PumpDown}" CommandParameter="SETM">Pump Down</Button>
  383. <Button Grid.Column="0" Grid.Row="2" Command="{Binding Vent}" CommandParameter="SETM">Vent</Button>
  384. <Button Grid.Column="2" Grid.Row="2">Pump Purge</Button>
  385. </Grid>
  386. </Border>
  387. <Border Grid.Row="2" Grid.Column="0" Grid.RowSpan="2" Background="#95b3d7" Margin="5" Padding="20,40" CornerRadius="5">
  388. <Grid>
  389. <Grid.RowDefinitions>
  390. <RowDefinition Height="*"/>
  391. <RowDefinition Height="*"/>
  392. <RowDefinition Height="*"/>
  393. <RowDefinition Height="*"/>
  394. <RowDefinition Height="*"/>
  395. </Grid.RowDefinitions>
  396. <Grid.ColumnDefinitions>
  397. <ColumnDefinition Width="*"></ColumnDefinition>
  398. <ColumnDefinition Width=".5*"></ColumnDefinition>
  399. <ColumnDefinition Width="*"></ColumnDefinition>
  400. </Grid.ColumnDefinitions>
  401. <Button Grid.Column="0" Grid.Row="0" Content="PMA Door Open" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMA,True" IsEnabled="{Binding PMADoorIsOpen,Converter={StaticResource BoolToBool}}"></Button>
  402. <Button Grid.Column="2" Grid.Row="0" Content="PMA Door Close" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMA,False" IsEnabled="{Binding PMADoorIsOpen}"></Button>
  403. <Button Grid.Column="0" Grid.Row="2" Content="PMB Door Open" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMB,True" IsEnabled="{Binding PMBDoorIsOpen,Converter={StaticResource BoolToBool}}"></Button>
  404. <Button Grid.Column="2" Grid.Row="2" Content="PMB Door Close" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMB,False" IsEnabled="{Binding PMBDoorIsOpen}"></Button>
  405. <Button Grid.Column="0" Grid.Row="4" Content="PMC Door Open" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMC,True" IsEnabled="{Binding PMCDoorIsOpen,Converter={StaticResource BoolToBool}}"></Button>
  406. <Button Grid.Column="2" Grid.Row="4" Content="PMC Door Close" Command="{Binding ControlSlitDoorCommand}" CommandParameter="PMC,False" IsEnabled="{Binding PMCDoorIsOpen}"></Button>
  407. </Grid>
  408. </Border>
  409. </Grid>
  410. </TabItem>
  411. <TabItem Header="VCE" Style="{StaticResource CustomTab}">
  412. <Grid>
  413. <Grid.RowDefinitions>
  414. <RowDefinition Height=".5*"/>
  415. <RowDefinition Height="*"/>
  416. <RowDefinition Height="*"/>
  417. <RowDefinition Height="*"/>
  418. </Grid.RowDefinitions>
  419. <Border Grid.Row="0" Grid.Column="0" Background="#95b3d7" Margin="5" CornerRadius="5" >
  420. <Grid>
  421. <Grid.RowDefinitions>
  422. <RowDefinition Height="*"></RowDefinition>
  423. <RowDefinition Height="*"></RowDefinition>
  424. </Grid.RowDefinitions>
  425. <Grid.ColumnDefinitions>
  426. <ColumnDefinition Width="*"/>
  427. <ColumnDefinition Width=".3*"/>
  428. <ColumnDefinition Width="1.5*"/>
  429. <ColumnDefinition Width=".3*"/>
  430. <ColumnDefinition Width="*"/>
  431. </Grid.ColumnDefinitions>
  432. <TextBlock Grid.Row="0" Grid.Column="0" TextAlignment="Center" VerticalAlignment="Center">Status</TextBlock>
  433. <TextBlock Grid.Row="1" Grid.Column="0" TextAlignment="Center" VerticalAlignment="Center">leak Check</TextBlock>
  434. <TextBox Grid.Row="1" Grid.Column="2" TextAlignment="Center" VerticalAlignment="Center">0.34 mt/min</TextBox>
  435. <TextBox Grid.Row="0" Grid.Column="2" TextAlignment="Center" VerticalAlignment="Center">offline</TextBox>
  436. <Grid Grid.Column="4" Grid.RowSpan="2">
  437. <Grid.RowDefinitions>
  438. <RowDefinition Height="*"></RowDefinition>
  439. <RowDefinition Height="*"></RowDefinition>
  440. <RowDefinition Height="*"></RowDefinition>
  441. <RowDefinition Height="*"></RowDefinition>
  442. </Grid.RowDefinitions>
  443. <Button Grid.Row="0" Margin="2">Online</Button>
  444. <Button Grid.Row="1" Margin="2">Offline</Button>
  445. <Button Grid.Row="2" Margin="2" Command="{Binding VCEHome}">Home</Button>
  446. <Button Grid.Row="3" Margin="2" Command="{Binding VCEClear}">Clear Error</Button>
  447. </Grid>
  448. </Grid>
  449. </Border>
  450. <Border Grid.Row="1" Grid.Column="0" Background="#95b3d7" Margin="5" Padding="20,40" CornerRadius="5">
  451. <Grid>
  452. <Grid.RowDefinitions>
  453. <RowDefinition Height="*"/>
  454. <RowDefinition Height="*"/>
  455. <RowDefinition Height="*"/>
  456. </Grid.RowDefinitions>
  457. <Grid.ColumnDefinitions>
  458. <ColumnDefinition Width="*"></ColumnDefinition>
  459. <ColumnDefinition Width=".5*"></ColumnDefinition>
  460. <ColumnDefinition Width="*"></ColumnDefinition>
  461. </Grid.ColumnDefinitions>
  462. <Button Grid.Column="0" Grid.Row="0">Leak check</Button>
  463. <Button Grid.Column="2" Grid.Row="0" Command="{Binding PumpDown}" CommandParameter="VCE1">Pump Down</Button>
  464. <Button Grid.Column="0" Grid.Row="2" Command="{Binding Vent}" CommandParameter="VCE1">Vent</Button>
  465. <Button Grid.Column="2" Grid.Row="2">Pump Purge</Button>
  466. </Grid>
  467. </Border>
  468. <Border Grid.Row="2" Grid.Column="0" Padding="20,40" Background="#95b3d7" Margin="5" CornerRadius="5">
  469. <Grid>
  470. <Grid.RowDefinitions>
  471. <RowDefinition Height="*"/>
  472. <RowDefinition Height=".5*"/>
  473. <RowDefinition Height="*"/>
  474. </Grid.RowDefinitions>
  475. <Grid.ColumnDefinitions>
  476. <ColumnDefinition Width="*"></ColumnDefinition>
  477. <ColumnDefinition Width=".5*"></ColumnDefinition>
  478. <ColumnDefinition Width="*"></ColumnDefinition>
  479. </Grid.ColumnDefinitions>
  480. <Button Grid.Column="0" Grid.Row="0" Command="{Binding MapCommand}">Mapping</Button>
  481. <Button Grid.Column="2" Grid.Row="0" Command="{Binding GoToLoadCommand}">Go to load position</Button>
  482. <Grid Grid.Column="0" Grid.Row="2">
  483. <Grid.ColumnDefinitions>
  484. <ColumnDefinition Width="*"></ColumnDefinition>
  485. <ColumnDefinition Width="22"></ColumnDefinition>
  486. </Grid.ColumnDefinitions>
  487. <Button Grid.Column="0" Command="{Binding GoToSlotCommand}">Go to slot</Button>
  488. <TextBox Grid.Column="1" Width="22" Text="{Binding GoToSlotNumber,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" VerticalAlignment="Center" Padding="0,10"></TextBox>
  489. </Grid>
  490. <Button Grid.Column="2" Grid.Row="2" Command="{Binding HOMECommand}">Home plant</Button>
  491. </Grid>
  492. </Border>
  493. <Border Grid.Row="3" Grid.Column="0" Padding="20,40" Background="#95b3d7" Margin="5" CornerRadius="5">
  494. <Grid>
  495. <Grid.RowDefinitions>
  496. <RowDefinition Height="*"/>
  497. <RowDefinition Height=".5*"/>
  498. <RowDefinition Height="*"/>
  499. </Grid.RowDefinitions>
  500. <Grid.ColumnDefinitions>
  501. <ColumnDefinition Width="*"></ColumnDefinition>
  502. <ColumnDefinition Width=".5*"></ColumnDefinition>
  503. <ColumnDefinition Width="*"></ColumnDefinition>
  504. </Grid.ColumnDefinitions>
  505. <Button Grid.Column="0" Grid.Row="0" Command="{Binding ControlSlitDoorCommand}" CommandParameter="VCE1,True" IsEnabled="{Binding VCEDoorIsOpen,Converter={StaticResource BoolToBool}}">Inner Door Open</Button>
  506. <Button Grid.Column="2" Grid.Row="0" Command="{Binding ControlSlitDoorCommand}" CommandParameter="VCE1,False" IsEnabled="{Binding VCEDoorIsOpen}">Inner Door Close</Button>
  507. <Button Grid.Column="0" Grid.Row="2" Command="{Binding OpenDoorCommand}">Outer Door open</Button>
  508. <Button Grid.Column="2" Grid.Row="2" Command="{Binding CloseDoorCommand}">Outer Door Close</Button>
  509. </Grid>
  510. </Border>
  511. </Grid>
  512. </TabItem>
  513. <TabItem Header="SMIF" Style="{StaticResource CustomTab}">
  514. <Grid>
  515. <Grid.RowDefinitions>
  516. <RowDefinition Height=".5*"/>
  517. <RowDefinition Height="*"/>
  518. <RowDefinition Height="*"/>
  519. <RowDefinition Height="*"/>
  520. </Grid.RowDefinitions>
  521. <Border Grid.Row="0" Grid.Column="0" Background="#95b3d7" Margin="5" CornerRadius="5" >
  522. <Grid>
  523. <Grid.RowDefinitions>
  524. <RowDefinition Height="*"></RowDefinition>
  525. <RowDefinition Height="*"></RowDefinition>
  526. </Grid.RowDefinitions>
  527. <Grid.ColumnDefinitions>
  528. <ColumnDefinition Width="*"/>
  529. <ColumnDefinition Width=".3*"/>
  530. <ColumnDefinition Width="1.5*"/>
  531. <ColumnDefinition Width=".3*"/>
  532. <ColumnDefinition Width="*"/>
  533. </Grid.ColumnDefinitions>
  534. <TextBlock Grid.Row="0" Grid.Column="0" TextAlignment="Center" VerticalAlignment="Center">Status</TextBlock>
  535. <TextBlock Grid.Row="1" Grid.Column="0" TextAlignment="Center" VerticalAlignment="Center">Action Info</TextBlock>
  536. <TextBox Grid.Row="1" Grid.Column="2" TextAlignment="Center" VerticalAlignment="Center">HOME OK</TextBox>
  537. <TextBox Grid.Row="0" Grid.Column="2" TextAlignment="Center" VerticalAlignment="Center">offline</TextBox>
  538. <Grid Grid.Column="4" Grid.RowSpan="2">
  539. <Grid.RowDefinitions>
  540. <RowDefinition Height="*"></RowDefinition>
  541. <RowDefinition Height="*"></RowDefinition>
  542. <RowDefinition Height="*"></RowDefinition>
  543. <RowDefinition Height="*"></RowDefinition>
  544. </Grid.RowDefinitions>
  545. <Button Grid.Row="0" Margin="2">Online</Button>
  546. <Button Grid.Row="1" Margin="2">Offline</Button>
  547. <Button Grid.Row="2" Margin="2">Home</Button>
  548. </Grid>
  549. </Grid>
  550. </Border>
  551. <Border Grid.RowSpan="3" Grid.Row="1" Padding="20,40" Background="#95b3d7" Margin="5" CornerRadius="5">
  552. <Grid>
  553. <Grid.ColumnDefinitions>
  554. <ColumnDefinition></ColumnDefinition>
  555. <ColumnDefinition Width=".5*"></ColumnDefinition>
  556. <ColumnDefinition></ColumnDefinition>
  557. </Grid.ColumnDefinitions>
  558. <Grid.RowDefinitions>
  559. <RowDefinition></RowDefinition>
  560. <RowDefinition Height=".5*"></RowDefinition>
  561. <RowDefinition></RowDefinition>
  562. <RowDefinition Height=".5*"></RowDefinition>
  563. <RowDefinition></RowDefinition>
  564. <RowDefinition Height="3*"></RowDefinition>
  565. </Grid.RowDefinitions>
  566. <Button Grid.Column="0" Grid.Row="0" Content="Foup clamp"></Button>
  567. <Button Grid.Column="2" Grid.Row="0" Content="Foup unclamp"></Button>
  568. <Button Grid.Column="0" Grid.Row="2" Content="Open cassette"></Button>
  569. <Button Grid.Column="2" Grid.Row="2" Content="Close cassette"></Button>
  570. <Button Grid.Column="0" Grid.Row="4" Content="Load cassette"></Button>
  571. <Button Grid.Column="2" Grid.Row="4" Content="Unload cassette "></Button>
  572. </Grid>
  573. </Border>
  574. </Grid>
  575. </TabItem>
  576. </TabControl>
  577. </Canvas>
  578. </Canvas>
  579. </UserControl>