终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

1452 行
104 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. xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel"
  10. d:DataContext="{d:DesignInstance Type=vm:DeviceMotionViewModel}"
  11. d:DesignHeight="950" d:DesignWidth="1735" 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="FontSize" Value="8" />
  56. <Setter Property="Template">
  57. <Setter.Value>
  58. <ControlTemplate TargetType="RadioButton">
  59. <Border
  60. x:Name="bord"
  61. Width="{TemplateBinding Width}"
  62. Height="{TemplateBinding Height}"
  63. Background="{TemplateBinding Background}"
  64. BorderBrush="{TemplateBinding BorderBrush}"
  65. BorderThickness="{TemplateBinding BorderThickness}">
  66. <ContentControl
  67. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  68. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  69. Content="{TemplateBinding Content}"
  70. Foreground="{TemplateBinding Foreground}" />
  71. </Border>
  72. <ControlTemplate.Triggers>
  73. <Trigger Property="IsChecked" Value="True">
  74. <Setter TargetName="bord" Property="Background">
  75. <Setter.Value>
  76. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
  77. </Setter.Value>
  78. </Setter>
  79. </Trigger>
  80. <Trigger Property="IsChecked" Value="False">
  81. <Setter TargetName="bord" Property="Background">
  82. <Setter.Value>
  83. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  84. </Setter.Value>
  85. </Setter>
  86. </Trigger>
  87. </ControlTemplate.Triggers>
  88. </ControlTemplate>
  89. </Setter.Value>
  90. </Setter>
  91. </Style>
  92. </UserControl.Resources>
  93. <Grid>
  94. <Grid
  95. Height="50" HorizontalAlignment="Right" VerticalAlignment="Top">
  96. <Border Margin="0,0,100,0" HorizontalAlignment="Center">
  97. <Button
  98. Margin="20,5"
  99. Command="{Binding DataRecordCommand}"
  100. Content="选择设备类型"
  101. Style="{StaticResource ButtonStyle}" />
  102. </Border>
  103. </Grid>
  104. <Grid
  105. x:Name="ooo" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" d:IsHitTestVisible="True"
  106. d:Opacity="1" IsHitTestVisible="False" Opacity="0.5">
  107. <Grid.RowDefinitions>
  108. <RowDefinition />
  109. <RowDefinition Height="0" />
  110. </Grid.RowDefinitions>
  111. <Grid>
  112. <Grid Margin="0,100">
  113. <Viewbox Stretch="Uniform">
  114. <Canvas Width="970" Height="450">
  115. <!--#region 配料搅拌-->
  116. <TextBlock
  117. Canvas.Left="62" Canvas.Top="10" HorizontalAlignment="Center" VerticalAlignment="Top"
  118. FontSize="10"
  119. Foreground="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  120. Text="配料釜搅拌" />
  121. <StackPanel
  122. Canvas.Left="56" Canvas.Top="35" Orientation="Horizontal">
  123. <bpa:MotorTwo
  124. Width="60" Height="30" Margin="0,-20,0,0"
  125. MotorColors="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=3}" />
  126. <bpa:MotorHousing
  127. Width="50" Height="50" Margin="-20,0,0,0" />
  128. </StackPanel>
  129. <!--#endregion-->
  130. <!--#region 阀门1 进料阀-->
  131. <StackPanel
  132. Canvas.Left="87" Canvas.Top="150" Width="70" Height="120">
  133. <bpa:PipeLineV
  134. Width="15" Height="80"
  135. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  136. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  137. Speed="10" />
  138. <bpa:PipeLineTR
  139. Width="30" Margin="0,-1,-15,0"
  140. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  141. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  142. LineWidth="15" Speed="10" />
  143. </StackPanel>
  144. <TextBlock
  145. Canvas.Left="70" Canvas.Top="130" FontSize="10"
  146. Foreground="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  147. Text="进料阀" />
  148. <StackPanel
  149. Canvas.Left="90" Canvas.Top="65" Width="65" Height="130">
  150. <bpa:JAR Width="65" Height="65" />
  151. <bpa:HandValve
  152. Width="45" Height="65" Margin="0,-20,-12,0"
  153. EdgeColor="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  154. OpenEnable="{Binding DeviceStatus.VX100}"
  155. RenderTransformOrigin="0.5,0.5">
  156. <bpa:HandValve.RenderTransform>
  157. <TransformGroup>
  158. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  159. <SkewTransform />
  160. <RotateTransform Angle="90" />
  161. <TranslateTransform />
  162. </TransformGroup>
  163. </bpa:HandValve.RenderTransform>
  164. </bpa:HandValve>
  165. </StackPanel>
  166. <bpa:PipeLineH
  167. Canvas.Left="144" Canvas.Top="244" Width="65" Height="15"
  168. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  169. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  170. Speed="10" />
  171. <!--#endregion-->
  172. <!--#region 阀门3 回油阀-->
  173. <bpa:PipeLineTL
  174. Canvas.Left="427" Canvas.Top="200" Width="16" Margin="0,0,0,-8"
  175. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  176. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  177. LineWidth="25" Speed="10" />
  178. <bpa:PipeLineV
  179. Canvas.Left="435" Canvas.Top="177" Width="8" Height="23"
  180. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  181. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  182. Speed="10" />
  183. <TextBlock FontSize="10"
  184. Canvas.Left="492" Canvas.Top="135" HorizontalAlignment="Left" VerticalAlignment="Center"
  185. Foreground="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  186. Text="回油阀" />
  187. <StackPanel
  188. Canvas.Left="435" Canvas.Top="160" Orientation="Horizontal">
  189. <bpa:PipeLineBR
  190. Width="16" Margin="0,0,0,-8"
  191. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  192. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  193. LineWidth="25" Speed="10" />
  194. <bpa:PipeLineH
  195. Width="50" Height="8"
  196. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  197. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  198. Speed="10" />
  199. <bpa:HandValve
  200. Width="25" Margin="-1,-7,0,0" Panel.ZIndex="1"
  201. EdgeColor="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  202. OpenEnable="{Binding DeviceStatus.VX102}" />
  203. <bpa:PipeLineH
  204. Width="50" Height="8" Margin="-6,0,0,0" Panel.ZIndex="0"
  205. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  206. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  207. Speed="10" />
  208. </StackPanel>
  209. <!--#endregion-->
  210. <!--#region 阀门4 回水阀-->
  211. <TextBlock
  212. Canvas.Left="511" Canvas.Top="220" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="10"
  213. Foreground="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  214. Text="回水阀" />
  215. <StackPanel
  216. Canvas.Left="427" Canvas.Top="200" Orientation="Horizontal">
  217. <bpa:PipeLineH
  218. Width="93" Height="8"
  219. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  220. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  221. Speed="10" />
  222. <bpa:HandValve
  223. Width="25" Margin="-1,-7,0,0" Panel.ZIndex="1"
  224. EdgeColor="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  225. OpenEnable="{Binding DeviceStatus.VX103}" />
  226. <bpa:PipeLineH
  227. Width="100" Height="8" Margin="-6,0,0,0" Panel.ZIndex="0"
  228. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  229. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  230. Speed="10" />
  231. <bpa:PipeLineTL
  232. Width="16" Margin="0,0,0,8"
  233. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  234. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  235. LineWidth="25" Speed="10" />
  236. </StackPanel>
  237. <bpa:PipeLineV
  238. Canvas.Left="646" Canvas.Top="170" Width="8" Height="30"
  239. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  240. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  241. Speed="10" />
  242. <bpa:PipeLineBL
  243. Canvas.Left="638" Canvas.Top="154" Width="16"
  244. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  245. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  246. LineWidth="25" Speed="10" />
  247. <bpa:PipeLineH
  248. Canvas.Left="607" Canvas.Top="154" Width="31" Height="8"
  249. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  250. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  251. Speed="10" />
  252. <!--#endregion-->
  253. <!--#region 阀门3-4连接-->
  254. <bpa:PipeLineH
  255. Canvas.Left="229" Canvas.Top="208" Width="198" Height="8"
  256. Direction="{Binding PipeLine.PipeH_1.Direction}"
  257. Fill="{Binding PipeLine.PipeH_1.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  258. Speed="10" />
  259. <!--#endregion-->
  260. <!--#region 阀门5 汇馏阀-->
  261. <TextBlock
  262. Canvas.Left="610" Canvas.Top="240" FontSize="10"
  263. Foreground="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  264. Text="汇馏阀" />
  265. <bpa:PipeLineV
  266. Canvas.Left="584" Canvas.Top="185" Width="8" Height="95"
  267. Direction="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  268. Fill="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  269. Speed="10" />
  270. <bpa:HandValve
  271. Canvas.Left="579" Canvas.Top="240" Width="25"
  272. EdgeColor="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  273. OpenEnable="{Binding DeviceStatus.VX104}"
  274. RenderTransformOrigin="0.5,0.5">
  275. <bpa:HandValve.RenderTransform>
  276. <TransformGroup>
  277. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  278. <SkewTransform />
  279. <RotateTransform Angle="90" />
  280. <TranslateTransform />
  281. </TransformGroup>
  282. </bpa:HandValve.RenderTransform>
  283. </bpa:HandValve>
  284. <!--#endregion-->
  285. <!--#region 阀门2 蒸馏阀-->
  286. <bpa:PipeLineH
  287. Canvas.Left="258" Canvas.Top="244" Width="65" Height="15"
  288. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  289. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  290. Speed="10" />
  291. <bpa:PipeLineTL
  292. Canvas.Left="321" Canvas.Top="229" Width="30"
  293. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  294. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  295. LineWidth="15" Speed="10" />
  296. <bpa:PipeLineV
  297. Canvas.Left="336" Canvas.Top="180" Width="15" Height="50"
  298. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  299. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  300. Speed="10" />
  301. <bpa:PipeLineV
  302. Canvas.Left="336" Canvas.Top="40" Width="15" Height="110"
  303. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  304. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  305. Speed="10" />
  306. <bpa:PipeLineBR
  307. Canvas.Left="336" Canvas.Top="10" Width="30"
  308. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  309. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  310. LineWidth="15" Speed="10" />
  311. <bpa:PipeLineH
  312. Canvas.Left="366" Canvas.Top="10" Width="200" Height="15"
  313. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  314. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  315. Speed="10" />
  316. <TextBlock FontSize="10"
  317. Canvas.Left="371" Canvas.Top="156" HorizontalAlignment="Center" VerticalAlignment="Top"
  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="37" 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="161" Canvas.Top="57" 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="249" 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. Width="12" Height="40" Margin="81,226,402,154"
  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" Width="35" Height="35" Margin="65,240,402,154"
  430. OpenEnable="{Binding DeviceStatus.VX108}"
  431. RenderTransformOrigin="0.5,0.5">
  432. <bpa:HandValve.RenderTransform>
  433. <TransformGroup>
  434. <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
  435. <SkewTransform />
  436. <RotateTransform Angle="270" />
  437. <TranslateTransform />
  438. </TransformGroup>
  439. </bpa:HandValve.RenderTransform>
  440. </bpa:HandValve>
  441. <!--#endregion-->
  442. <!--#region 阀门10 反应釜蒸汽疏水阀-->
  443. <TextBlock
  444. Canvas.Left="287" Canvas.Top="304" HorizontalAlignment="Center" VerticalAlignment="Top"
  445. FontSize="10"
  446. Foreground="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  447. Text="蒸汽疏水阀" />
  448. <bpa:PipeLineV
  449. Canvas.Left="348" Canvas.Top="287" Width="12" Height="43"
  450. Direction="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  451. Fill="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  452. LineWidth="4" />
  453. <bpa:HandValve
  454. Width="35" Height="35" Margin="341,296,402,154"
  455. OpenEnable="{Binding DeviceStatus.VX109}"
  456. RenderTransformOrigin="0.5,0.5">
  457. <bpa:HandValve.RenderTransform>
  458. <TransformGroup>
  459. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  460. <SkewTransform />
  461. <RotateTransform Angle="90" />
  462. <TranslateTransform />
  463. </TransformGroup>
  464. </bpa:HandValve.RenderTransform>
  465. </bpa:HandValve>
  466. <!--#endregion-->
  467. <!--#region 阀门11 反应釜冷却水给水阀-->
  468. <TextBlock
  469. Canvas.Left="399" Canvas.Top="239" HorizontalAlignment="Center" VerticalAlignment="Top"
  470. FontSize="10"
  471. Foreground="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  472. Text="冷却水给水阀" />
  473. <bpa:PipeLineTL
  474. Width="24" Height="24" Margin="360,266,402,154"
  475. Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  476. Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
  477. LineWidth="18" Speed="1" />
  478. <bpa:PipeLineV
  479. Width="12" Height="40" Margin="372,226,402,154"
  480. Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  481. Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
  482. LineWidth="4" Speed="10" />
  483. <bpa:HandValve
  484. x:Name="VX110" Width="35" Height="35" Margin="365,232,402,154"
  485. OpenEnable="{Binding DeviceStatus.VX110}"
  486. RenderTransformOrigin="0.5,0.5">
  487. <bpa:HandValve.RenderTransform>
  488. <TransformGroup>
  489. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  490. <SkewTransform />
  491. <RotateTransform Angle="90" />
  492. <TranslateTransform />
  493. </TransformGroup>
  494. </bpa:HandValve.RenderTransform>
  495. </bpa:HandValve>
  496. <!--#endregion-->
  497. <!--#region 阀门12 冷却水排水阀-->
  498. <TextBlock
  499. Canvas.Left="124" Canvas.Top="306" HorizontalAlignment="Center" VerticalAlignment="Top"
  500. FontSize="10"
  501. Foreground="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  502. Text="冷却水排水阀" />
  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. 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="25"
  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. 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="696" Canvas.Top="281" Width="30" Height="25"
  595. OpenEnable="{Binding DeviceStatus.VX113}" />
  596. <TextBlock
  597. Canvas.Left="682" Canvas.Top="307" HorizontalAlignment="Center" VerticalAlignment="Top"
  598. FontSize="10"
  599. Foreground="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  600. Text="蒸馏真空阀" />
  601. <!--#endregion-->
  602. <!--#region 阀门13-14连接-->
  603. <bpa:PipeLineV
  604. Canvas.Left="756" Canvas.Top="311" Width="10" Height="40"
  605. Direction="{Binding PipeLine.PipeH_4.Direction}"
  606. Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  607. Speed="4" />
  608. <bpa:PipeLineBR
  609. Canvas.Left="756" Canvas.Top="370" Width="20" Height="20"
  610. Direction="{Binding PipeLine.PipeH_4.Direction}"
  611. Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  612. LineWidth="20" Speed="4">
  613. <bpa:PipeLineBR.RenderTransform>
  614. <ScaleTransform ScaleY="-1.0" />
  615. </bpa:PipeLineBR.RenderTransform>
  616. </bpa:PipeLineBR>
  617. <!--#endregion-->
  618. <!--#region 反应釜搅拌-->
  619. <TextBlock FontSize="10"
  620. Canvas.Left="203" Canvas.Top="157" HorizontalAlignment="Center" VerticalAlignment="Top"
  621. Foreground="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  622. Text="反应釜搅拌" />
  623. <StackPanel
  624. Canvas.Left="200" Canvas.Top="175" Width="65" Height="220">
  625. <bpa:MotorTwo
  626. Width="40" Height="30" Margin="0,0,0,-1"
  627. MotorColors="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=3}"
  628. RenderTransformOrigin="0.5,0.5">
  629. <bpa:MotorTwo.RenderTransform>
  630. <TransformGroup>
  631. <ScaleTransform />
  632. <SkewTransform />
  633. <RotateTransform Angle="90" />
  634. <TranslateTransform />
  635. </TransformGroup>
  636. </bpa:MotorTwo.RenderTransform>
  637. </bpa:MotorTwo>
  638. <bpa:Joint
  639. Width="40" Height="30" Margin="0,0,0,-3" />
  640. <local:RetortTank
  641. Width="65" Height="120" Margin="0,4,0,0" />
  642. <bpa:HandValve
  643. Width="48" Height="65" Margin="0,-24,-14,0" RenderTransformOrigin="0.5,0.5">
  644. <bpa:HandValve.RenderTransform>
  645. <TransformGroup>
  646. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  647. <SkewTransform />
  648. <RotateTransform Angle="90" />
  649. <TranslateTransform />
  650. </TransformGroup>
  651. </bpa:HandValve.RenderTransform>
  652. </bpa:HandValve>
  653. </StackPanel>
  654. <!--#endregion-->
  655. <!--#region 水罐-->
  656. <bpa:Tanks
  657. Canvas.Left="570" Canvas.Top="280" Width="60" Height="60"
  658. Margin="0,-5,-15,0" />
  659. <!--#endregion-->
  660. <!--#region 真空泵-->
  661. <bpa:MotorTwo
  662. Canvas.Left="841" Canvas.Top="380" Width="40" Height="25"
  663. MotorColors="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=3}">
  664. <bpa:MotorTwo.RenderTransform>
  665. <RotateTransform Angle="180" />
  666. </bpa:MotorTwo.RenderTransform>
  667. </bpa:MotorTwo>
  668. <bpa:Joint
  669. Canvas.Left="817" Canvas.Top="355" Height="36">
  670. <bpa:Joint.RenderTransform>
  671. <ScaleTransform ScaleX="-1.0" />
  672. </bpa:Joint.RenderTransform>
  673. </bpa:Joint>
  674. <bpa:Tanks
  675. Canvas.Left="770" Canvas.Top="384" Width="50" Height="50" />
  676. <TextBlock
  677. Canvas.Left="775" Canvas.Top="333" FontSize="10"
  678. Foreground="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  679. Text="分馏真空泵" />
  680. <!--#endregion-->
  681. <!--#region 仪器标注-->
  682. <TextBlock
  683. Canvas.Left="108" Canvas.Top="84" HorizontalAlignment="Left" VerticalAlignment="Center"
  684. FontSize="10" Foreground="Blue" Text="配料罐" />
  685. <TextBlock
  686. Canvas.Left="92" Canvas.Top="70" Width="60" FontSize="10"
  687. Foreground="Red"
  688. Text="{Binding DeviceStatus.TempMaterial, StringFormat='{}{0}℃'}"
  689. TextAlignment="Center" />
  690. <TextBlock
  691. Canvas.Left="217" Canvas.Top="290" FontSize="10" Foreground="Blue"
  692. Text="反应釜" HorizontalAlignment="Left" VerticalAlignment="Center" />
  693. <TextBlock
  694. Canvas.Left="203" Canvas.Top="260" Width="60" FontSize="10"
  695. Foreground="Red"
  696. Text="{Binding DeviceStatus.TempWok, StringFormat='{}{0}℃'}"
  697. TextAlignment="Center" />
  698. <TextBlock
  699. Canvas.Left="572" Canvas.Top="88" FontSize="10" Foreground="Blue"
  700. Text="冷凝器" HorizontalAlignment="Left" VerticalAlignment="Center" />
  701. <TextBlock
  702. Canvas.Left="389" Canvas.Top="30" Width="150" FontSize="10"
  703. Foreground="Red"
  704. Text="{Binding DeviceStatus.TempVent, StringFormat='反应釜排气温度:{0}℃'}"
  705. TextAlignment="Center" />
  706. <TextBlock
  707. Canvas.Left="573" Canvas.Top="168" FontSize="10" Foreground="Blue"
  708. Text="蒸馏罐" HorizontalAlignment="Left" VerticalAlignment="Center" />
  709. <TextBlock
  710. Canvas.Left="589" Canvas.Top="312" FontSize="10" Foreground="Blue"
  711. Text="水罐" />
  712. <TextBlock
  713. Canvas.Left="570" Canvas.Top="295" Width="60" FontSize="10"
  714. Foreground="Red"
  715. Text="{Binding DeviceStatus.WeightWok, StringFormat='{}{0:f2}g'}"
  716. TextAlignment="Center" />
  717. <TextBlock
  718. Canvas.Left="780" Canvas.Top="414" FontSize="10" Foreground="Blue"
  719. Text="真空泵" />
  720. <!--#endregion-->
  721. <!--#region 水罐重量清零-->
  722. <Button
  723. Canvas.Left="480" Canvas.Top="370" Width="100" Height="25"
  724. VerticalAlignment="Center" Click="ClearBtn_CLick" Content="水罐重量清零" FontSize="10"
  725. Style="{StaticResource ButtonStyle}" />
  726. <!--#endregion-->
  727. <!--#region 控制按钮-->
  728. <StackPanel
  729. Canvas.Left="-29" Canvas.Top="-5" HorizontalAlignment="Left" VerticalAlignment="Center"
  730. Orientation="Vertical">
  731. <RadioButton
  732. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  733. Click="Open_Click" Content="配料釜搅拌:开" Foreground="White" GroupName="1"
  734. Style="{StaticResource radiobutton}"
  735. Tag="0" />
  736. <RadioButton
  737. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  738. Content="配料釜搅拌:关" Foreground="White" GroupName="1" IsChecked="True"
  739. Style="{StaticResource radiobutton}"
  740. Tag="0" />
  741. </StackPanel>
  742. <StackPanel
  743. Canvas.Left="-5" Canvas.Top="117" HorizontalAlignment="Center" VerticalAlignment="Top"
  744. Orientation="Vertical">
  745. <RadioButton
  746. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  747. Click="Open_Click" Content="进料阀:开" Foreground="White" GroupName="2"
  748. Style="{StaticResource radiobutton}"
  749. Tag="3" />
  750. <RadioButton
  751. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  752. Content="进料阀:关" Foreground="White" GroupName="2" IsChecked="True"
  753. Style="{StaticResource radiobutton}"
  754. Tag="3" />
  755. </StackPanel>
  756. <StackPanel
  757. Canvas.Left="132" Canvas.Top="174" HorizontalAlignment="Center" VerticalAlignment="Top"
  758. Orientation="Vertical">
  759. <RadioButton
  760. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  761. Click="Open_Click" Content="反应釜搅拌:开" Foreground="White" GroupName="3"
  762. Style="{StaticResource radiobutton}"
  763. Tag="1" />
  764. <RadioButton
  765. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  766. Content="反应釜搅拌:关" Foreground="White" GroupName="3" IsChecked="True"
  767. Style="{StaticResource radiobutton}"
  768. Tag="1" />
  769. </StackPanel>
  770. <StackPanel
  771. Canvas.Left="362" Canvas.Top="107" HorizontalAlignment="Left" VerticalAlignment="Center"
  772. Orientation="Vertical">
  773. <RadioButton
  774. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  775. Click="Open_Click" Content="蒸馏阀:开" Foreground="White" GroupName="4"
  776. Style="{StaticResource radiobutton}"
  777. Tag="4" />
  778. <RadioButton
  779. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  780. Content="蒸馏阀:关" Foreground="White" GroupName="4" IsChecked="True"
  781. Style="{StaticResource radiobutton}"
  782. Tag="4" />
  783. </StackPanel>
  784. <StackPanel
  785. Canvas.Left="482" Canvas.Top="88" HorizontalAlignment="Left" VerticalAlignment="Center"
  786. Orientation="Vertical">
  787. <RadioButton
  788. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  789. Click="Open_Click" Content="回油阀:开" Foreground="White" GroupName="5"
  790. Style="{StaticResource radiobutton}"
  791. Tag="5" />
  792. <RadioButton
  793. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  794. Content="回油阀:关" Foreground="White" GroupName="5" IsChecked="True"
  795. Style="{StaticResource radiobutton}"
  796. Tag="5" />
  797. </StackPanel>
  798. <StackPanel
  799. Canvas.Left="500" Canvas.Top="237" HorizontalAlignment="Left" VerticalAlignment="Center"
  800. Orientation="Vertical">
  801. <RadioButton
  802. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  803. Click="Open_Click" Content="回水阀:开" Foreground="White" GroupName="6"
  804. Style="{StaticResource radiobutton}"
  805. Tag="6" />
  806. <RadioButton
  807. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  808. Content="回水阀:关" Foreground="White" GroupName="6" IsChecked="True"
  809. Style="{StaticResource radiobutton}"
  810. Tag="6" />
  811. </StackPanel>
  812. <StackPanel
  813. Canvas.Left="645" Canvas.Top="224" Orientation="Vertical">
  814. <RadioButton
  815. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  816. Click="Open_Click" Content="汇馏阀:开" Foreground="White" GroupName="7"
  817. Style="{StaticResource radiobutton}"
  818. Tag="7" />
  819. <RadioButton
  820. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  821. Content="汇馏阀:关" Foreground="White" GroupName="7" IsChecked="True"
  822. Style="{StaticResource radiobutton}"
  823. Tag="7" />
  824. </StackPanel>
  825. <StackPanel
  826. Canvas.Left="611" Canvas.Top="368" HorizontalAlignment="Center" VerticalAlignment="Top"
  827. Orientation="Vertical">
  828. <RadioButton
  829. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  830. Click="Open_Click" Content="排馏阀:开" Foreground="White" GroupName="8"
  831. Style="{StaticResource radiobutton}"
  832. Tag="8" />
  833. <RadioButton
  834. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  835. Content="排馏阀:关" Foreground="White" GroupName="8" IsChecked="True"
  836. Style="{StaticResource radiobutton}"
  837. Tag="8" />
  838. </StackPanel>
  839. <StackPanel
  840. Canvas.Left="607" Canvas.Top="-12" HorizontalAlignment="Left" VerticalAlignment="Center"
  841. Orientation="Vertical">
  842. <RadioButton
  843. Width="75" Height="22" Margin="0,0,0,2" BorderThickness="0"
  844. Click="Open_Click" Content="冷凝器冷却水阀:开" Foreground="White" GroupName="9"
  845. Style="{StaticResource radiobutton}"
  846. Tag="9" />
  847. <RadioButton
  848. Width="75" Height="22" BorderThickness="0" Click="Close_Click"
  849. Content="冷凝器冷却水阀:关" Foreground="White" GroupName="9" IsChecked="True"
  850. Style="{StaticResource radiobutton}"
  851. Tag="9" />
  852. </StackPanel>
  853. <StackPanel
  854. Canvas.Left="156" Canvas.Top="8" HorizontalAlignment="Left" VerticalAlignment="Center"
  855. Orientation="Vertical">
  856. <RadioButton
  857. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  858. Click="Open_Click" Content="配料釜蒸汽阀:开" Foreground="White" GroupName="10"
  859. Style="{StaticResource radiobutton}"
  860. Tag="10" />
  861. <RadioButton
  862. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  863. Content="配料釜蒸汽阀:关" Foreground="White" GroupName="10" IsChecked="True"
  864. Style="{StaticResource radiobutton}"
  865. Tag="10" />
  866. </StackPanel>
  867. <StackPanel
  868. Canvas.Left="5" Canvas.Top="270" HorizontalAlignment="Left" VerticalAlignment="Center"
  869. Orientation="Vertical">
  870. <RadioButton
  871. Width="55" Height="25" Margin="0,0,0,2" BorderThickness="0"
  872. Click="Open_Click" Content="蒸汽阀:开" Foreground="White" GroupName="11"
  873. Style="{StaticResource radiobutton}"
  874. Tag="11" />
  875. <RadioButton
  876. Width="55" Height="25" BorderThickness="0" Click="Close_Click"
  877. Content="蒸汽阀:关" Foreground="White" GroupName="11" IsChecked="True"
  878. Style="{StaticResource radiobutton}"
  879. Tag="11" />
  880. </StackPanel>
  881. <StackPanel
  882. Canvas.Left="280" Canvas.Top="320" HorizontalAlignment="Left" VerticalAlignment="Center"
  883. Orientation="Vertical">
  884. <RadioButton
  885. Width="65" Height="22" Margin="0,0,0,2" BorderThickness="0"
  886. Click="Open_Click" Content="蒸汽疏水阀:开" Foreground="White" GroupName="12"
  887. Style="{StaticResource radiobutton}"
  888. Tag="12" />
  889. <RadioButton
  890. Width="65" Height="22" BorderThickness="0" Click="Close_Click"
  891. Content="蒸汽疏水阀:关" Foreground="White" GroupName="12" IsChecked="True"
  892. Style="{StaticResource radiobutton}"
  893. Tag="12" />
  894. </StackPanel>
  895. <StackPanel
  896. Canvas.Left="390" Canvas.Top="254" HorizontalAlignment="Left" VerticalAlignment="Center"
  897. Orientation="Vertical">
  898. <RadioButton
  899. Width="80" Height="22" Margin="0,0,0,2" BorderThickness="0"
  900. Click="Open_Click" Content="冷却水给水阀:开" Foreground="White"
  901. GroupName="13"
  902. Style="{StaticResource radiobutton}"
  903. Tag="13" />
  904. <RadioButton
  905. Width="80" Height="22" BorderThickness="0" Click="Close_Click"
  906. Content="冷却水给水阀:关" Foreground="White" GroupName="13"
  907. IsChecked="True"
  908. Style="{StaticResource radiobutton}"
  909. Tag="13" />
  910. </StackPanel>
  911. <StackPanel
  912. Canvas.Left="121" Canvas.Top="318" HorizontalAlignment="Left" VerticalAlignment="Center"
  913. Orientation="Vertical">
  914. <RadioButton
  915. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  916. Click="Open_Click" Content="冷却水排水阀:开" Foreground="White" GroupName="18"
  917. Style="{StaticResource radiobutton}"
  918. Tag="18" />
  919. <RadioButton
  920. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  921. Content="冷却水排水阀:关" Foreground="White" GroupName="18" IsChecked="True"
  922. Style="{StaticResource radiobutton}"
  923. Tag="18" />
  924. </StackPanel>
  925. <StackPanel
  926. Canvas.Left="775" Canvas.Top="135" HorizontalAlignment="Center" VerticalAlignment="Top"
  927. Orientation="Vertical">
  928. <RadioButton
  929. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  930. Click="Open_Click" Content="分馏真空阀:开" Foreground="White" GroupName="19"
  931. Style="{StaticResource radiobutton}"
  932. Tag="19" />
  933. <RadioButton
  934. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  935. Content="分馏真空阀:关" Foreground="White" GroupName="19" IsChecked="True"
  936. Style="{StaticResource radiobutton}"
  937. Tag="19" />
  938. </StackPanel>
  939. <StackPanel
  940. Canvas.Left="672" Canvas.Top="321" HorizontalAlignment="Center" VerticalAlignment="Top"
  941. Orientation="Vertical">
  942. <RadioButton
  943. Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
  944. Click="Open_Click" Content="蒸馏真空阀:开" Foreground="White"
  945. Style="{StaticResource radiobutton}"
  946. Tag="20" />
  947. <RadioButton
  948. Width="70" Height="22" BorderThickness="0" Click="Close_Click"
  949. Content="蒸馏真空阀:关" Foreground="White" IsChecked="True"
  950. Style="{StaticResource radiobutton}"
  951. Tag="20" />
  952. </StackPanel>
  953. <StackPanel
  954. Canvas.Left="772" Canvas.Top="284" HorizontalAlignment="Center" VerticalAlignment="Top"
  955. Orientation="Vertical">
  956. <RadioButton
  957. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  958. Click="Open_Click" Content="真空泵:开" Foreground="White" GroupName="20"
  959. Style="{StaticResource radiobutton}"
  960. Tag="2" />
  961. <RadioButton
  962. Width="55" Height="22" BorderThickness="0" Click="Close_Click"
  963. Content="真空泵:关" Foreground="White" GroupName="20" IsChecked="True"
  964. Style="{StaticResource radiobutton}"
  965. Tag="2" />
  966. </StackPanel>
  967. <!--#endregion-->
  968. <!--#region 新增按钮-->
  969. <StackPanel
  970. Canvas.Left="254" Canvas.Top="109" HorizontalAlignment="Left" VerticalAlignment="Center"
  971. Orientation="Vertical">
  972. <RadioButton
  973. Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
  974. Click="new_Click" Content="排空阀:开" Foreground="White" GroupName="t5"
  975. Style="{StaticResource radiobutton}"
  976. Tag="4" />
  977. <RadioButton
  978. Width="55" Height="22" BorderThickness="0" Click="new_Click"
  979. Content="排空阀:关" Foreground="White" GroupName="t5" IsChecked="True"
  980. Style="{StaticResource radiobutton}"
  981. Tag="4" />
  982. </StackPanel>
  983. <!--#endregion-->
  984. <!--#region 按钮变量反馈-->
  985. <TextBlock
  986. Canvas.Left="61" Canvas.Top="286" HorizontalAlignment="Center" VerticalAlignment="Top"
  987. d:Foreground="Red"
  988. Foreground="{Binding DeviceStatus.反应釜蒸汽阀, Converter={StaticResource BoolToColorConverter}}"
  989. Text="⬛" TextAlignment="Center" />
  990. <TextBlock
  991. Canvas.Left="192" Canvas.Top="333" HorizontalAlignment="Center" VerticalAlignment="Top"
  992. d:Foreground="Red"
  993. Foreground="{Binding DeviceStatus.反应釜冷却水排水阀, Converter={StaticResource BoolToColorConverter}}"
  994. Text="⬛" TextAlignment="Center" />
  995. <TextBlock
  996. Canvas.Left="56" Canvas.Top="131" HorizontalAlignment="Left" VerticalAlignment="Center"
  997. d:Foreground="Red"
  998. Foreground="{Binding DeviceStatus.进料阀, Converter={StaticResource BoolToColorConverter}}"
  999. Text="⬛" TextAlignment="Center" />
  1000. <TextBlock
  1001. Canvas.Left="46" Canvas.Top="8" HorizontalAlignment="Left" VerticalAlignment="Center"
  1002. d:Foreground="Red"
  1003. Foreground="{Binding DeviceStatus.配料罐搅拌电机, Converter={StaticResource BoolToColorConverter}}"
  1004. Text="⬛" TextAlignment="Center" />
  1005. <TextBlock
  1006. Canvas.Left="229" Canvas.Top="23" HorizontalAlignment="Left" VerticalAlignment="Center"
  1007. d:Foreground="Red"
  1008. Foreground="{Binding DeviceStatus.配料釜蒸汽阀, Converter={StaticResource BoolToColorConverter}}"
  1009. Text="⬛" TextAlignment="Center" />
  1010. <TextBlock
  1011. Canvas.Left="418" Canvas.Top="122" HorizontalAlignment="Left" VerticalAlignment="Center"
  1012. d:Foreground="Red"
  1013. Foreground="{Binding DeviceStatus.蒸馏阀, Converter={StaticResource BoolToColorConverter}}"
  1014. Text="⬛" TextAlignment="Center" />
  1015. <TextBlock
  1016. Canvas.Left="204" Canvas.Top="189" HorizontalAlignment="Center" VerticalAlignment="Top"
  1017. d:Foreground="Red"
  1018. Foreground="{Binding DeviceStatus.反应釜搅拌电机, Converter={StaticResource BoolToColorConverter}}"
  1019. Text="⬛" TextAlignment="Center" />
  1020. <TextBlock
  1021. Canvas.Left="346" Canvas.Top="335" HorizontalAlignment="Center" VerticalAlignment="Top"
  1022. d:Foreground="Red"
  1023. Foreground="{Binding DeviceStatus.反应釜蒸汽疏水阀, Converter={StaticResource BoolToColorConverter}}"
  1024. Text="⬛" TextAlignment="Center" />
  1025. <TextBlock
  1026. Canvas.Left="479" Canvas.Top="268" HorizontalAlignment="Left" VerticalAlignment="Center"
  1027. d:Foreground="Red"
  1028. Foreground="{Binding DeviceStatus.反应釜冷却水阀, Converter={StaticResource BoolToColorConverter}}"
  1029. Text="⬛" TextAlignment="Center" />
  1030. <TextBlock
  1031. Canvas.Left="556" Canvas.Top="252" HorizontalAlignment="Left" VerticalAlignment="Center"
  1032. d:Foreground="Red"
  1033. Foreground="{Binding DeviceStatus.回水阀, Converter={StaticResource BoolToColorConverter}}"
  1034. Text="⬛" TextAlignment="Center" />
  1035. <TextBlock
  1036. Canvas.Left="538" Canvas.Top="102" HorizontalAlignment="Center" VerticalAlignment="Top"
  1037. d:Foreground="Red"
  1038. Foreground="{Binding DeviceStatus.回油阀, Converter={StaticResource BoolToColorConverter}}"
  1039. Text="⬛" TextAlignment="Center" />
  1040. <TextBlock
  1041. Canvas.Left="685" Canvas.Top="3" HorizontalAlignment="Center" VerticalAlignment="Top"
  1042. d:Foreground="Red"
  1043. Foreground="{Binding DeviceStatus.冷凝器冷却阀, Converter={StaticResource BoolToColorConverter}}"
  1044. Text="⬛" TextAlignment="Center" />
  1045. <TextBlock
  1046. Canvas.Left="702" Canvas.Top="239" HorizontalAlignment="Left" VerticalAlignment="Center"
  1047. d:Foreground="Red"
  1048. Foreground="{Binding DeviceStatus.汇馏阀, Converter={StaticResource BoolToColorConverter}}"
  1049. Text="⬛" TextAlignment="Center" />
  1050. <TextBlock
  1051. Canvas.Left="848" Canvas.Top="150" HorizontalAlignment="Center" VerticalAlignment="Top"
  1052. d:Foreground="Red"
  1053. Foreground="{Binding DeviceStatus.分馏真空阀, Converter={StaticResource BoolToColorConverter}}"
  1054. Text="⬛" TextAlignment="Center" />
  1055. <TextBlock
  1056. Canvas.Left="743" Canvas.Top="336" HorizontalAlignment="Center" VerticalAlignment="Top"
  1057. d:Foreground="Red"
  1058. Foreground="{Binding DeviceStatus.蒸馏真空阀, Converter={StaticResource BoolToColorConverter}}"
  1059. Text="⬛" TextAlignment="Center" />
  1060. <TextBlock
  1061. Canvas.Left="668" Canvas.Top="384" HorizontalAlignment="Center" VerticalAlignment="Top"
  1062. d:Foreground="Red"
  1063. Foreground="{Binding DeviceStatus.排馏阀, Converter={StaticResource BoolToColorConverter}}"
  1064. Text="⬛" TextAlignment="Center" />
  1065. <TextBlock
  1066. Canvas.Left="540" Canvas.Top="350" HorizontalAlignment="Left" VerticalAlignment="Top"
  1067. d:Foreground="Red"
  1068. Foreground="{Binding DeviceStatus.水罐重量清零, Converter={StaticResource BoolToColorConverter}}"
  1069. Text="⬛" TextAlignment="Center" />
  1070. <TextBlock
  1071. Canvas.Left="829" Canvas.Top="299" HorizontalAlignment="Left" VerticalAlignment="Center"
  1072. d:Foreground="Red"
  1073. Foreground="{Binding DeviceStatus.真空泵, Converter={StaticResource BoolToColorConverter}}"
  1074. Text="⬛" TextAlignment="Center" />
  1075. <TextBlock
  1076. Canvas.Left="312" Canvas.Top="125" HorizontalAlignment="Center" VerticalAlignment="Top"
  1077. d:Foreground="Red"
  1078. Foreground="{Binding DeviceStatus.反应釜排空阀, Converter={StaticResource BoolToColorConverter}}"
  1079. Text="⬛" TextAlignment="Center" />
  1080. <!--#endregion-->
  1081. <!--#region 联动按钮-->
  1082. <GroupBox
  1083. Canvas.Left="809" Canvas.Top="-16" HorizontalAlignment="Center" VerticalAlignment="Top"
  1084. Foreground="White" Header="联动按钮">
  1085. <UniformGrid Columns="2">
  1086. <!--#region 真空下料-->
  1087. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1088. <StackPanel
  1089. HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
  1090. <RadioButton
  1091. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1092. Click="new_Click" Content="真空下料:开" FontSize="8" Foreground="White"
  1093. GroupName="t3"
  1094. Style="{StaticResource radiobutton}"
  1095. Tag="2" />
  1096. <RadioButton
  1097. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1098. Content="真空下料:关" FontSize="8" Foreground="White" GroupName="t3"
  1099. IsChecked="True"
  1100. Style="{StaticResource radiobutton}"
  1101. Tag="2" />
  1102. </StackPanel>
  1103. <TextBlock
  1104. Margin="2,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
  1105. Foreground="{Binding DeviceStatus.真空下料, Converter={StaticResource BoolToColorConverter}}"
  1106. Text="⬛" TextAlignment="Center" />
  1107. </StackPanel>
  1108. <!--#endregion-->
  1109. <!--#region 闪蒸-->
  1110. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1111. <StackPanel VerticalAlignment="Center" Orientation="Vertical">
  1112. <RadioButton
  1113. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1114. Click="new_Click" Content="闪蒸:开" FontSize="8" Foreground="White"
  1115. GroupName="t1"
  1116. Style="{StaticResource radiobutton}"
  1117. Tag="0" />
  1118. <RadioButton
  1119. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1120. Content="闪蒸:关" FontSize="8" Foreground="White" GroupName="t1"
  1121. IsChecked="True"
  1122. Style="{StaticResource radiobutton}"
  1123. Tag="0" />
  1124. </StackPanel>
  1125. <TextBlock
  1126. Margin="2,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
  1127. Foreground="{Binding DeviceStatus.闪蒸, Converter={StaticResource BoolToColorConverter}}"
  1128. Text="⬛" TextAlignment="Center" />
  1129. </StackPanel>
  1130. <!--#endregion-->
  1131. <!--#region 二次闪蒸-->
  1132. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1133. <StackPanel
  1134. HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
  1135. <RadioButton
  1136. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1137. Click="new_Click" Content="二次闪蒸:开" FontSize="8" Foreground="White"
  1138. GroupName="t4"
  1139. Style="{StaticResource radiobutton}"
  1140. Tag="3" />
  1141. <RadioButton
  1142. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1143. Content="二次闪蒸:关" FontSize="8" Foreground="White" GroupName="t4"
  1144. IsChecked="True"
  1145. Style="{StaticResource radiobutton}"
  1146. Tag="3" />
  1147. </StackPanel>
  1148. <TextBlock
  1149. Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1150. Foreground="{Binding DeviceStatus.二次闪蒸, Converter={StaticResource BoolToColorConverter}}"
  1151. Text="⬛" TextAlignment="Center" />
  1152. </StackPanel>
  1153. <!--#endregion-->
  1154. <!--#region 真空蒸馏-->
  1155. <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
  1156. <StackPanel VerticalAlignment="Center" Orientation="Vertical">
  1157. <RadioButton
  1158. Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
  1159. Click="new_Click" Content="真空蒸馏:开" FontSize="8" Foreground="White"
  1160. GroupName="t2"
  1161. Style="{StaticResource radiobutton}"
  1162. Tag="1" />
  1163. <RadioButton
  1164. Width="70" Height="20" BorderThickness="0" Click="new_Click"
  1165. Content="真空蒸馏:关" FontSize="8" Foreground="White" GroupName="t2"
  1166. IsChecked="True"
  1167. Style="{StaticResource radiobutton}"
  1168. Tag="1" />
  1169. </StackPanel>
  1170. <TextBlock
  1171. Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
  1172. Foreground="{Binding DeviceStatus.真空蒸馏, Converter={StaticResource BoolToColorConverter}}"
  1173. Text="⬛" TextAlignment="Center" />
  1174. </StackPanel>
  1175. <!--#endregion-->
  1176. </UniformGrid>
  1177. </GroupBox>
  1178. <!--#endregion-->
  1179. </Canvas>
  1180. </Viewbox>
  1181. </Grid>
  1182. <Grid>
  1183. <Viewbox Stretch="Uniform">
  1184. <Grid Width="1641" Height="900">
  1185. <StackPanel
  1186. Margin="200,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal">
  1187. <TextBlock
  1188. VerticalAlignment="Center" FontSize="20" Foreground="White" Text="请输入产品编号:" />
  1189. <TextBox
  1190. x:Name="recipeName" Width="200" Height="40" VerticalAlignment="Center"
  1191. FontSize="20"
  1192. Text="{Binding Name}" />
  1193. </StackPanel>
  1194. <CheckBox
  1195. x:Name="start_check" Width="160" Height="50" HorizontalAlignment="Left"
  1196. VerticalAlignment="Top"
  1197. Command="{Binding Start}"
  1198. Content="{Binding Content}"
  1199. FontSize="30"
  1200. IsChecked="{Binding IsChecked}"
  1201. Style="{StaticResource Beveledcheck}" />
  1202. <Grid Margin="0,700,0,0">
  1203. <Grid.RowDefinitions>
  1204. <RowDefinition Height="30" />
  1205. <RowDefinition Height="50" />
  1206. <RowDefinition />
  1207. </Grid.RowDefinitions>
  1208. <TextBlock
  1209. Margin="20,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20"
  1210. Foreground="White" Text="温度控制及校准:" />
  1211. <StackPanel
  1212. Grid.Row="1" Margin="20,2,30,0" HorizontalAlignment="Left" VerticalAlignment="Bottom"
  1213. Orientation="Horizontal">
  1214. <RadioButton
  1215. Height="40" Click="auto_click" Content="配料罐升温" GroupName="heat"
  1216. IsChecked="True"
  1217. Style="{StaticResource RectangleRadioButtonStyle}" />
  1218. <RadioButton
  1219. Height="40" Click="auto_click" Content="反应釜升温" GroupName="heat"
  1220. Style="{StaticResource RectangleRadioButtonStyle}" />
  1221. <RadioButton
  1222. Height="40" Click="auto_click" Content="反应釜降温" GroupName="heat"
  1223. Style="{StaticResource RectangleRadioButtonStyle}" />
  1224. <RadioButton
  1225. Height="40" Click="auto_click" Content="温度校准" GroupName="heat"
  1226. Style="{StaticResource RectangleRadioButtonStyle}" />
  1227. </StackPanel>
  1228. <Border
  1229. Grid.Row="2" Margin="20,0,30,10" BorderBrush="#ff2AB2E7" BorderThickness="2">
  1230. <UniformGrid Rows="2">
  1231. <Grid>
  1232. <WrapPanel x:Name="materialTemp" Margin="0,15,0,0">
  1233. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1234. <TextBlock
  1235. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1236. Foreground="White" Text="设置温度:" />
  1237. <TextBox
  1238. x:Name="temp_1" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1239. Text="0" />
  1240. <TextBlock
  1241. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1242. Foreground="White" Text="℃" />
  1243. <RadioButton FontSize="16"
  1244. Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1245. BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
  1246. Style="{StaticResource radiobutton}" />
  1247. <RadioButton FontSize="16"
  1248. Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
  1249. Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
  1250. Style="{StaticResource radiobutton}" />
  1251. <TextBlock
  1252. Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
  1253. Text="当前状态:" TextAlignment="Center" />
  1254. <TextBlock
  1255. HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
  1256. Foreground="{Binding DeviceStatus.配料罐自动升温, Converter={StaticResource BoolToColorConverter}}"
  1257. Text="⬛" TextAlignment="Center" />
  1258. </StackPanel>
  1259. </WrapPanel>
  1260. <WrapPanel
  1261. x:Name="wokTemp" Margin="0,15,0,0" Visibility="Collapsed">
  1262. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1263. <TextBlock
  1264. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1265. Foreground="White" Text="设置温度:" />
  1266. <TextBox
  1267. x:Name="temp_2" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1268. Text="0" />
  1269. <TextBlock
  1270. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1271. Foreground="White" Text="℃" />
  1272. <RadioButton FontSize="16"
  1273. Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1274. BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
  1275. Style="{StaticResource radiobutton}" />
  1276. <RadioButton FontSize="16"
  1277. Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
  1278. Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
  1279. Style="{StaticResource radiobutton}" />
  1280. <TextBlock
  1281. Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
  1282. Text="当前状态:" TextAlignment="Center" />
  1283. <TextBlock
  1284. HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
  1285. Foreground="{Binding DeviceStatus.反应釜自动升温, Converter={StaticResource BoolToColorConverter}}"
  1286. Text="⬛" TextAlignment="Center" />
  1287. </StackPanel>
  1288. </WrapPanel>
  1289. <WrapPanel
  1290. x:Name="wokCooling" Margin="0,15,0,0" Visibility="Collapsed">
  1291. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1292. <TextBlock
  1293. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1294. Foreground="White" Text="设置温度:" />
  1295. <TextBox
  1296. x:Name="temp_3" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1297. Text="0" />
  1298. <TextBlock
  1299. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1300. Foreground="White" Text="℃" />
  1301. <RadioButton FontSize="16"
  1302. Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1303. BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
  1304. Style="{StaticResource radiobutton}" />
  1305. <RadioButton FontSize="16"
  1306. Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
  1307. Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
  1308. Style="{StaticResource radiobutton}" />
  1309. <TextBlock
  1310. Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
  1311. Text="当前状态:" TextAlignment="Center" />
  1312. <TextBlock
  1313. HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
  1314. Foreground="{Binding DeviceStatus.反应釜自动降温, Converter={StaticResource BoolToColorConverter}}"
  1315. Text="⬛" TextAlignment="Center" />
  1316. </StackPanel>
  1317. </WrapPanel>
  1318. <WrapPanel
  1319. x:Name="caliTemp" Margin="0,15,0,0" Visibility="Collapsed">
  1320. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1321. <TextBlock
  1322. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1323. Foreground="White" Text="反应釜排气温度校准:" />
  1324. <TextBox
  1325. x:Name="tempvent" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1326. Text="0" />
  1327. <TextBlock
  1328. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1329. Foreground="White" Text="℃" />
  1330. </StackPanel>
  1331. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1332. <TextBlock
  1333. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  1334. Foreground="White" Text="配料罐温度校准:" />
  1335. <TextBox
  1336. x:Name="tempmaterial" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1337. Text="0" />
  1338. <TextBlock
  1339. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1340. Foreground="White" Text="℃" />
  1341. </StackPanel>
  1342. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1343. <TextBlock
  1344. Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1345. Foreground="White" Text="反应釜温度校准:" />
  1346. <TextBox
  1347. x:Name="tempwok" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
  1348. Text="0" />
  1349. <TextBlock
  1350. Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
  1351. Foreground="White" Text="℃" />
  1352. </StackPanel>
  1353. <Button
  1354. Width="120" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
  1355. Click="TempSet_CLick" Content="确认"
  1356. Style="{StaticResource ButtonStyle}" />
  1357. </WrapPanel>
  1358. </Grid>
  1359. </UniformGrid>
  1360. </Border>
  1361. </Grid>
  1362. </Grid>
  1363. </Viewbox>
  1364. </Grid>
  1365. </Grid>
  1366. </Grid>
  1367. <TextBlock
  1368. x:Name="state" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="100"
  1369. FontWeight="Black" Text="设备未连接" Visibility="Collapsed" />
  1370. <Grid
  1371. x:Name="hzSet" Width="800" Height="500" Visibility="Collapsed">
  1372. <Grid.Background>
  1373. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
  1374. </Grid.Background>
  1375. <Grid.RowDefinitions>
  1376. <RowDefinition />
  1377. <RowDefinition Height="5*" />
  1378. </Grid.RowDefinitions>
  1379. <TextBlock
  1380. HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" Foreground="White"
  1381. Text="设置频率" />
  1382. <UniformGrid
  1383. Grid.Row="1" Margin="0,0,0,40" Rows="3">
  1384. <TextBlock
  1385. x:Name="motorName" Margin="60,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"
  1386. FontSize="25" Foreground="White" Text="配料搅拌频率:" />
  1387. <StackPanel
  1388. HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  1389. <TextBox
  1390. x:Name="motorValue" Width="260" Height="46" HorizontalContentAlignment="Center"
  1391. VerticalContentAlignment="Center" FontSize="25" Foreground="White" TextAlignment="Center" />
  1392. <TextBlock
  1393. Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="25"
  1394. Foreground="White" Text="%(范围:20-100)" />
  1395. </StackPanel>
  1396. <StackPanel
  1397. Margin="0,0,50,0" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal">
  1398. <Button
  1399. Width="120" Height="40" HorizontalAlignment="Right" VerticalAlignment="Center"
  1400. Click="hzSet_Click" Content="确认"
  1401. Style="{StaticResource ButtonStyle}" />
  1402. <Button
  1403. Width="120" Height="40" HorizontalAlignment="Right" VerticalAlignment="Center"
  1404. Click="hzCancel_Click" Content="取消"
  1405. Style="{StaticResource ButtonStyle}" />
  1406. </StackPanel>
  1407. </UniformGrid>
  1408. </Grid>
  1409. </Grid>
  1410. </UserControl>