终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

582 Zeilen
36 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.Academy.View.DeviceChart50LView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.Academy.View"
  7. xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:oxy="http://oxyplot.org/wpf" xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel"
  10. d:DesignHeight="949" d:DesignWidth="1734" mc:Ignorable="d">
  11. <UserControl.DataContext>
  12. <vm:DeviceChart50LViewModel />
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <Style x:Key="setCheck" TargetType="{x:Type RadioButton}">
  16. <Setter Property="HorizontalContentAlignment" Value="Center" />
  17. <Setter Property="VerticalContentAlignment" Value="Center" />
  18. <Setter Property="HorizontalAlignment" Value="Center" />
  19. <Setter Property="VerticalAlignment" Value="Center" />
  20. <Setter Property="Background" Value="Transparent" />
  21. <Setter Property="Template">
  22. <Setter.Value>
  23. <ControlTemplate TargetType="{x:Type RadioButton}">
  24. <Border Background="Transparent" BorderThickness="0">
  25. <ContentControl
  26. x:Name="check"
  27. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  28. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
  29. Content="{TemplateBinding Content}"
  30. Foreground="#777777" />
  31. </Border>
  32. <ControlTemplate.Triggers>
  33. <Trigger Property="IsMouseOver" Value="True">
  34. <Setter TargetName="check" Property="Foreground" Value="White" />
  35. </Trigger>
  36. <Trigger Property="IsPressed" Value="True">
  37. <Setter TargetName="check" Property="Foreground" Value="White" />
  38. </Trigger>
  39. </ControlTemplate.Triggers>
  40. </ControlTemplate>
  41. </Setter.Value>
  42. </Setter>
  43. </Style>
  44. </UserControl.Resources>
  45. <Grid>
  46. <ScrollViewer x:Name="ooo" Grid.Row="1">
  47. <StackPanel>
  48. <StackPanel Orientation="Vertical">
  49. <StackPanel
  50. Margin="0,0,60,0" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal">
  51. <TextBlock
  52. VerticalAlignment="Center" FontSize="16" Foreground="DeepSkyBlue" Text="产品编号:" />
  53. <TextBox
  54. Width="200" Height="30" Margin="0,0,10,0" VerticalContentAlignment="Center"
  55. Background="Transparent" BorderBrush="DeepSkyBlue" CaretBrush="DeepSkyBlue" FontSize="16"
  56. Foreground="DeepSkyBlue"
  57. Style="{x:Null}"
  58. Text="{Binding ProductNum}" />
  59. <Button
  60. Width="120" Height="30"
  61. Command="{Binding FindProductCommand}"
  62. Content="查询编号"
  63. Style="{StaticResource ButtonStyle}" />
  64. <TextBlock
  65. Margin="30,0,0,0" VerticalAlignment="Center" FontSize="16" Foreground="DeepSkyBlue"
  66. Text="查询时间:" />
  67. <DatePicker
  68. Width="150" Margin="0,0,10,0" BorderBrush="DeepSkyBlue" FontSize="16"
  69. SelectedDate="{Binding SelectTime}"
  70. Style="{DynamicResource PickerStyle}" />
  71. <Button
  72. Width="120" Height="30"
  73. Command="{Binding Select}"
  74. Content="查询"
  75. Style="{StaticResource ButtonStyle}" />
  76. <Button
  77. Command="{Binding ShowRefrenceWindowCommand}"
  78. Content="打开参照曲线选择"
  79. Style="{StaticResource ButtonStyle}" />
  80. <Button
  81. Command="{Binding HiddenRefrenceWindowCommand}"
  82. Content="关闭参照曲线选择"
  83. Style="{StaticResource ButtonStyle}" />
  84. </StackPanel>
  85. <!--#region 表格-->
  86. <Grid
  87. Grid.Column="0" Margin="20,20,20,0" d:Visibility="Visible" Background="Transparent"
  88. Visibility="{Binding ReferenceWindownVisiblity}">
  89. <Grid.RowDefinitions>
  90. <RowDefinition Height="50" />
  91. <RowDefinition />
  92. </Grid.RowDefinitions>
  93. <!--#region 标题-->
  94. <Grid Background="#ff0C255F">
  95. <Grid.ColumnDefinitions>
  96. <ColumnDefinition Width="50" />
  97. <ColumnDefinition />
  98. <ColumnDefinition Width="400" />
  99. <ColumnDefinition Width="150" />
  100. </Grid.ColumnDefinitions>
  101. <Border
  102. Grid.ColumnSpan="1" BorderBrush="#777777" BorderThickness="0.8" />
  103. <Border
  104. Grid.ColumnSpan="2" BorderBrush="#777777" BorderThickness="0,0.8,0.8,0.8" />
  105. <Border
  106. Grid.ColumnSpan="3" BorderBrush="#777777" BorderThickness="0,0.8,0.8,0.8" />
  107. <Border
  108. Grid.ColumnSpan="4" BorderBrush="#777777" BorderThickness="0,0.8,0.8,0.8" />
  109. <TextBlock
  110. HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" Foreground="White"
  111. Text="序号" />
  112. <TextBlock
  113. Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  114. Foreground="White" Text="配方名称" />
  115. <TextBlock
  116. Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  117. Foreground="White" Text="创建时间" />
  118. <TextBlock
  119. Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  120. Foreground="White" Text="操作" />
  121. </Grid>
  122. <!--#endregion-->
  123. <!--#region 表格内容-->
  124. <ScrollViewer
  125. Grid.Row="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  126. <ItemsControl ItemsSource="{Binding RecipeCharts}">
  127. <ItemsControl.ItemTemplate>
  128. <DataTemplate>
  129. <Grid>
  130. <Grid
  131. Height="30" Margin="0,1" Background="#163175">
  132. <Grid.ColumnDefinitions>
  133. <ColumnDefinition Width="50" />
  134. <ColumnDefinition />
  135. <ColumnDefinition Width="400" />
  136. <ColumnDefinition Width="150" />
  137. </Grid.ColumnDefinitions>
  138. <Border
  139. Grid.ColumnSpan="1" BorderBrush="#777777" BorderThickness="0.4" />
  140. <Border
  141. Grid.ColumnSpan="2" BorderBrush="#777777" BorderThickness="0,0.4,0.4,0.4" />
  142. <Border
  143. Grid.ColumnSpan="3" BorderBrush="#777777" BorderThickness="0,0.4,0.4,0.4" />
  144. <Border
  145. Grid.ColumnSpan="4" BorderBrush="#777777" BorderThickness="0,0.4,0.4,0.4" />
  146. <TextBlock
  147. x:Name="num" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  148. Foreground="White"
  149. Text="{Binding Num}" />
  150. <TextBlock
  151. Grid.Column="1" Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"
  152. FontSize="16" Foreground="White"
  153. Text="{Binding Name}" />
  154. <TextBlock
  155. Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  156. Foreground="White"
  157. Text="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" />
  158. <RadioButton
  159. x:Name="ceshi" Grid.Column="3"
  160. Command="{Binding DataContext.InspectDataCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}}"
  161. CommandParameter="{Binding Id}"
  162. Content="添加参照" FontSize="16" Foreground="White"
  163. Style="{StaticResource setCheck}" />
  164. </Grid>
  165. </Grid>
  166. </DataTemplate>
  167. </ItemsControl.ItemTemplate>
  168. </ItemsControl>
  169. </ScrollViewer>
  170. <!--#endregion-->
  171. </Grid>
  172. <!--#endregion-->
  173. </StackPanel>
  174. <UniformGrid Columns="2" Rows="4">
  175. <StackPanel
  176. Margin="20" Orientation="Vertical" Visibility="Visible">
  177. <lvc:CartesianChart
  178. x:Name="ppp" Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top"
  179. AnimationsSpeed="0:0:1"
  180. DataTooltip="{x:Null}"
  181. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="温度曲线">
  182. <lvc:CartesianChart.Series>
  183. <lvc:LineSeries
  184. Fill="Transparent" LineSmoothness="1"
  185. PointGeometry="{x:Null}"
  186. Stroke="Red" StrokeThickness="2"
  187. Values="{Binding DataFeedback.Temperature}" />
  188. <lvc:LineSeries
  189. Fill="Transparent" LineSmoothness="1"
  190. PointGeometry="{x:Null}"
  191. Stroke="Blue" StrokeThickness="2"
  192. Values="{Binding DataFeedback.CondensateWaterTemperature}" />
  193. <lvc:LineSeries
  194. Fill="Transparent" LineSmoothness="1"
  195. PointGeometry="{x:Null}"
  196. Stroke="Yellow" StrokeThickness="2"
  197. Values="{Binding PartReferenceData.Temperature}" />
  198. <lvc:LineSeries
  199. Fill="Transparent" LineSmoothness="1"
  200. PointGeometry="{x:Null}"
  201. Stroke="Green" StrokeThickness="2"
  202. Values="{Binding PartReferenceData.CondensateWaterTemperature}" />
  203. </lvc:CartesianChart.Series>
  204. <lvc:CartesianChart.AxisY>
  205. <lvc:Axis MaxValue="210" MinValue="-10">
  206. <lvc:Axis.Separator>
  207. <lvc:Separator IsEnabled="False" />
  208. </lvc:Axis.Separator>
  209. </lvc:Axis>
  210. </lvc:CartesianChart.AxisY>
  211. <lvc:CartesianChart.AxisX>
  212. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  213. <lvc:Axis.Separator>
  214. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  215. </lvc:Axis.Separator>
  216. </lvc:Axis>
  217. </lvc:CartesianChart.AxisX>
  218. </lvc:CartesianChart>
  219. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  220. <TextBlock Foreground="White" Text="温度曲线/℃" />
  221. <Rectangle
  222. Width="20" Height="2" Margin="10,0,0,2" Fill="Red" />
  223. <TextBlock Foreground="White" Text="反应釜温度" />
  224. <Rectangle
  225. Width="20" Height="2" Margin="10,0,0,2" Fill="Blue" />
  226. <TextBlock Foreground="White" Text="冷凝水罐温度" />
  227. <Rectangle
  228. Width="20" Height="2" Margin="10,0,0,2" Fill="Yellow" />
  229. <TextBlock Foreground="White" Text="反应釜温度_参考" />
  230. <Rectangle
  231. Width="20" Height="2" Margin="10,0,0,2" Fill="Green" />
  232. <TextBlock Foreground="White" Text="冷凝水罐温度_参考" />
  233. </StackPanel>
  234. </StackPanel>
  235. <StackPanel
  236. Margin="20" Orientation="Vertical" Visibility="Visible">
  237. <lvc:CartesianChart
  238. Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top" AnimationsSpeed="0:0:1"
  239. DataTooltip="{x:Null}"
  240. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="压力曲线">
  241. <lvc:CartesianChart.Series>
  242. <lvc:LineSeries
  243. Fill="Transparent" LineSmoothness="1"
  244. PointGeometry="{x:Null}"
  245. Stroke="Red" StrokeThickness="2"
  246. Values="{Binding DataFeedback.SteamPressure}" />
  247. <lvc:LineSeries
  248. Fill="Transparent" LineSmoothness="1"
  249. PointGeometry="{x:Null}"
  250. Stroke="Blue" StrokeThickness="2"
  251. Values="{Binding DataFeedback.ReactPressure}" />
  252. <lvc:LineSeries
  253. Fill="Transparent" LineSmoothness="1"
  254. PointGeometry="{x:Null}"
  255. Stroke="Yellow" StrokeThickness="2"
  256. Values="{Binding PartReferenceData.SteamPressure}" />
  257. <lvc:LineSeries
  258. Fill="Transparent" LineSmoothness="1"
  259. PointGeometry="{x:Null}"
  260. Stroke="Green" StrokeThickness="2"
  261. Values="{Binding PartReferenceData.ReactPressure}" />
  262. </lvc:CartesianChart.Series>
  263. <lvc:CartesianChart.AxisY>
  264. <lvc:Axis
  265. LabelFormatter="{Binding doubleFormatter}"
  266. MaxValue="0.7" MinValue="-0.2">
  267. <lvc:Axis.Separator>
  268. <lvc:Separator IsEnabled="False" />
  269. </lvc:Axis.Separator>
  270. </lvc:Axis>
  271. </lvc:CartesianChart.AxisY>
  272. <lvc:CartesianChart.AxisX>
  273. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  274. <lvc:Axis.Separator>
  275. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  276. </lvc:Axis.Separator>
  277. </lvc:Axis>
  278. </lvc:CartesianChart.AxisX>
  279. </lvc:CartesianChart>
  280. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  281. <TextBlock Foreground="White" Text="压力曲线/MPa" />
  282. <Rectangle
  283. Width="20" Height="2" Margin="10,0,0,2" Fill="Red" />
  284. <TextBlock Foreground="White" Text="反应釜蒸汽压力" />
  285. <Rectangle
  286. Width="20" Height="2" Margin="10,0,0,2" Fill="Blue" />
  287. <TextBlock Foreground="White" Text="反应釜压力" />
  288. <Rectangle
  289. Width="20" Height="2" Margin="10,0,0,2" Fill="Yellow" />
  290. <TextBlock Foreground="White" Text="反应釜蒸汽压力_参考" />
  291. <Rectangle
  292. Width="20" Height="2" Margin="10,0,0,2" Fill="Green" />
  293. <TextBlock Foreground="White" Text="反应釜压力_参考" />
  294. </StackPanel>
  295. </StackPanel>
  296. <StackPanel
  297. Margin="20" Orientation="Vertical" Visibility="Visible">
  298. <lvc:CartesianChart
  299. Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top" AnimationsSpeed="0:0:1"
  300. DataTooltip="{x:Null}"
  301. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="比例阀开度曲线">
  302. <lvc:CartesianChart.Series>
  303. <lvc:LineSeries
  304. Fill="Transparent" LineSmoothness="1"
  305. PointGeometry="{x:Null}"
  306. Stroke="Red" StrokeThickness="2"
  307. Values="{Binding DataFeedback.ProportionalValveOpening}" />
  308. <lvc:LineSeries
  309. Fill="Transparent" LineSmoothness="1"
  310. PointGeometry="{x:Null}"
  311. Stroke="Yellow" StrokeThickness="2"
  312. Values="{Binding PartReferenceData.ProportionalValveOpening}" />
  313. </lvc:CartesianChart.Series>
  314. <lvc:CartesianChart.AxisY>
  315. <lvc:Axis MaxValue="110" MinValue="-10">
  316. <lvc:Axis.Separator>
  317. <lvc:Separator IsEnabled="False" />
  318. </lvc:Axis.Separator>
  319. </lvc:Axis>
  320. </lvc:CartesianChart.AxisY>
  321. <lvc:CartesianChart.AxisX>
  322. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  323. <lvc:Axis.Separator>
  324. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  325. </lvc:Axis.Separator>
  326. </lvc:Axis>
  327. </lvc:CartesianChart.AxisX>
  328. </lvc:CartesianChart>
  329. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  330. <TextBlock Foreground="White" Text="比例阀开度曲线" />
  331. <Rectangle
  332. Width="20" Height="2" Margin="20,0,0,2" Fill="Red" />
  333. <TextBlock Foreground="White" Text="蒸汽比例阀开度" />
  334. <Rectangle
  335. Width="20" Height="2" Margin="20,0,0,2" Fill="Yellow" />
  336. <TextBlock Foreground="White" Text="蒸汽比例阀开度_参考" />
  337. </StackPanel>
  338. </StackPanel>
  339. <StackPanel
  340. Margin="20" Orientation="Vertical" Visibility="Visible">
  341. <lvc:CartesianChart
  342. Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top" AnimationsSpeed="0:0:1"
  343. DataTooltip="{x:Null}"
  344. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="流量曲线">
  345. <lvc:CartesianChart.Series>
  346. <lvc:LineSeries
  347. Fill="Transparent" LineSmoothness="1"
  348. PointGeometry="{x:Null}"
  349. Stroke="Red" StrokeThickness="2"
  350. Values="{Binding DataFeedback.SteamFlowRate}" />
  351. <lvc:LineSeries
  352. Fill="Transparent" LineSmoothness="1"
  353. PointGeometry="{x:Null}"
  354. Stroke="Blue" StrokeThickness="2"
  355. Values="{Binding DataFeedback.NegativePressureFlowRate}" />
  356. <lvc:LineSeries
  357. Fill="Transparent" LineSmoothness="1"
  358. PointGeometry="{x:Null}"
  359. Stroke="Yellow" StrokeThickness="2"
  360. Values="{Binding PartReferenceData.SteamFlowRate}" />
  361. <lvc:LineSeries
  362. Fill="Transparent" LineSmoothness="1"
  363. PointGeometry="{x:Null}"
  364. Stroke="Green" StrokeThickness="2"
  365. Values="{Binding PartReferenceData.NegativePressureFlowRate}" />
  366. </lvc:CartesianChart.Series>
  367. <lvc:CartesianChart.AxisY>
  368. <lvc:Axis LabelFormatter="{Binding doubleFormatter}">
  369. <lvc:Axis.Separator>
  370. <lvc:Separator IsEnabled="False" />
  371. </lvc:Axis.Separator>
  372. </lvc:Axis>
  373. </lvc:CartesianChart.AxisY>
  374. <lvc:CartesianChart.AxisX>
  375. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  376. <lvc:Axis.Separator>
  377. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  378. </lvc:Axis.Separator>
  379. </lvc:Axis>
  380. </lvc:CartesianChart.AxisX>
  381. </lvc:CartesianChart>
  382. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  383. <TextBlock Foreground="White" Text="流量曲线/Mpa" />
  384. <Rectangle
  385. Width="20" Height="2" Margin="20,0,0,2" Fill="Red" />
  386. <TextBlock Foreground="White" Text="反应釜蒸汽流量" />
  387. <Rectangle
  388. Width="20" Height="2" Margin="20,0,0,2" Fill="Blue" />
  389. <TextBlock Foreground="White" Text="负压流量" />
  390. <Rectangle
  391. Width="20" Height="2" Margin="20,0,0,2" Fill="Yellow" />
  392. <TextBlock Foreground="White" Text="反应釜蒸汽流量_参考" />
  393. <Rectangle
  394. Width="20" Height="2" Margin="20,0,0,2" Fill="Green" />
  395. <TextBlock Foreground="White" Text="负压流量_参考" />
  396. </StackPanel>
  397. </StackPanel>
  398. <StackPanel
  399. Margin="20" Orientation="Vertical" Visibility="Visible">
  400. <lvc:CartesianChart
  401. Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top" AnimationsSpeed="0:0:1"
  402. DataTooltip="{x:Null}"
  403. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="重量曲线">
  404. <lvc:CartesianChart.Series>
  405. <lvc:LineSeries
  406. Fill="Transparent" LineSmoothness="1"
  407. PointGeometry="{x:Null}"
  408. Stroke="Red" StrokeThickness="2"
  409. Values="{Binding DataFeedback.WeighingWaterTankWeight}" />
  410. <lvc:LineSeries
  411. Fill="Transparent" LineSmoothness="1"
  412. PointGeometry="{x:Null}"
  413. Stroke="Blue" StrokeThickness="2"
  414. Values="{Binding DataFeedback.BrineTankWeight}" />
  415. <lvc:LineSeries
  416. Fill="Transparent" LineSmoothness="1"
  417. PointGeometry="{x:Null}"
  418. Stroke="Yellow" StrokeThickness="2"
  419. Values="{Binding PartReferenceData.WeighingWaterTankWeight}" />
  420. <lvc:LineSeries
  421. Fill="Transparent" LineSmoothness="1"
  422. PointGeometry="{x:Null}"
  423. Stroke="Green" StrokeThickness="2"
  424. Values="{Binding PartReferenceData.BrineTankWeight}" />
  425. </lvc:CartesianChart.Series>
  426. <lvc:CartesianChart.AxisY>
  427. <lvc:Axis
  428. LabelFormatter="{Binding doubleFormatter}"
  429. MaxValue="35" MinValue="-5">
  430. <lvc:Axis.Separator>
  431. <lvc:Separator IsEnabled="False" />
  432. </lvc:Axis.Separator>
  433. </lvc:Axis>
  434. </lvc:CartesianChart.AxisY>
  435. <lvc:CartesianChart.AxisX>
  436. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  437. <lvc:Axis.Separator>
  438. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  439. </lvc:Axis.Separator>
  440. </lvc:Axis>
  441. </lvc:CartesianChart.AxisX>
  442. </lvc:CartesianChart>
  443. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  444. <TextBlock Foreground="White" Text="重量曲线/kg" />
  445. <Rectangle
  446. Width="20" Height="2" Margin="20,0,0,2" Fill="Red" />
  447. <TextBlock Foreground="White" Text="冷却水罐重量" />
  448. <Rectangle
  449. Width="20" Height="2" Margin="20,0,0,2" Fill="Blue" />
  450. <TextBlock Foreground="White" Text="卤水罐重量" />
  451. <Rectangle
  452. Width="20" Height="2" Margin="20,0,0,2" Fill="Yellow" />
  453. <TextBlock Foreground="White" Text="冷却水罐重量_参考" />
  454. <Rectangle
  455. Width="20" Height="2" Margin="20,0,0,2" Fill="Green" />
  456. <TextBlock Foreground="White" Text="卤水罐重量_参考" />
  457. </StackPanel>
  458. </StackPanel>
  459. <StackPanel
  460. Margin="20" Orientation="Vertical" Visibility="Visible">
  461. <lvc:CartesianChart
  462. Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top" AnimationsSpeed="0:0:1"
  463. DataTooltip="{x:Null}"
  464. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="湿度曲线">
  465. <lvc:CartesianChart.Series>
  466. <lvc:LineSeries
  467. Fill="Transparent" LineSmoothness="1"
  468. PointGeometry="{x:Null}"
  469. Stroke="Red" StrokeThickness="2"
  470. Values="{Binding DataFeedback.CondensateWaterHumidity}" />
  471. <lvc:LineSeries
  472. Fill="Transparent" LineSmoothness="1"
  473. PointGeometry="{x:Null}"
  474. Stroke="Yellow" StrokeThickness="2"
  475. Values="{Binding PartReferenceData.CondensateWaterHumidity}" />
  476. </lvc:CartesianChart.Series>
  477. <lvc:CartesianChart.AxisY>
  478. <lvc:Axis MaxValue="110" MinValue="0">
  479. <lvc:Axis.Separator>
  480. <lvc:Separator IsEnabled="False" />
  481. </lvc:Axis.Separator>
  482. </lvc:Axis>
  483. </lvc:CartesianChart.AxisY>
  484. <lvc:CartesianChart.AxisX>
  485. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  486. <lvc:Axis.Separator>
  487. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  488. </lvc:Axis.Separator>
  489. </lvc:Axis>
  490. </lvc:CartesianChart.AxisX>
  491. </lvc:CartesianChart>
  492. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  493. <TextBlock Foreground="White" Text="湿度曲线" />
  494. <Rectangle
  495. Width="20" Height="2" Margin="20,0,0,2" Fill="Red" />
  496. <TextBlock Foreground="White" Text="冷凝水罐湿度" />
  497. <Rectangle
  498. Width="20" Height="2" Margin="20,0,0,2" Fill="Yellow" />
  499. <TextBlock Foreground="White" Text="冷凝水罐湿度_参考" />
  500. </StackPanel>
  501. </StackPanel>
  502. <StackPanel
  503. Margin="20" Orientation="Vertical" Visibility="Visible">
  504. <lvc:CartesianChart
  505. Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top" AnimationsSpeed="0:0:1"
  506. DataTooltip="{x:Null}"
  507. Hoverable="False" MouseDoubleClick="DataView_CLick" ToolTip="反应釜角度曲线">
  508. <lvc:CartesianChart.Series>
  509. <lvc:LineSeries
  510. Fill="Transparent" LineSmoothness="1"
  511. PointGeometry="{x:Null}"
  512. Stroke="Red" StrokeThickness="2"
  513. Values="{Binding DataFeedback.ReactEncoderValue}" />
  514. <lvc:LineSeries
  515. Fill="Transparent" LineSmoothness="1"
  516. PointGeometry="{x:Null}"
  517. Stroke="Yellow" StrokeThickness="2"
  518. Values="{Binding PartReferenceData.ReactEncoderValue}" />
  519. </lvc:CartesianChart.Series>
  520. <lvc:CartesianChart.AxisY>
  521. <lvc:Axis MaxValue="400" MinValue="-10">
  522. <lvc:Axis.Separator>
  523. <lvc:Separator IsEnabled="False" />
  524. </lvc:Axis.Separator>
  525. </lvc:Axis>
  526. </lvc:CartesianChart.AxisY>
  527. <lvc:CartesianChart.AxisX>
  528. <lvc:Axis LabelFormatter="{Binding DateTimeFormatter}" Unit="{Binding AxisUnit}">
  529. <lvc:Axis.Separator>
  530. <lvc:Separator IsEnabled="False" Step="{Binding AxisStep}" />
  531. </lvc:Axis.Separator>
  532. </lvc:Axis>
  533. </lvc:CartesianChart.AxisX>
  534. </lvc:CartesianChart>
  535. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  536. <TextBlock Foreground="White" Text="反应釜角度曲线" />
  537. <Rectangle
  538. Width="20" Height="2" Margin="20,0,0,2" Fill="Red" />
  539. <TextBlock Foreground="White" Text="反应釜编码器角度值" />
  540. <Rectangle
  541. Width="20" Height="2" Margin="20,0,0,2" Fill="Yellow" />
  542. <TextBlock Foreground="White" Text="反应釜编码器角度值_参考" />
  543. </StackPanel>
  544. </StackPanel>
  545. </UniformGrid>
  546. </StackPanel>
  547. </ScrollViewer>
  548. <Grid
  549. x:Name="chartGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White"
  550. Visibility="Collapsed">
  551. <Grid.ColumnDefinitions>
  552. <ColumnDefinition />
  553. <ColumnDefinition Width="200" />
  554. </Grid.ColumnDefinitions>
  555. <oxy:PlotView
  556. x:Name="chartView" Margin="5" Background="Transparent" Foreground="Black"
  557. PanCursor="Hand" />
  558. <Button
  559. Grid.Column="1" Width="120" Height=" 40" HorizontalAlignment="Center"
  560. VerticalAlignment="Center" Click="Button_Click" Content="退出" />
  561. </Grid>
  562. </Grid>
  563. </UserControl>