终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1769 lines
98 KiB

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