终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

1679 linhas
120 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.Academy.View.DeviceMotion_2View"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:bpa="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.Academy.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel" d:DesignHeight="950" d:DesignWidth="1735"
  10. mc:Ignorable="d">
  11. <UserControl.Resources>
  12. <Style x:Key="checkBox" TargetType="{x:Type CheckBox}">
  13. <Setter Property="HorizontalContentAlignment" Value="Center" />
  14. <Setter Property="VerticalContentAlignment" Value="Center" />
  15. <Setter Property="Template">
  16. <Setter.Value>
  17. <ControlTemplate TargetType="{x:Type CheckBox}">
  18. <Border
  19. x:Name="bord"
  20. Width="{TemplateBinding Width}"
  21. Height="{TemplateBinding Height}"
  22. Background="{TemplateBinding Background}"
  23. BorderBrush="{TemplateBinding BorderBrush}"
  24. BorderThickness="{TemplateBinding BorderThickness}">
  25. <ContentControl
  26. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  27. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  28. Content="{TemplateBinding Content}"
  29. Foreground="{TemplateBinding Foreground}" />
  30. </Border>
  31. <ControlTemplate.Triggers>
  32. <Trigger Property="IsChecked" Value="True">
  33. <Setter TargetName="bord" Property="Background">
  34. <Setter.Value>
  35. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
  36. </Setter.Value>
  37. </Setter>
  38. </Trigger>
  39. <Trigger Property="IsChecked" Value="False">
  40. <Setter TargetName="bord" Property="Background">
  41. <Setter.Value>
  42. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  43. </Setter.Value>
  44. </Setter>
  45. </Trigger>
  46. </ControlTemplate.Triggers>
  47. </ControlTemplate>
  48. </Setter.Value>
  49. </Setter>
  50. </Style>
  51. <Style x:Key="radiobutton" TargetType="RadioButton">
  52. <Setter Property="HorizontalContentAlignment" Value="Center" />
  53. <Setter Property="VerticalContentAlignment" Value="Center" />
  54. <Setter Property="Template">
  55. <Setter.Value>
  56. <ControlTemplate TargetType="RadioButton">
  57. <Border
  58. x:Name="bord"
  59. Width="{TemplateBinding Width}"
  60. Height="{TemplateBinding Height}"
  61. Background="{TemplateBinding Background}"
  62. BorderBrush="{TemplateBinding BorderBrush}"
  63. BorderThickness="{TemplateBinding BorderThickness}">
  64. <ContentControl
  65. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  66. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  67. Content="{TemplateBinding Content}"
  68. Foreground="{TemplateBinding Foreground}" />
  69. </Border>
  70. <ControlTemplate.Triggers>
  71. <Trigger Property="IsChecked" Value="True">
  72. <Setter TargetName="bord" Property="Background">
  73. <Setter.Value>
  74. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
  75. </Setter.Value>
  76. </Setter>
  77. </Trigger>
  78. <Trigger Property="IsChecked" Value="False">
  79. <Setter TargetName="bord" Property="Background">
  80. <Setter.Value>
  81. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  82. </Setter.Value>
  83. </Setter>
  84. </Trigger>
  85. </ControlTemplate.Triggers>
  86. </ControlTemplate>
  87. </Setter.Value>
  88. </Setter>
  89. </Style>
  90. </UserControl.Resources>
  91. <Grid>
  92. <Grid
  93. Height="50" HorizontalAlignment="Right" VerticalAlignment="Top">
  94. <Border Margin="0,0,100,0" HorizontalAlignment="Center">
  95. <Button
  96. Margin="20,5"
  97. Command="{Binding DataRecordCommand}"
  98. Content="选择设备类型"
  99. Style="{StaticResource ButtonStyle}" />
  100. </Border>
  101. </Grid>
  102. <Grid
  103. x:Name="ooo" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" d:IsHitTestVisible="True"
  104. d:Opacity="1" IsHitTestVisible="False" Opacity="0.5">
  105. <Grid.RowDefinitions>
  106. <RowDefinition />
  107. <RowDefinition Height="0" />
  108. </Grid.RowDefinitions>
  109. <Grid>
  110. <Grid Margin="0,100">
  111. <Viewbox Stretch="Uniform">
  112. <Canvas
  113. Width="970" Height="450" HorizontalAlignment="Left" VerticalAlignment="Top">
  114. <!--#region 配料搅拌-->
  115. <TextBlock
  116. Canvas.Left="60" Canvas.Top="10" FontSize="10"
  117. Foreground="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  118. Text="配料釜搅拌" />
  119. <StackPanel
  120. Canvas.Left="56" Canvas.Top="35" Orientation="Horizontal">
  121. <bpa:MotorTwo
  122. Width="60" Height="30" Margin="0,-20,0,0"
  123. MotorColors="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=3}" />
  124. <bpa:MotorHousing
  125. Width="50" Height="50" Margin="-20,0,0,0" />
  126. </StackPanel>
  127. <!--#endregion-->
  128. <!--#region 阀门1 进料阀-->
  129. <StackPanel
  130. Canvas.Left="87" Canvas.Top="150" Width="70" Height="120">
  131. <bpa:PipeLineV
  132. Width="15" Height="80"
  133. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  134. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  135. Speed="10" />
  136. <bpa:PipeLineTR
  137. Width="30" Margin="0,-1,-15,0"
  138. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  139. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  140. LineWidth="15" Speed="10" />
  141. </StackPanel>
  142. <TextBlock
  143. Canvas.Left="78" Canvas.Top="132" HorizontalAlignment="Left" VerticalAlignment="Center"
  144. FontSize="10"
  145. Foreground="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  146. Text="进料阀" />
  147. <StackPanel
  148. Canvas.Left="90" Canvas.Top="65" Width="65" Height="130">
  149. <bpa:JAR Width="65" Height="65" />
  150. <bpa:HandValve
  151. Width="45" Height="65" Margin="0,-20,-12,0"
  152. EdgeColor="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  153. OpenEnable="{Binding DeviceStatus.VX100}"
  154. RenderTransformOrigin="0.5,0.5">
  155. <bpa:HandValve.RenderTransform>
  156. <TransformGroup>
  157. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  158. <SkewTransform />
  159. <RotateTransform Angle="90" />
  160. <TranslateTransform />
  161. </TransformGroup>
  162. </bpa:HandValve.RenderTransform>
  163. </bpa:HandValve>
  164. </StackPanel>
  165. <bpa:PipeLineH
  166. Canvas.Left="144" Canvas.Top="244" Width="65" Height="15"
  167. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  168. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  169. Speed="10" />
  170. <!--#endregion-->
  171. <!--#region 阀门3 回油阀-->
  172. <bpa:PipeLineTL
  173. Canvas.Left="427" Canvas.Top="200" Width="16" Margin="0,0,0,-8"
  174. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  175. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  176. LineWidth="25" Speed="10" />
  177. <bpa:PipeLineV
  178. Canvas.Left="435" Canvas.Top="177" Width="8" Height="23"
  179. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  180. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  181. Speed="10" />
  182. <TextBlock
  183. Canvas.Left="495" Canvas.Top="140" FontSize="10"
  184. Foreground="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  185. Text="回油阀" />
  186. <StackPanel
  187. Canvas.Left="435" Canvas.Top="160" Orientation="Horizontal">
  188. <bpa:PipeLineBR
  189. Width="16" Margin="0,0,0,-8"
  190. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  191. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  192. LineWidth="25" Speed="10" />
  193. <bpa:PipeLineH
  194. Width="50" Height="8"
  195. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  196. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  197. Speed="10" />
  198. <bpa:HandValve
  199. Width="25" Margin="-1,-7,0,0" Panel.ZIndex="1"
  200. EdgeColor="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  201. OpenEnable="{Binding DeviceStatus.VX102}" />
  202. <bpa:PipeLineH
  203. Width="50" Height="8" Margin="-6,0,0,0" Panel.ZIndex="0"
  204. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  205. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  206. Speed="10" />
  207. </StackPanel>
  208. <!--#endregion-->
  209. <!--#region 阀门4 回水阀-->
  210. <TextBlock
  211. Canvas.Left="507" Canvas.Top="220" FontSize="10"
  212. Foreground="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  213. Text="回水阀" HorizontalAlignment="Left" VerticalAlignment="Center" />
  214. <StackPanel
  215. Canvas.Left="427" Canvas.Top="200" Orientation="Horizontal">
  216. <bpa:PipeLineH
  217. Width="87" Height="8"
  218. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  219. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  220. Speed="10" />
  221. <bpa:HandValve
  222. Width="25" Margin="-1,-7,0,0" Panel.ZIndex="1"
  223. EdgeColor="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  224. OpenEnable="{Binding DeviceStatus.VX103}" />
  225. <bpa:PipeLineH
  226. Width="106" Height="8" Margin="-6,0,0,0" Panel.ZIndex="0"
  227. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  228. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  229. Speed="10" />
  230. <bpa:PipeLineTL
  231. Width="16" Margin="0,0,0,8"
  232. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  233. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  234. LineWidth="25" Speed="10" />
  235. </StackPanel>
  236. <bpa:PipeLineV
  237. Canvas.Left="646" Canvas.Top="170" Width="8" Height="30"
  238. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  239. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  240. Speed="10" />
  241. <bpa:PipeLineBL
  242. Canvas.Left="638" Canvas.Top="154" Width="16"
  243. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  244. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  245. LineWidth="25" Speed="10" />
  246. <bpa:PipeLineH
  247. Canvas.Left="607" Canvas.Top="154" Width="31" Height="8"
  248. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  249. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  250. Speed="10" />
  251. <!--#endregion-->
  252. <!--#region 阀门3-4连接-->
  253. <bpa:PipeLineH
  254. Canvas.Left="229" Canvas.Top="208" Width="198" Height="8"
  255. Direction="{Binding PipeLine.PipeH_1.Direction}"
  256. Fill="{Binding PipeLine.PipeH_1.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  257. Speed="10" />
  258. <!--#endregion-->
  259. <!--#region 阀门5 汇馏阀-->
  260. <TextBlock
  261. Canvas.Left="610" Canvas.Top="240" FontSize="10"
  262. Foreground="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  263. Text="汇馏阀" />
  264. <bpa:PipeLineV
  265. Canvas.Left="584" Canvas.Top="185" Width="8" Height="95"
  266. Direction="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  267. Fill="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  268. Speed="10" />
  269. <bpa:HandValve
  270. Canvas.Left="579" Canvas.Top="240" Width="25"
  271. EdgeColor="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  272. OpenEnable="{Binding DeviceStatus.VX104}"
  273. RenderTransformOrigin="0.5,0.5">
  274. <bpa:HandValve.RenderTransform>
  275. <TransformGroup>
  276. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  277. <SkewTransform />
  278. <RotateTransform Angle="90" />
  279. <TranslateTransform />
  280. </TransformGroup>
  281. </bpa:HandValve.RenderTransform>
  282. </bpa:HandValve>
  283. <!--#endregion-->
  284. <!--#region 阀门2 蒸馏阀-->
  285. <bpa:PipeLineH
  286. Canvas.Left="258" Canvas.Top="244" Width="65" Height="15"
  287. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  288. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  289. Speed="10" />
  290. <bpa:PipeLineTL
  291. Canvas.Left="321" Canvas.Top="229" Width="30"
  292. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  293. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  294. LineWidth="15" Speed="10" />
  295. <bpa:PipeLineV
  296. Canvas.Left="336" Canvas.Top="180" Width="15" Height="50"
  297. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  298. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  299. Speed="10" />
  300. <bpa:PipeLineV
  301. Canvas.Left="336" Canvas.Top="40" Width="15" Height="110"
  302. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  303. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  304. Speed="10" />
  305. <bpa:PipeLineBR
  306. Canvas.Left="336" Canvas.Top="10" Width="30"
  307. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  308. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  309. LineWidth="15" Speed="10" />
  310. <bpa:PipeLineH
  311. Canvas.Left="366" Canvas.Top="10" Width="200" Height="15"
  312. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  313. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  314. Speed="10" />
  315. <TextBlock
  316. Canvas.Left="373" Canvas.Top="160" HorizontalAlignment="Left" VerticalAlignment="Center"
  317. FontSize="10"
  318. Foreground="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  319. Text="蒸馏阀" />
  320. <bpa:HandValve
  321. Canvas.Left="327" Canvas.Top="136" Width="45" Height="65"
  322. EdgeColor="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  323. OpenEnable="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  324. RenderTransformOrigin="0.5,0.5">
  325. <bpa:HandValve.RenderTransform>
  326. <TransformGroup>
  327. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  328. <SkewTransform />
  329. <RotateTransform Angle="90" />
  330. <TranslateTransform />
  331. </TransformGroup>
  332. </bpa:HandValve.RenderTransform>
  333. </bpa:HandValve>
  334. <StackPanel Canvas.Left="555" Canvas.Top="10">
  335. <bpa:PipeLineBL
  336. Width="30"
  337. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  338. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  339. LineWidth="15" Speed="10" />
  340. <bpa:Condenser
  341. Width="65" Height="80" Margin="0,0,-15,0" />
  342. <bpa:PipeLineV
  343. Width="8" Height="20" Margin="0,-4,-15,0"
  344. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  345. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  346. Speed="10" />
  347. <bpa:Tanks
  348. Width="60" Height="60" Margin="0,-5,-15,0" />
  349. </StackPanel>
  350. <!--#endregion-->
  351. <!--#region 阀门6 排馏阀-->
  352. <TextBlock
  353. Canvas.Left="620" Canvas.Top="350" FontSize="10"
  354. Foreground="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  355. Text="排馏阀" />
  356. <bpa:PipeLineV
  357. Canvas.Left="596" Canvas.Top="330" Width="8" Height="50"
  358. Direction="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  359. Fill="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  360. Speed="10" />
  361. <bpa:HandValve
  362. Canvas.Left="591" Canvas.Top="350" Width="25"
  363. EdgeColor="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  364. OpenEnable="{Binding DeviceStatus.VX105}"
  365. RenderTransformOrigin="0.5,0.5">
  366. <bpa:HandValve.RenderTransform>
  367. <TransformGroup>
  368. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  369. <SkewTransform />
  370. <RotateTransform Angle="90" />
  371. <TranslateTransform />
  372. </TransformGroup>
  373. </bpa:HandValve.RenderTransform>
  374. </bpa:HandValve>
  375. <!--#endregion-->
  376. <!--#region 阀门7 冷凝器冷却水阀-->
  377. <TextBlock
  378. Canvas.Left="610" Canvas.Top="42" HorizontalAlignment="Center" VerticalAlignment="Top"
  379. FontSize="10"
  380. Foreground="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  381. Text="冷凝器冷却水阀" />
  382. <bpa:PipeLineH
  383. Width="65" Height="8" Margin="607,68,402,154"
  384. Direction="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  385. Fill="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
  386. LineWidth="2" />
  387. <bpa:HandValve
  388. x:Name="VX106" Width="30" Height="20" Margin="617,58,402,154"
  389. OpenEnable="{Binding DeviceStatus.VX106}"
  390. RenderTransformOrigin="0.5,0.5" />
  391. <!--#endregion-->
  392. <!--#region 阀门8 配料釜蒸汽阀-->
  393. <bpa:PipeLineH
  394. Canvas.Left="149" Canvas.Top="85" Width="70" Height="10"
  395. Direction="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  396. Fill="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  397. Speed="10" />
  398. <bpa:HandValve
  399. Canvas.Left="179" Canvas.Top="74" Width="30" Height="25"
  400. OpenEnable="{Binding DeviceStatus.VX107}" />
  401. <TextBlock
  402. Canvas.Left="162" Canvas.Top="58" HorizontalAlignment="Center" VerticalAlignment="Top"
  403. FontSize="10"
  404. Foreground="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  405. Text="配料釜蒸汽阀" />
  406. <!--#endregion-->
  407. <!--#region 阀门9 反应釜蒸汽阀-->
  408. <TextBlock
  409. Canvas.Left="35" Canvas.Top="233" HorizontalAlignment="Left" VerticalAlignment="Center"
  410. FontSize="10"
  411. Foreground="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  412. Text="蒸汽阀" />
  413. <bpa:PipeLineTR
  414. Width="24" Height="24" Margin="81,266,402,154"
  415. Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  416. Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  417. LineWidth="18" Speed="10" />
  418. <bpa:PipeLineTR
  419. Width="24" Height="24" Margin="81,266,402,154"
  420. Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  421. Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  422. LineWidth="18" Speed="10" />
  423. <bpa:PipeLineV
  424. Canvas.Left="81" Canvas.Top="220" Width="12" Height="46"
  425. Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  426. Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  427. LineWidth="4" />
  428. <bpa:HandValve
  429. x:Name="VX108" Canvas.Left="65" Canvas.Top="225" Width="35"
  430. Height="35" HorizontalAlignment="Center" VerticalAlignment="Top"
  431. OpenEnable="{Binding DeviceStatus.VX108}"
  432. RenderTransformOrigin="0.5,0.5">
  433. <bpa:HandValve.RenderTransform>
  434. <TransformGroup>
  435. <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
  436. <SkewTransform />
  437. <RotateTransform Angle="270" />
  438. <TranslateTransform />
  439. </TransformGroup>
  440. </bpa:HandValve.RenderTransform>
  441. </bpa:HandValve>
  442. <!--#endregion-->
  443. <!--#region 阀门10 反应釜蒸汽疏水阀-->
  444. <TextBlock
  445. Canvas.Left="287" Canvas.Top="305" HorizontalAlignment="Center" VerticalAlignment="Top"
  446. FontSize="10"
  447. Foreground="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  448. Text="蒸汽疏水阀" />
  449. <bpa:PipeLineV
  450. Width="12" Height="43"
  451. Direction="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  452. Fill="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  453. LineWidth="4" Canvas.Left="348" Canvas.Top="287" />
  454. <bpa:HandValve
  455. Width="35" Height="35" Margin="341,296,402,154"
  456. OpenEnable="{Binding DeviceStatus.VX109}"
  457. RenderTransformOrigin="0.5,0.5">
  458. <bpa:HandValve.RenderTransform>
  459. <TransformGroup>
  460. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  461. <SkewTransform />
  462. <RotateTransform Angle="90" />
  463. <TranslateTransform />
  464. </TransformGroup>
  465. </bpa:HandValve.RenderTransform>
  466. </bpa:HandValve>
  467. <!--#endregion-->
  468. <!--#region 阀门11 反应釜冷却水给水阀-->
  469. <TextBlock
  470. Canvas.Left="401" Canvas.Top="242" HorizontalAlignment="Center" VerticalAlignment="Top"
  471. FontSize="10"
  472. Foreground="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  473. Text="冷却水给水阀" />
  474. <bpa:PipeLineTL
  475. Width="24" Height="24" Margin="360,266,402,154"
  476. Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  477. Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
  478. LineWidth="18" Speed="1" />
  479. <bpa:PipeLineV
  480. Width="12" Height="40" Margin="372,226,402,154"
  481. Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  482. Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
  483. LineWidth="4" Speed="10" />
  484. <bpa:HandValve
  485. x:Name="VX110" Width="35" Height="35" Margin="365,232,402,154"
  486. OpenEnable="{Binding DeviceStatus.VX110}"
  487. RenderTransformOrigin="0.5,0.5">
  488. <bpa:HandValve.RenderTransform>
  489. <TransformGroup>
  490. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  491. <SkewTransform />
  492. <RotateTransform Angle="90" />
  493. <TranslateTransform />
  494. </TransformGroup>
  495. </bpa:HandValve.RenderTransform>
  496. </bpa:HandValve>
  497. <!--#endregion-->
  498. <!--#region 阀门12 冷却水排水阀-->
  499. <TextBlock
  500. Canvas.Left="23" Canvas.Top="306" FontSize="10"
  501. Foreground="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  502. Text="冷却水排水阀" HorizontalAlignment="Left" VerticalAlignment="Center" />
  503. <bpa:PipeLineV
  504. Width="12" Height="50" Margin="105,290,402,154"
  505. Direction="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  506. Fill="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
  507. LineWidth="4" />
  508. <bpa:HandValve
  509. x:Name="VX111" Width="35" Height="35" Margin="89,297,402,154"
  510. OpenEnable="{Binding DeviceStatus.VX111}"
  511. RenderTransformOrigin="0.5,0.5">
  512. <bpa:HandValve.RenderTransform>
  513. <TransformGroup>
  514. <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
  515. <SkewTransform />
  516. <RotateTransform Angle="270" />
  517. <TranslateTransform />
  518. </TransformGroup>
  519. </bpa:HandValve.RenderTransform>
  520. </bpa:HandValve>
  521. <!--#endregion-->
  522. <!--#region 阀门9-12链接-->
  523. <bpa:PipeLineH
  524. Width="95" Height="12" Margin="105,278,402,154"
  525. Direction="{Binding PipeLine.PipeH_3.Direction}"
  526. LineWidth="4">
  527. <bpa:PipeLineH.Fill>
  528. <MultiBinding Converter="{StaticResource MultiBoolToColorConverter}" ConverterParameter="Lime,Red">
  529. <Binding Path="DeviceStatus.VX111" />
  530. <Binding Path="DeviceStatus.VX108" />
  531. </MultiBinding>
  532. </bpa:PipeLineH.Fill>
  533. </bpa:PipeLineH>
  534. <!--#endregion-->
  535. <!--#region 阀门10-11连接-->
  536. <bpa:PipeLineH
  537. Width="95" Height="12" Margin="265,278,402,154"
  538. Direction="{Binding PipeLine.PipeH_2.Direction}"
  539. LineWidth="4">
  540. <bpa:PipeLineH.Fill>
  541. <MultiBinding Converter="{StaticResource MultiBoolToColorConverter}" ConverterParameter="Lime,Red">
  542. <Binding Path="DeviceStatus.VX110" />
  543. <Binding Path="DeviceStatus.VX109" />
  544. </MultiBinding>
  545. </bpa:PipeLineH.Fill>
  546. </bpa:PipeLineH>
  547. <!--#endregion-->
  548. <!--#region 阀门13分馏真空阀-->
  549. <bpa:PipeLineH
  550. Canvas.Left="607" Canvas.Top="142" Width="140" Height="10"
  551. Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  552. Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  553. FontSize="10" Speed="10" />
  554. <bpa:PipeLineBL
  555. Canvas.Left="746" Canvas.Top="142" Width="20" Height="20"
  556. Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  557. Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  558. LineWidth="20" Speed="2" />
  559. <bpa:PipeLineV
  560. Canvas.Left="756" Canvas.Top="161" Width="10" Height="150"
  561. Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  562. Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  563. Speed="10" />
  564. <bpa:HandValve
  565. Canvas.Left="750" Canvas.Top="181" Width="30" Height="22"
  566. OpenEnable="{Binding DeviceStatus.VX112}"
  567. RenderTransformOrigin="0.5,0.5">
  568. <bpa:HandValve.RenderTransform>
  569. <TransformGroup>
  570. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  571. <SkewTransform />
  572. <RotateTransform Angle="90" />
  573. <TranslateTransform />
  574. </TransformGroup>
  575. </bpa:HandValve.RenderTransform>
  576. </bpa:HandValve>
  577. <TextBlock
  578. Canvas.Left="780" Canvas.Top="183" FontSize="10"
  579. Foreground="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  580. Text="分馏真空阀" />
  581. <!--#endregion-->
  582. <!--#region 阀门14蒸馏真空阀-->
  583. <bpa:PipeLineH
  584. Canvas.Left="619" Canvas.Top="292" Width="128" Height="10"
  585. Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  586. Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  587. FontSize="10" Speed="10" />
  588. <bpa:PipeLineBL
  589. Canvas.Left="746" Canvas.Top="292" Width="20" Height="20"
  590. Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  591. Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  592. LineWidth="20" Speed="2" />
  593. <bpa:HandValve
  594. Canvas.Left="682" Canvas.Top="281" Width="30" Height="25"
  595. HorizontalAlignment="Left" VerticalAlignment="Center"
  596. OpenEnable="{Binding DeviceStatus.VX113}" />
  597. <TextBlock
  598. Canvas.Left="666" Canvas.Top="310" HorizontalAlignment="Left" VerticalAlignment="Center"
  599. FontSize="10"
  600. Foreground="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  601. Text="蒸馏真空阀" />
  602. <!--#endregion-->
  603. <!--#region 阀门13-14连接-->
  604. <bpa:PipeLineV
  605. Canvas.Left="756" Canvas.Top="311" Width="10" Height="40"
  606. Direction="{Binding PipeLine.PipeH_4.Direction}"
  607. Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  608. Speed="4" />
  609. <bpa:PipeLineBR
  610. Canvas.Left="756" Canvas.Top="370" Width="20" Height="20"
  611. Direction="{Binding PipeLine.PipeH_4.Direction}"
  612. Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  613. LineWidth="20" Speed="4">
  614. <bpa:PipeLineBR.RenderTransform>
  615. <ScaleTransform ScaleY="-1.0" />
  616. </bpa:PipeLineBR.RenderTransform>
  617. </bpa:PipeLineBR>
  618. <!--#endregion-->
  619. <!--#region 反应釜搅拌-->
  620. <TextBlock
  621. Canvas.Left="208" Canvas.Top="160" HorizontalAlignment="Center" VerticalAlignment="Top"
  622. FontSize="10"
  623. Foreground="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  624. Text="反应釜搅拌" />
  625. <StackPanel
  626. Canvas.Left="200" Canvas.Top="175" Width="65" Height="220">
  627. <bpa:MotorTwo
  628. Width="40" Height="30" Margin="0,0,0,-1"
  629. MotorColors="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=3}"
  630. RenderTransformOrigin="0.5,0.5">
  631. <bpa:MotorTwo.RenderTransform>
  632. <TransformGroup>
  633. <ScaleTransform />
  634. <SkewTransform />
  635. <RotateTransform Angle="90" />
  636. <TranslateTransform />
  637. </TransformGroup>
  638. </bpa:MotorTwo.RenderTransform>
  639. </bpa:MotorTwo>
  640. <bpa:Joint
  641. Width="40" Height="30" Margin="0,0,0,-3" />
  642. <local:RetortTank
  643. Width="65" Height="120" Margin="0,4,0,0" />
  644. <bpa:HandValve
  645. Width="48" Height="65" Margin="0,-24,-14,0"
  646. OpenEnable="{Binding DeviceStatus.VX114}"
  647. RenderTransformOrigin="0.5,0.5">
  648. <bpa:HandValve.RenderTransform>
  649. <TransformGroup>
  650. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  651. <SkewTransform />
  652. <RotateTransform Angle="90" />
  653. <TranslateTransform />
  654. </TransformGroup>
  655. </bpa:HandValve.RenderTransform>
  656. </bpa:HandValve>
  657. </StackPanel>
  658. <TextBlock
  659. Canvas.Left="178" Canvas.Top="340" FontSize="10"
  660. Foreground="{Binding DeviceStatus.VX114, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  661. Text="出料阀" HorizontalAlignment="Left" VerticalAlignment="Center" />
  662. <!--#endregion-->
  663. <!--#region 水罐-->
  664. <bpa:Tanks
  665. Canvas.Left="570" Canvas.Top="280" Width="60" Height="60"
  666. Margin="0,-5,-15,0" />
  667. <!--#endregion-->
  668. <!--#region 真空泵-->
  669. <bpa:MotorTwo
  670. Canvas.Left="841" Canvas.Top="380" Width="40" Height="22"
  671. FontSize="10"
  672. MotorColors="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=3}">
  673. <bpa:MotorTwo.RenderTransform>
  674. <RotateTransform Angle="180" />
  675. </bpa:MotorTwo.RenderTransform>
  676. </bpa:MotorTwo>
  677. <bpa:Joint
  678. Canvas.Left="817" Canvas.Top="355" Height="36">
  679. <bpa:Joint.RenderTransform>
  680. <ScaleTransform ScaleX="-1.0" />
  681. </bpa:Joint.RenderTransform>
  682. </bpa:Joint>
  683. <bpa:Tanks
  684. Canvas.Left="770" Canvas.Top="384" Width="50" Height="50" />
  685. <TextBlock
  686. Canvas.Left="775" Canvas.Top="333" FontSize="10"
  687. Foreground="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  688. Text="分馏真空泵" />
  689. <!--#endregion-->
  690. <!--#region 仪器标注-->
  691. <TextBlock
  692. Canvas.Left="107" Canvas.Top="84" FontSize="10" Foreground="Blue"
  693. Text="配料罐" HorizontalAlignment="Left" VerticalAlignment="Center" />
  694. <TextBlock
  695. Canvas.Left="92" Canvas.Top="70" Width="60" Foreground="Red"
  696. Text="{Binding DeviceStatus.TempMaterial, StringFormat='{}{0}℃'}"
  697. TextAlignment="Center" />
  698. <TextBlock
  699. Canvas.Left="217" Canvas.Top="290" Foreground="Blue" Text="反应釜" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  700. <TextBlock
  701. Canvas.Left="203" Canvas.Top="250" Width="60" Foreground="Red" FontSize="10"
  702. Text="{Binding DeviceStatus.TempWok, StringFormat='{}{0}℃'}"
  703. TextAlignment="Center" />
  704. <TextBlock
  705. Canvas.Left="203" Canvas.Top="270" Width="60" Foreground="Red" FontSize="10"
  706. Text="{Binding DeviceStatus.PressureWok, StringFormat='{}{0:f2}mpa'}"
  707. TextAlignment="Center" />
  708. <StackPanel
  709. Canvas.Left="-15" Canvas.Top="169" Orientation="Horizontal">
  710. <TextBlock
  711. FontSize="10" Foreground="White" Text="蒸 汽 压 力:" />
  712. <TextBlock
  713. Margin="10,0,0,0" d:Text="0.23mpa" FontSize="10" Foreground="Red"
  714. Text="{Binding DeviceStatus.PressureWeek, StringFormat='{}{0:f2}mpa'}" />
  715. </StackPanel>
  716. <StackPanel
  717. Canvas.Left="-15" Canvas.Top="189" Orientation="Horizontal">
  718. <TextBlock
  719. FontSize="10" Foreground="White" Text="比例阀开度:" />
  720. <TextBlock
  721. Margin="10,0,0,0" d:Text="100.00%" FontSize="10" Foreground="Red"
  722. Text="{Binding DeviceStatus.OpenValue, StringFormat='{}{0:f2}%'}" />
  723. </StackPanel>
  724. <TextBlock
  725. Canvas.Left="573" Canvas.Top="88" Foreground="Blue" Text="冷凝器" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  726. <TextBlock
  727. Canvas.Left="389" Canvas.Top="30" Width="150" d:Text="反应釜排气温度:12.33℃"
  728. FontSize="10" Foreground="Red"
  729. Text="{Binding DeviceStatus.TempVent, StringFormat='反应釜排气温度:{0}℃'}"
  730. TextAlignment="Center" />
  731. <TextBlock
  732. Canvas.Left="573" Canvas.Top="168" Foreground="Blue" Text="蒸馏罐" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  733. <TextBlock
  734. Canvas.Left="590" Canvas.Top="312" Foreground="Blue" Text="水罐" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  735. <TextBlock
  736. Canvas.Left="570" Canvas.Top="295" Width="60" FontSize="10"
  737. Foreground="Red"
  738. Text="{Binding DeviceStatus.WeightWok, StringFormat='{}{0:f2}g'}"
  739. TextAlignment="Center" />
  740. <TextBlock
  741. Canvas.Left="780" Canvas.Top="414" FontSize="10" Foreground="Blue"
  742. Text="真空泵" />
  743. <!--#endregion-->
  744. <!--#region 水罐重量清零-->
  745. <Button
  746. Canvas.Left="480" Canvas.Top="370" Width="100" Height="22"
  747. VerticalAlignment="Center" Click="ClearBtn_CLick" Content="水罐重量清零" FontSize="10"
  748. Style="{StaticResource ButtonStyle}" />
  749. <!--#endregion-->
  750. <!--#region 控制按钮-->
  751. <StackPanel
  752. Canvas.Left="-30" Canvas.Top="-5" Orientation="Vertical">
  753. <RadioButton
  754. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  755. Click="Open_Click" Content="配料釜搅拌:开" FontSize="8" Foreground="White"
  756. GroupName="1"
  757. Style="{StaticResource radiobutton}"
  758. Tag="0" />
  759. <RadioButton
  760. Width="70" Height="20" BorderThickness="0" Click="Close_Click"
  761. Content="配料釜搅拌:关" FontSize="8" Foreground="White" GroupName="1"
  762. IsChecked="True"
  763. Style="{StaticResource radiobutton}"
  764. Tag="0" />
  765. </StackPanel>
  766. <StackPanel
  767. Canvas.Left="10" Canvas.Top="115" HorizontalAlignment="Left" VerticalAlignment="Center"
  768. Orientation="Vertical">
  769. <RadioButton
  770. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  771. Click="Open_Click" Content="进料阀:开" FontSize="8" Foreground="White"
  772. GroupName="2"
  773. Style="{StaticResource radiobutton}"
  774. Tag="3" />
  775. <RadioButton
  776. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  777. Content="进料阀:关" FontSize="8" Foreground="White" GroupName="2"
  778. IsChecked="True"
  779. Style="{StaticResource radiobutton}"
  780. Tag="3" />
  781. </StackPanel>
  782. <StackPanel
  783. Canvas.Left="145" Canvas.Top="176" HorizontalAlignment="Center" VerticalAlignment="Top"
  784. Orientation="Vertical">
  785. <RadioButton
  786. Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
  787. Click="Open_Click" Content="反应釜搅拌:开" FontSize="8" Foreground="White"
  788. GroupName="3"
  789. Style="{StaticResource radiobutton}"
  790. Tag="1" />
  791. <RadioButton
  792. Width="60" Height="22" BorderThickness="0" Click="Close_Click"
  793. Content="反应釜搅拌:关" FontSize="8" Foreground="White" GroupName="3"
  794. IsChecked="True"
  795. Style="{StaticResource radiobutton}"
  796. Tag="1" />
  797. </StackPanel>
  798. <StackPanel
  799. Canvas.Left="359" Canvas.Top="102" HorizontalAlignment="Center" VerticalAlignment="Top"
  800. Orientation="Vertical">
  801. <RadioButton
  802. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  803. Click="Open_Click" Content="蒸馏阀:开" FontSize="8" Foreground="White"
  804. GroupName="4"
  805. Style="{StaticResource radiobutton}"
  806. Tag="4" />
  807. <RadioButton
  808. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  809. Content="蒸馏阀:关" FontSize="8" Foreground="White" GroupName="4"
  810. IsChecked="True"
  811. Style="{StaticResource radiobutton}"
  812. Tag="4" />
  813. </StackPanel>
  814. <StackPanel
  815. Canvas.Left="253" Canvas.Top="102" HorizontalAlignment="Center" VerticalAlignment="Top"
  816. Orientation="Horizontal">
  817. <StackPanel
  818. HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical">
  819. <RadioButton
  820. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  821. Click="new_Click" Content="排空阀:开" FontSize="8" Foreground="White"
  822. GroupName="t5"
  823. Style="{StaticResource radiobutton}"
  824. Tag="4" />
  825. <RadioButton
  826. Width="55" Height="22" BorderThickness="0" Click="new_Click"
  827. Content="排空阀:关" FontSize="8" Foreground="White" GroupName="t5"
  828. IsChecked="True"
  829. Style="{StaticResource radiobutton}"
  830. Tag="4" />
  831. </StackPanel>
  832. <TextBlock
  833. Margin="3,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
  834. Foreground="{Binding DeviceStatus.排空阀, Converter={StaticResource BoolToColorConverter}}"
  835. Text="⬛" TextAlignment="Center" />
  836. </StackPanel>
  837. <StackPanel
  838. Canvas.Left="483" Canvas.Top="86" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Center">
  839. <RadioButton
  840. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  841. Click="Open_Click" Content="回油阀:开" FontSize="8" Foreground="White"
  842. GroupName="5"
  843. Style="{StaticResource radiobutton}"
  844. Tag="5" />
  845. <RadioButton
  846. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  847. Content="回油阀:关" FontSize="8" Foreground="White" GroupName="5"
  848. IsChecked="True"
  849. Style="{StaticResource radiobutton}"
  850. Tag="5" />
  851. </StackPanel>
  852. <StackPanel
  853. Canvas.Left="496" Canvas.Top="233" HorizontalAlignment="Left" VerticalAlignment="Center"
  854. Orientation="Vertical">
  855. <RadioButton
  856. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  857. Click="Open_Click" Content="回水阀:开" FontSize="8" Foreground="White"
  858. GroupName="6"
  859. Style="{StaticResource radiobutton}"
  860. Tag="6" />
  861. <RadioButton
  862. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  863. Content="回水阀:关" FontSize="8" Foreground="White" GroupName="6"
  864. IsChecked="True"
  865. Style="{StaticResource radiobutton}"
  866. Tag="6" />
  867. </StackPanel>
  868. <StackPanel
  869. Canvas.Left="645" Canvas.Top="224" Orientation="Vertical">
  870. <RadioButton
  871. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  872. Click="Open_Click" Content="汇馏阀:开" FontSize="8" Foreground="White"
  873. GroupName="7"
  874. Style="{StaticResource radiobutton}"
  875. Tag="7" />
  876. <RadioButton
  877. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  878. Content="汇馏阀:关" FontSize="8" Foreground="White" GroupName="7"
  879. IsChecked="True"
  880. Style="{StaticResource radiobutton}"
  881. Tag="7" />
  882. </StackPanel>
  883. <StackPanel
  884. Canvas.Left="605" Canvas.Top="376" Orientation="Vertical">
  885. <RadioButton
  886. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  887. Click="Open_Click" Content="排馏阀:开" FontSize="8" Foreground="White"
  888. GroupName="8"
  889. Style="{StaticResource radiobutton}"
  890. Tag="8" />
  891. <RadioButton
  892. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  893. Content="排馏阀:关" FontSize="8" Foreground="White" GroupName="8"
  894. IsChecked="True"
  895. Style="{StaticResource radiobutton}"
  896. Tag="8" />
  897. </StackPanel>
  898. <StackPanel
  899. Canvas.Left="603" Canvas.Top="-14" HorizontalAlignment="Center" VerticalAlignment="Top"
  900. Orientation="Vertical">
  901. <RadioButton
  902. Width="80" Height="22" Margin="0,0,0,2" BorderThickness="0"
  903. Click="Open_Click" Content="冷凝器冷却水阀:开" FontSize="8" Foreground="White"
  904. GroupName="9"
  905. Style="{StaticResource radiobutton}"
  906. Tag="9" />
  907. <RadioButton
  908. Width="80" Height="22" BorderThickness="0" Click="Close_Click"
  909. Content="冷凝器冷却水阀:关" FontSize="8" Foreground="White" GroupName="9"
  910. IsChecked="True"
  911. Style="{StaticResource radiobutton}"
  912. Tag="9" />
  913. </StackPanel>
  914. <StackPanel
  915. Canvas.Left="158" Canvas.Top="3" HorizontalAlignment="Left" VerticalAlignment="Center"
  916. Orientation="Vertical">
  917. <RadioButton
  918. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  919. Click="Open_Click" Content="配料釜蒸汽阀:开" FontSize="8" Foreground="White"
  920. GroupName="8"
  921. Style="{StaticResource radiobutton}"
  922. Tag="10" />
  923. <RadioButton
  924. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  925. Content="配料釜蒸汽阀:关" FontSize="8" Foreground="White" GroupName="10"
  926. IsChecked="True"
  927. Style="{StaticResource radiobutton}"
  928. Tag="10" />
  929. </StackPanel>
  930. <StackPanel Canvas.Top="248" HorizontalAlignment="Left" VerticalAlignment="Center"
  931. Orientation="Vertical" Canvas.Left="10">
  932. <RadioButton
  933. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  934. Click="Open_Click" Content="蒸汽阀:开" FontSize="8" Foreground="White"
  935. GroupName="11"
  936. Style="{StaticResource radiobutton}"
  937. Tag="11" />
  938. <RadioButton
  939. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  940. Content="蒸汽阀:关" FontSize="8" Foreground="White" GroupName="11"
  941. IsChecked="True"
  942. Style="{StaticResource radiobutton}"
  943. Tag="11" />
  944. </StackPanel>
  945. <StackPanel
  946. Canvas.Left="272" Canvas.Top="318" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Center">
  947. <RadioButton
  948. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  949. Click="Open_Click" Content="蒸汽疏水阀:开" FontSize="8" Foreground="White"
  950. GroupName="12"
  951. Style="{StaticResource radiobutton}"
  952. Tag="12" />
  953. <RadioButton
  954. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  955. Content="蒸汽疏水阀:关" FontSize="8" Foreground="White" GroupName="12"
  956. IsChecked="True"
  957. Style="{StaticResource radiobutton}"
  958. Tag="12" />
  959. </StackPanel>
  960. <StackPanel
  961. Canvas.Left="396" Canvas.Top="255" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Top">
  962. <RadioButton
  963. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  964. Click="Open_Click" Content="冷却水给水阀:开" FontSize="8" Foreground="White"
  965. GroupName="13"
  966. Style="{StaticResource radiobutton}"
  967. Tag="13" />
  968. <RadioButton
  969. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  970. Content="冷却水给水阀:关" FontSize="8" Foreground="White" GroupName="13"
  971. IsChecked="True"
  972. Style="{StaticResource radiobutton}"
  973. Tag="13" />
  974. </StackPanel>
  975. <StackPanel Canvas.Top="322" HorizontalAlignment="Center" VerticalAlignment="Top"
  976. Orientation="Vertical" Canvas.Left="19">
  977. <RadioButton
  978. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  979. Click="Open_Click" Content="冷却水排水阀:开" FontSize="8" Foreground="White"
  980. GroupName="18"
  981. Style="{StaticResource radiobutton}"
  982. Tag="18" />
  983. <RadioButton
  984. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  985. Content="冷却水排水阀:关" FontSize="8" Foreground="White" GroupName="18"
  986. IsChecked="True"
  987. Style="{StaticResource radiobutton}"
  988. Tag="18" />
  989. </StackPanel>
  990. <StackPanel
  991. Canvas.Left="770" Canvas.Top="128" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Center">
  992. <RadioButton
  993. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  994. Click="Open_Click" Content="分馏真空阀:开" FontSize="8" Foreground="White"
  995. GroupName="19"
  996. Style="{StaticResource radiobutton}"
  997. Tag="19" />
  998. <RadioButton
  999. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  1000. Content="分馏真空阀:关" FontSize="8" Foreground="White" GroupName="19"
  1001. IsChecked="True"
  1002. Style="{StaticResource radiobutton}"
  1003. Tag="19" />
  1004. </StackPanel>
  1005. <StackPanel
  1006. Canvas.Left="661" Canvas.Top="324" HorizontalAlignment="Center" VerticalAlignment="Top"
  1007. Orientation="Vertical">
  1008. <RadioButton
  1009. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  1010. Click="Open_Click" Content="蒸馏真空阀:开" FontSize="8" Foreground="White"
  1011. GroupName="20"
  1012. Style="{StaticResource radiobutton}"
  1013. Tag="20" />
  1014. <RadioButton
  1015. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  1016. Content="蒸馏真空阀:关" FontSize="8" Foreground="White" GroupName="20"
  1017. IsChecked="True"
  1018. Style="{StaticResource radiobutton}"
  1019. Tag="20" />
  1020. </StackPanel>
  1021. <StackPanel
  1022. Canvas.Left="773" Canvas.Top="279" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Center">
  1023. <RadioButton
  1024. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  1025. Click="Open_Click" Content="真空泵:开" FontSize="8" Foreground="White"
  1026. GroupName="21"
  1027. Style="{StaticResource radiobutton}"
  1028. Tag="2" />
  1029. <RadioButton
  1030. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  1031. Content="真空泵:关" FontSize="8" Foreground="White" GroupName="21"
  1032. IsChecked="True"
  1033. Style="{StaticResource radiobutton}"
  1034. Tag="2" />
  1035. </StackPanel>
  1036. <StackPanel
  1037. Canvas.Left="150" Canvas.Top="352" HorizontalAlignment="Left" VerticalAlignment="Center"
  1038. Orientation="Vertical">
  1039. <RadioButton
  1040. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  1041. Click="Open_Click" Content="出料阀:开" FontSize="8" Foreground="White"
  1042. GroupName="22"
  1043. Style="{StaticResource radiobutton}"
  1044. Tag="33" />
  1045. <RadioButton
  1046. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  1047. Content="出料阀:关" FontSize="8" Foreground="White" GroupName="22"
  1048. IsChecked="True"
  1049. Style="{StaticResource radiobutton}"
  1050. Tag="33" />
  1051. </StackPanel>
  1052. <!--#endregion-->
  1053. <!--#region 新增按钮-->
  1054. <TextBlock
  1055. Canvas.Left="66" Canvas.Top="263" HorizontalAlignment="Left" VerticalAlignment="Center"
  1056. d:Foreground="Red"
  1057. Foreground="{Binding DeviceStatus.反应釜蒸汽阀, Converter={StaticResource BoolToColorConverter}}"
  1058. Text="⬛" TextAlignment="Center" />
  1059. <TextBlock
  1060. Canvas.Left="66" Canvas.Top="131" HorizontalAlignment="Center" VerticalAlignment="Top"
  1061. d:Foreground="Red"
  1062. Foreground="{Binding DeviceStatus.进料阀, Converter={StaticResource BoolToColorConverter}}"
  1063. Text="⬛" TextAlignment="Center" />
  1064. <TextBlock
  1065. Canvas.Left="41" Canvas.Top="10" HorizontalAlignment="Center" VerticalAlignment="Top"
  1066. d:Foreground="Red"
  1067. Foreground="{Binding DeviceStatus.配料罐搅拌电机, Converter={StaticResource BoolToColorConverter}}"
  1068. Text="⬛" TextAlignment="Center" />
  1069. <TextBlock
  1070. Canvas.Left="231" Canvas.Top="18" HorizontalAlignment="Center" VerticalAlignment="Top"
  1071. d:Foreground="Red"
  1072. Foreground="{Binding DeviceStatus.配料釜蒸汽阀, Converter={StaticResource BoolToColorConverter}}"
  1073. Text="⬛" TextAlignment="Center" />
  1074. <TextBlock
  1075. Canvas.Left="416" Canvas.Top="117" HorizontalAlignment="Center" VerticalAlignment="Top"
  1076. d:Foreground="Red"
  1077. Foreground="{Binding DeviceStatus.蒸馏阀, Converter={StaticResource BoolToColorConverter}}"
  1078. Text="⬛" TextAlignment="Center" />
  1079. <TextBlock
  1080. Canvas.Left="205" Canvas.Top="191" HorizontalAlignment="Center" VerticalAlignment="Top"
  1081. d:Foreground="Red"
  1082. Foreground="{Binding DeviceStatus.反应釜搅拌电机, Converter={StaticResource BoolToColorConverter}}"
  1083. Text="⬛" TextAlignment="Center" />
  1084. <TextBlock
  1085. Canvas.Left="92" Canvas.Top="337" HorizontalAlignment="Center" VerticalAlignment="Top"
  1086. d:Foreground="Red"
  1087. Foreground="{Binding DeviceStatus.反应釜冷却水排水阀, Converter={StaticResource BoolToColorConverter}}"
  1088. Text="⬛" TextAlignment="Center" />
  1089. <TextBlock
  1090. Canvas.Left="206" Canvas.Top="367" HorizontalAlignment="Left" VerticalAlignment="Center"
  1091. d:Foreground="Red"
  1092. Foreground="{Binding DeviceStatus.反应釜出料阀, Converter={StaticResource BoolToColorConverter}}"
  1093. Text="⬛" TextAlignment="Center" />
  1094. <TextBlock
  1095. Canvas.Left="344" Canvas.Top="333" HorizontalAlignment="Center" VerticalAlignment="Top"
  1096. d:Foreground="Red"
  1097. Foreground="{Binding DeviceStatus.反应釜蒸汽疏水阀, Converter={StaticResource BoolToColorConverter}}"
  1098. Text="⬛" TextAlignment="Center" />
  1099. <TextBlock
  1100. Canvas.Left="467" Canvas.Top="268" HorizontalAlignment="Center" VerticalAlignment="Top"
  1101. d:Foreground="Red"
  1102. Foreground="{Binding DeviceStatus.反应釜冷却水阀, Converter={StaticResource BoolToColorConverter}}"
  1103. Text="⬛" TextAlignment="Center" />
  1104. <TextBlock
  1105. Canvas.Left="553" Canvas.Top="248" HorizontalAlignment="Left" VerticalAlignment="Center"
  1106. d:Foreground="Red"
  1107. Foreground="{Binding DeviceStatus.回水阀, Converter={StaticResource BoolToColorConverter}}"
  1108. Text="⬛" TextAlignment="Center" />
  1109. <TextBlock
  1110. Canvas.Left="539" Canvas.Top="101" HorizontalAlignment="Center" VerticalAlignment="Top"
  1111. d:Foreground="Red"
  1112. Foreground="{Binding DeviceStatus.回油阀, Converter={StaticResource BoolToColorConverter}}"
  1113. Text="⬛" TextAlignment="Center" />
  1114. <TextBlock
  1115. Canvas.Left="687" Canvas.Top="1" HorizontalAlignment="Center" VerticalAlignment="Top"
  1116. d:Foreground="Red"
  1117. Foreground="{Binding DeviceStatus.冷凝器冷却阀, Converter={StaticResource BoolToColorConverter}}"
  1118. Text="⬛" TextAlignment="Center" />
  1119. <TextBlock
  1120. Canvas.Left="701" Canvas.Top="242" HorizontalAlignment="Left" VerticalAlignment="Center"
  1121. d:Foreground="Red"
  1122. Foreground="{Binding DeviceStatus.汇馏阀, Converter={StaticResource BoolToColorConverter}}"
  1123. Text="⬛" TextAlignment="Center" />
  1124. <TextBlock
  1125. Canvas.Left="842" Canvas.Top="146" HorizontalAlignment="Left" VerticalAlignment="Center"
  1126. d:Foreground="Red"
  1127. Foreground="{Binding DeviceStatus.分馏真空阀, Converter={StaticResource BoolToColorConverter}}"
  1128. Text="⬛" TextAlignment="Center" />
  1129. <TextBlock
  1130. Canvas.Left="731" Canvas.Top="341" HorizontalAlignment="Left" VerticalAlignment="Center"
  1131. d:Foreground="Red"
  1132. Foreground="{Binding DeviceStatus.蒸馏真空阀, Converter={StaticResource BoolToColorConverter}}"
  1133. Text="⬛" TextAlignment="Center" />
  1134. <TextBlock
  1135. Canvas.Left="662" Canvas.Top="391" HorizontalAlignment="Center" VerticalAlignment="Top"
  1136. d:Foreground="Red"
  1137. Foreground="{Binding DeviceStatus.排馏阀, Converter={StaticResource BoolToColorConverter}}"
  1138. Text="⬛" TextAlignment="Center" />
  1139. <TextBlock
  1140. Canvas.Left="535" Canvas.Top="350" HorizontalAlignment="Left" VerticalAlignment="Center"
  1141. d:Foreground="Red"
  1142. Foreground="{Binding DeviceStatus.水罐重量清零, Converter={StaticResource BoolToColorConverter}}"
  1143. Text="⬛" TextAlignment="Center" />
  1144. <TextBlock
  1145. Canvas.Left="830" Canvas.Top="294" HorizontalAlignment="Center" VerticalAlignment="Top"
  1146. d:Foreground="Red"
  1147. Foreground="{Binding DeviceStatus.真空泵, Converter={StaticResource BoolToColorConverter}}"
  1148. Text="⬛" TextAlignment="Center" />
  1149. <!--#endregion-->
  1150. <!--#region 联动按钮-->
  1151. <GroupBox
  1152. Canvas.Left="805" Canvas.Top="-30" HorizontalAlignment="Left" VerticalAlignment="Top"
  1153. Foreground="White" Header="联动按钮">
  1154. <UniformGrid Columns="2">
  1155. <!--#region 真空下料-->
  1156. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1157. <StackPanel
  1158. HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
  1159. <RadioButton
  1160. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1161. Click="new_Click" Content="真空下料:开" FontSize="8" Foreground="White"
  1162. GroupName="t3"
  1163. Style="{StaticResource radiobutton}"
  1164. Tag="2" />
  1165. <RadioButton
  1166. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1167. Content="真空下料:关" FontSize="8" Foreground="White" GroupName="t3"
  1168. IsChecked="True"
  1169. Style="{StaticResource radiobutton}"
  1170. Tag="2" />
  1171. </StackPanel>
  1172. <TextBlock
  1173. Margin="2,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
  1174. Foreground="{Binding DeviceStatus.真空下料, Converter={StaticResource BoolToColorConverter}}"
  1175. Text="⬛" TextAlignment="Center" />
  1176. </StackPanel>
  1177. <!--#endregion-->
  1178. <!--#region 闪蒸-->
  1179. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1180. <StackPanel VerticalAlignment="Center" Orientation="Vertical">
  1181. <RadioButton
  1182. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1183. Click="new_Click" Content="闪蒸:开" FontSize="8" Foreground="White"
  1184. GroupName="t1"
  1185. Style="{StaticResource radiobutton}"
  1186. Tag="0" />
  1187. <RadioButton
  1188. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1189. Content="闪蒸:关" FontSize="8" Foreground="White" GroupName="t1"
  1190. IsChecked="True"
  1191. Style="{StaticResource radiobutton}"
  1192. Tag="0" />
  1193. </StackPanel>
  1194. <TextBlock
  1195. Margin="2,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
  1196. Foreground="{Binding DeviceStatus.闪蒸, Converter={StaticResource BoolToColorConverter}}"
  1197. Text="⬛" TextAlignment="Center" />
  1198. </StackPanel>
  1199. <!--#endregion-->
  1200. <!--#region 二次闪蒸-->
  1201. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1202. <StackPanel
  1203. HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
  1204. <RadioButton
  1205. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1206. Click="new_Click" Content="二次闪蒸:开" FontSize="8" Foreground="White"
  1207. GroupName="t4"
  1208. Style="{StaticResource radiobutton}"
  1209. Tag="3" />
  1210. <RadioButton
  1211. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1212. Content="二次闪蒸:关" FontSize="8" Foreground="White" GroupName="t4"
  1213. IsChecked="True"
  1214. Style="{StaticResource radiobutton}"
  1215. Tag="3" />
  1216. </StackPanel>
  1217. <TextBlock
  1218. Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1219. Foreground="{Binding DeviceStatus.二次闪蒸, Converter={StaticResource BoolToColorConverter}}"
  1220. Text="⬛" TextAlignment="Center" />
  1221. </StackPanel>
  1222. <!--#endregion-->
  1223. <!--#region 真空蒸馏-->
  1224. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1225. <StackPanel VerticalAlignment="Center" Orientation="Vertical">
  1226. <RadioButton
  1227. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1228. Click="new_Click" Content="真空蒸馏:开" FontSize="8" Foreground="White"
  1229. GroupName="t2"
  1230. Style="{StaticResource radiobutton}"
  1231. Tag="1" />
  1232. <RadioButton
  1233. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1234. Content="真空蒸馏:关" FontSize="8" Foreground="White" GroupName="t2"
  1235. IsChecked="True"
  1236. Style="{StaticResource radiobutton}"
  1237. Tag="1" />
  1238. </StackPanel>
  1239. <TextBlock
  1240. Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1241. Foreground="{Binding DeviceStatus.真空蒸馏, Converter={StaticResource BoolToColorConverter}}"
  1242. Text="⬛" TextAlignment="Center" />
  1243. </StackPanel>
  1244. <!--#endregion-->
  1245. </UniformGrid>
  1246. </GroupBox>
  1247. <!--#endregion-->
  1248. <!--#region 空压机、旁通阀-->
  1249. <GroupBox
  1250. Canvas.Left="890" Canvas.Top="125" Foreground="White" Header="空压机、旁通阀">
  1251. <StackPanel>
  1252. <!--#region 空压机启动-->
  1253. <GroupBox Margin="0,0,0,0" Header="空压机启动">
  1254. <StackPanel Orientation="Vertical">
  1255. <StackPanel Orientation="Horizontal">
  1256. <StackPanel Orientation="Vertical">
  1257. <RadioButton
  1258. Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
  1259. Click="Open_Click" Content="打开" FontSize="8" Foreground="White"
  1260. GroupName="23"
  1261. Style="{StaticResource radiobutton}"
  1262. Tag="21" />
  1263. <RadioButton
  1264. Width="60" Height="22" BorderThickness="0" Click="Close_Click"
  1265. Content="关闭" FontSize="8" Foreground="White" GroupName="23"
  1266. IsChecked="True"
  1267. Style="{StaticResource radiobutton}"
  1268. Tag="21" />
  1269. </StackPanel>
  1270. <TextBlock
  1271. Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1272. Foreground="{Binding DeviceStatus.空压机启动, Converter={StaticResource BoolToColorConverter}}"
  1273. Text="⬛" TextAlignment="Center" />
  1274. </StackPanel>
  1275. <StackPanel Orientation="Horizontal">
  1276. <TextBlock
  1277. Margin="6,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="10"
  1278. Foreground="White" Text="启动反馈" TextAlignment="Center" />
  1279. <TextBlock
  1280. Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
  1281. Foreground="{Binding DeviceStatus.Compressor, Converter={StaticResource BoolToColorConverter}}"
  1282. Text="⚫" TextAlignment="Center" />
  1283. </StackPanel>
  1284. </StackPanel>
  1285. </GroupBox>
  1286. <!--#endregion-->
  1287. <!--#region 配料釜旁通阀-->
  1288. <GroupBox Margin="0" Header="配料釜旁通阀">
  1289. <StackPanel Orientation="Vertical">
  1290. <StackPanel Orientation="Horizontal">
  1291. <StackPanel
  1292. Canvas.Left="240" Canvas.Top="0" Orientation="Vertical">
  1293. <RadioButton
  1294. Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
  1295. Click="Open_Click" Content="打开" FontSize="8" Foreground="White"
  1296. GroupName="24"
  1297. Style="{StaticResource radiobutton}"
  1298. Tag="35" />
  1299. <RadioButton
  1300. Width="60" Height="22" BorderThickness="0" Click="Close_Click"
  1301. Content="关闭" FontSize="8" Foreground="White" GroupName="24"
  1302. IsChecked="True"
  1303. Style="{StaticResource radiobutton}"
  1304. Tag="35" />
  1305. </StackPanel>
  1306. <TextBlock
  1307. Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1308. Foreground="{Binding DeviceStatus.配料釜蒸汽输水旁通阀, Converter={StaticResource BoolToColorConverter}}"
  1309. Text="⬛" TextAlignment="Center" />
  1310. </StackPanel>
  1311. <StackPanel Orientation="Horizontal">
  1312. <TextBlock
  1313. Margin="6,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="10"
  1314. Foreground="White" Text="打开反馈" TextAlignment="Center" />
  1315. <TextBlock
  1316. Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" d:Foreground="Red"
  1317. Foreground="{Binding DeviceStatus.ByPassMaterial, Converter={StaticResource BoolToColorConverter}}"
  1318. Text="⚫" TextAlignment="Center" />
  1319. </StackPanel>
  1320. </StackPanel>
  1321. </GroupBox>
  1322. <!--#endregion-->
  1323. <!--#region 反应釜旁通阀-->
  1324. <GroupBox Margin="0" Header="反应釜旁通阀">
  1325. <StackPanel Orientation="Vertical">
  1326. <StackPanel Orientation="Horizontal">
  1327. <StackPanel
  1328. Canvas.Left="-113" Canvas.Top="60" HorizontalAlignment="Left" VerticalAlignment="Center"
  1329. Orientation="Vertical">
  1330. <RadioButton
  1331. Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
  1332. Click="Open_Click" Content="打开" FontSize="8" Foreground="White"
  1333. GroupName="25"
  1334. Style="{StaticResource radiobutton}"
  1335. Tag="36" />
  1336. <RadioButton
  1337. Width="60" Height="22" BorderThickness="0" Click="Close_Click"
  1338. Content="关闭" FontSize="8" Foreground="White" GroupName="25"
  1339. IsChecked="True"
  1340. Style="{StaticResource radiobutton}"
  1341. Tag="36" />
  1342. </StackPanel>
  1343. <TextBlock
  1344. Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1345. Foreground="{Binding DeviceStatus.反应釜蒸汽输水旁通阀, Converter={StaticResource BoolToColorConverter}}"
  1346. Text="⬛" TextAlignment="Center" />
  1347. </StackPanel>
  1348. <StackPanel Orientation="Horizontal">
  1349. <TextBlock
  1350. Margin="6,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="10"
  1351. Foreground="White" Text="打开反馈" TextAlignment="Center" />
  1352. <TextBlock
  1353. Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" d:Foreground="Red"
  1354. Foreground="{Binding DeviceStatus.ByPassReact, Converter={StaticResource BoolToColorConverter}}"
  1355. Text="⚫" TextAlignment="Center" />
  1356. </StackPanel>
  1357. </StackPanel>
  1358. </GroupBox>
  1359. <!--#endregion-->
  1360. <!--#region 反应釜排空阀-->
  1361. <GroupBox Margin="0" Header="反应釜排空阀">
  1362. <StackPanel Orientation="Vertical">
  1363. <StackPanel Orientation="Horizontal">
  1364. <TextBlock
  1365. Margin="6,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="10"
  1366. Foreground="White" Text="打开反馈" TextAlignment="Center" />
  1367. <TextBlock
  1368. Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" d:Foreground="Red"
  1369. Foreground="{Binding DeviceStatus.VX115, Converter={StaticResource BoolToColorConverter}}"
  1370. Text="⚫" TextAlignment="Center" />
  1371. </StackPanel>
  1372. </StackPanel>
  1373. </GroupBox>
  1374. <!--#endregion-->
  1375. </StackPanel>
  1376. </GroupBox>
  1377. <!--#endregion-->
  1378. <!--#region 显示图例-->
  1379. <!--<GroupBox
  1380. Canvas.Left="860" Canvas.Top="465" Foreground="White" Header="显示图例">
  1381. <StackPanel Orientation="Vertical">
  1382. <TextBlock
  1383. HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="10" Foreground="Red"
  1384. Text=" ⬛ :该阀/电机/功能指令为关闭" TextAlignment="Center" />
  1385. <TextBlock
  1386. HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="10" Foreground="Green"
  1387. Text=" ⬛ :该阀/电机/功能指令为打开" TextAlignment="Center" />
  1388. <TextBlock
  1389. HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="10" Foreground="Red"
  1390. Text="⚫ :该阀/电机/功能当前反馈状态为关闭" TextAlignment="Center" />
  1391. <TextBlock
  1392. HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="10" Foreground="Green"
  1393. Text="⚫ :该阀/电机/功能当前反馈状态为打开" TextAlignment="Center" />
  1394. </StackPanel>
  1395. </GroupBox>-->
  1396. <!--#endregion-->
  1397. </Canvas>
  1398. </Viewbox>
  1399. </Grid>
  1400. <Grid>
  1401. <Grid Margin="8,-3,-8,3">
  1402. <Grid.RowDefinitions>
  1403. <RowDefinition Height="50" />
  1404. <RowDefinition />
  1405. <RowDefinition Height="200" />
  1406. </Grid.RowDefinitions>
  1407. <StackPanel
  1408. Margin="200,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">
  1409. <TextBlock
  1410. VerticalAlignment="Center" FontSize="20" Foreground="White" Text="请输入产品编号:" />
  1411. <TextBox
  1412. x:Name="recipeName" Width="200" Height="40" VerticalAlignment="Center"
  1413. FontSize="20"
  1414. Text="{Binding Name}" />
  1415. </StackPanel>
  1416. <CheckBox
  1417. x:Name="start_check" Width="160" Height="50" HorizontalAlignment="Left"
  1418. VerticalAlignment="Top"
  1419. Command="{Binding Start}"
  1420. Content="{Binding Content}"
  1421. FontSize="30"
  1422. IsChecked="{Binding IsChecked}"
  1423. Style="{StaticResource Beveledcheck}" />
  1424. <Grid Grid.Row="2">
  1425. <Grid.RowDefinitions>
  1426. <RowDefinition Height="30" />
  1427. <RowDefinition Height="50" />
  1428. <RowDefinition />
  1429. </Grid.RowDefinitions>
  1430. <TextBlock
  1431. Margin="20,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20"
  1432. Foreground="White" Text="温度控制及校准:" />
  1433. <StackPanel
  1434. Grid.Row="1" Margin="20,2,30,0" HorizontalAlignment="Left" VerticalAlignment="Bottom"
  1435. Orientation="Horizontal">
  1436. <RadioButton
  1437. Height="40" Click="auto_click" Content="配料罐升温" GroupName="heat"
  1438. IsChecked="True"
  1439. Style="{StaticResource RectangleRadioButtonStyle}" />
  1440. <RadioButton
  1441. Height="40" Click="auto_click" Content="反应釜升温" GroupName="heat"
  1442. Style="{StaticResource RectangleRadioButtonStyle}" />
  1443. <RadioButton
  1444. Height="40" Click="auto_click" Content="反应釜降温" GroupName="heat"
  1445. Style="{StaticResource RectangleRadioButtonStyle}" />
  1446. <RadioButton
  1447. Height="40" Click="auto_click" Content="温度校准" GroupName="heat"
  1448. Style="{StaticResource RectangleRadioButtonStyle}" />
  1449. </StackPanel>
  1450. <Border
  1451. Grid.Row="2" Margin="20,0,30,10" BorderBrush="#ff2AB2E7" BorderThickness="2">
  1452. <UniformGrid Rows="2">
  1453. <Grid>
  1454. <WrapPanel x:Name="materialTemp" Margin="0,15,0,0">
  1455. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1456. <TextBlock
  1457. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1458. Foreground="White" Text="设置温度:" />
  1459. <TextBox
  1460. x:Name="temp_1" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1461. Text="0" />
  1462. <TextBlock
  1463. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1464. Foreground="White" Text="℃" />
  1465. <RadioButton
  1466. Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1467. BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
  1468. Style="{StaticResource radiobutton}" />
  1469. <RadioButton
  1470. Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
  1471. Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
  1472. Style="{StaticResource radiobutton}" />
  1473. <TextBlock
  1474. Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
  1475. Text="当前状态:" TextAlignment="Center" />
  1476. <TextBlock
  1477. HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
  1478. Foreground="{Binding DeviceStatus.配料罐自动升温, Converter={StaticResource BoolToColorConverter}}"
  1479. Text="⬛" TextAlignment="Center" />
  1480. </StackPanel>
  1481. </WrapPanel>
  1482. <WrapPanel
  1483. x:Name="wokTemp" Margin="0,15,0,0" Visibility="Collapsed">
  1484. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1485. <TextBlock
  1486. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1487. Foreground="White" Text="设置温度:" />
  1488. <TextBox
  1489. x:Name="temp_2" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1490. Text="0" />
  1491. <TextBlock
  1492. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1493. Foreground="White" Text="℃" />
  1494. <RadioButton
  1495. Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1496. BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
  1497. Style="{StaticResource radiobutton}" />
  1498. <RadioButton
  1499. Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
  1500. Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
  1501. Style="{StaticResource radiobutton}" />
  1502. <TextBlock
  1503. Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
  1504. Text="当前状态:" TextAlignment="Center" />
  1505. <TextBlock
  1506. HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
  1507. Foreground="{Binding DeviceStatus.反应釜自动升温, Converter={StaticResource BoolToColorConverter}}"
  1508. Text="⬛" TextAlignment="Center" />
  1509. </StackPanel>
  1510. </WrapPanel>
  1511. <WrapPanel
  1512. x:Name="wokCooling" Margin="0,15,0,0" Visibility="Collapsed">
  1513. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1514. <TextBlock
  1515. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1516. Foreground="White" Text="设置温度:" />
  1517. <TextBox
  1518. x:Name="temp_3" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1519. Text="0" />
  1520. <TextBlock
  1521. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1522. Foreground="White" Text="℃" />
  1523. <RadioButton
  1524. Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1525. BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
  1526. Style="{StaticResource radiobutton}" />
  1527. <RadioButton
  1528. Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
  1529. Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
  1530. Style="{StaticResource radiobutton}" />
  1531. <TextBlock
  1532. Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
  1533. Text="当前状态:" TextAlignment="Center" />
  1534. <TextBlock
  1535. HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
  1536. Foreground="{Binding DeviceStatus.反应釜自动降温, Converter={StaticResource BoolToColorConverter}}"
  1537. Text="⬛" TextAlignment="Center" />
  1538. </StackPanel>
  1539. </WrapPanel>
  1540. <WrapPanel
  1541. x:Name="caliTemp" Margin="0,15,0,0" Visibility="Collapsed">
  1542. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1543. <TextBlock
  1544. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1545. Foreground="White" Text="反应釜排气温度校准:" />
  1546. <TextBox
  1547. x:Name="tempvent" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1548. Text="0" />
  1549. <TextBlock
  1550. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1551. Foreground="White" Text="℃" />
  1552. </StackPanel>
  1553. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1554. <TextBlock
  1555. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1556. Foreground="White" Text="配料罐温度校准:" />
  1557. <TextBox
  1558. x:Name="tempmaterial" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1559. Text="0" />
  1560. <TextBlock
  1561. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1562. Foreground="White" Text="℃" />
  1563. </StackPanel>
  1564. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1565. <TextBlock
  1566. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1567. Foreground="White" Text="反应釜温度校准:" />
  1568. <TextBox
  1569. x:Name="tempwok" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1570. Text="0" />
  1571. <TextBlock
  1572. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1573. Foreground="White" Text="℃" />
  1574. </StackPanel>
  1575. <Button
  1576. Width="120" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1577. Click="TempSet_CLick" Content="确认"
  1578. Style="{StaticResource ButtonStyle}" />
  1579. </WrapPanel>
  1580. </Grid>
  1581. </UniformGrid>
  1582. </Border>
  1583. </Grid>
  1584. </Grid>
  1585. </Grid>
  1586. </Grid>
  1587. </Grid>
  1588. <TextBlock
  1589. x:Name="state" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="100"
  1590. FontWeight="Black" Text="设备未连接" Visibility="Collapsed" />
  1591. <Grid
  1592. x:Name="hzSet" Width="800" Height="500" Visibility="Collapsed">
  1593. <Grid.Background>
  1594. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
  1595. </Grid.Background>
  1596. <Grid.RowDefinitions>
  1597. <RowDefinition />
  1598. <RowDefinition Height="5*" />
  1599. </Grid.RowDefinitions>
  1600. <TextBlock
  1601. HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" Foreground="White"
  1602. Text="设置频率" />
  1603. <UniformGrid
  1604. Grid.Row="1" Margin="0,0,0,40" Rows="3">
  1605. <TextBlock
  1606. x:Name="motorName" Margin="60,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"
  1607. FontSize="25" Foreground="White" Text="配料搅拌频率:" />
  1608. <StackPanel
  1609. HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  1610. <TextBox
  1611. x:Name="motorValue" Width="260" Height="46" HorizontalContentAlignment="Center"
  1612. VerticalContentAlignment="Center" FontSize="25" Foreground="White" TextAlignment="Center" />
  1613. <TextBlock
  1614. Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="25"
  1615. Foreground="White" Text="%(范围:20-100)" />
  1616. </StackPanel>
  1617. <StackPanel
  1618. Margin="0,0,50,0" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal">
  1619. <Button
  1620. Width="120" Height="40" HorizontalAlignment="Right" VerticalAlignment="Center"
  1621. Click="hzSet_Click" Content="确认"
  1622. Style="{StaticResource ButtonStyle}" />
  1623. <Button
  1624. Width="120" Height="40" HorizontalAlignment="Right" VerticalAlignment="Center"
  1625. Click="hzCancel_Click" Content="取消"
  1626. Style="{StaticResource ButtonStyle}" />
  1627. </StackPanel>
  1628. </UniformGrid>
  1629. </Grid>
  1630. </Grid>
  1631. </UserControl>