终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

404 lignes
32 KiB

  1. <UserControl x:Class="BPASmartClient.ScreenLib.ScreenMinWokControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.ScreenLib"
  7. xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
  8. xmlns:con="clr-namespace:BPA.CustomResource.UserControls;assembly=BPA.CustomResource"
  9. mc:Ignorable="d"
  10. d:DesignHeight="1080" d:DesignWidth="1920">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="/BPA.CustomResource;component/Themes/ProlineStyle.xaml" />
  15. </ResourceDictionary.MergedDictionaries>
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*"/>
  21. <ColumnDefinition Width="2*"/>
  22. <ColumnDefinition Width="*"/>
  23. </Grid.ColumnDefinitions>
  24. <StackPanel Margin="0,10,0,0">
  25. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="370" Width="450" Header="2 号炒锅" Style="{DynamicResource from}" Tag="Start">
  26. <StackPanel>
  27. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  28. <Grid Height="100" >
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition/>
  31. <ColumnDefinition/>
  32. </Grid.ColumnDefinitions>
  33. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  34. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  35. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  36. <TextBlock.Style>
  37. <Style TargetType="TextBlock">
  38. <Setter Property="Foreground" Value="Lime"></Setter>
  39. <Style.Triggers>
  40. <Trigger Property="Text" Value="停止">
  41. <Setter Property="Foreground" Value="Red"/>
  42. </Trigger>
  43. </Style.Triggers>
  44. </Style>
  45. </TextBlock.Style>
  46. </TextBlock>
  47. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备状态</TextBlock>
  48. </StackPanel>
  49. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.WorkStatus_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  51. <TextBlock.Style>
  52. <Style TargetType="TextBlock">
  53. <Setter Property="Foreground" Value="Lime"></Setter>
  54. <Style.Triggers>
  55. <Trigger Property="Text" Value="待机">
  56. <Setter Property="Foreground" Value="Yellow"/>
  57. </Trigger>
  58. <Trigger Property="Text" Value="故障">
  59. <Setter Property="Foreground" Value="Red"/>
  60. </Trigger>
  61. <Trigger Property="Text" Value="停止">
  62. <Setter Property="Foreground" Value="Red"/>
  63. </Trigger>
  64. </Style.Triggers>
  65. </Style>
  66. </TextBlock.Style>
  67. </TextBlock>
  68. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">工作状态</TextBlock>
  69. </StackPanel>
  70. </Grid>
  71. <GroupBox Header="炒锅运行情况" Margin="20,10,0,0"/>
  72. <Grid Height="100">
  73. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  74. <TextBlock FontSize="40" Text="{Binding ViewData.MinWok_Task_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  75. <TextBlock FontSize="40" Foreground="#FFD2C106" Text="{Binding ViewData.MinWok_Dishes_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}-{0:f2}}"></TextBlock>
  76. </StackPanel>
  77. </Grid>
  78. </StackPanel>
  79. </GroupBox>
  80. <GroupBox Margin="10,20,10,0" Height="275" Width="450" Header="设备当前流程" Style="{DynamicResource from}" Tag="Start">
  81. <Grid>
  82. <ListBox x:Name="PageList" BorderThickness="0" Margin="0,-20,0,0" Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top"
  83. ItemsSource="{Binding ProcessModel1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  84. Background="Transparent" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" >
  85. <ListBox.ItemsPanel>
  86. <ItemsPanelTemplate>
  87. <WrapPanel Width="500"/>
  88. </ItemsPanelTemplate>
  89. </ListBox.ItemsPanel>
  90. <ListBox.ItemTemplate>
  91. <DataTemplate>
  92. <DataTemplate.Resources>
  93. <Storyboard RepeatBehavior="Forever" x:Key="csd_dh">
  94. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Visibility)">
  95. <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
  96. <DiscreteObjectKeyFrame KeyTime="00:00:0.5" Value="{x:Static Visibility.Collapsed}"/>
  97. <DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Visible}"/>
  98. <DiscreteObjectKeyFrame KeyTime="00:00:1.5" Value="{x:Static Visibility.Collapsed}"/>
  99. <DiscreteObjectKeyFrame KeyTime="00:00:2" Value="{x:Static Visibility.Visible}"/>
  100. </ObjectAnimationUsingKeyFrames>
  101. </Storyboard>
  102. <Storyboard RepeatBehavior="Forever" x:Key="csd_kaishi">
  103. <ThicknessAnimationUsingKeyFrames Storyboard.TargetName="kaishi" Storyboard.TargetProperty="Margin" BeginTime="00:00:00">
  104. <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0" />
  105. <SplineThicknessKeyFrame KeyTime="00:00:2" Value="-30" />
  106. </ThicknessAnimationUsingKeyFrames>
  107. </Storyboard>
  108. </DataTemplate.Resources>
  109. <Grid Margin="0,10,0,0" Height="100" Width="130" VerticalAlignment="Top" HorizontalAlignment="Left">
  110. <Grid.ColumnDefinitions>
  111. <ColumnDefinition Width="*"/>
  112. <ColumnDefinition Width="30"/>
  113. </Grid.ColumnDefinitions>
  114. <Border x:Name="kaishi" Background="{DynamicResource 椭圆}" BorderBrush="Aqua" Margin="60"/>
  115. <Border Background="{DynamicResource 椭圆}" >
  116. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  117. <TextBlock x:Name="wb" FontSize="32" Text="{Binding Name}"></TextBlock>
  118. <TextBlock x:Name="xs" Style="{DynamicResource 数码管Text}" FontSize="24" Margin="0,0,0,0" Text="{Binding Id}"></TextBlock>
  119. </StackPanel>
  120. </Border>
  121. <Image x:Name="image" Grid.Column="1" Style="{DynamicResource image右1}" Cursor="Hand" ></Image>
  122. </Grid>
  123. <DataTemplate.Triggers>
  124. <DataTrigger Binding="{Binding Status}" Value="正在执行">
  125. <Setter TargetName="xs" Property="Foreground" Value="lime"/>
  126. <Setter TargetName="wb" Property="Foreground" Value="lime"/>
  127. <DataTrigger.EnterActions>
  128. <BeginStoryboard x:Name="begin_name" Storyboard="{StaticResource csd_dh}"/>
  129. <BeginStoryboard x:Name="begin_dh" Storyboard="{StaticResource csd_kaishi}"/>
  130. </DataTrigger.EnterActions>
  131. </DataTrigger>
  132. <DataTrigger Binding="{Binding Status}" Value="执行完成">
  133. <DataTrigger.EnterActions>
  134. <StopStoryboard BeginStoryboardName="begin_name"/>
  135. <StopStoryboard BeginStoryboardName="begin_dh"/>
  136. </DataTrigger.EnterActions>
  137. <Setter TargetName="xs" Property="Foreground" Value="#FFD2C106"/>
  138. <Setter TargetName="wb" Property="Foreground" Value="#FFD2C106"/>
  139. </DataTrigger>
  140. <DataTrigger Binding="{Binding Status}" Value="未执行">
  141. <DataTrigger.EnterActions>
  142. <StopStoryboard BeginStoryboardName="begin_name"/>
  143. <StopStoryboard BeginStoryboardName="begin_dh"/>
  144. </DataTrigger.EnterActions>
  145. <Setter TargetName="xs" Property="Foreground" Value="#a2c2e8"/>
  146. <Setter TargetName="wb" Property="Foreground" Value="#a2c2e8"/>
  147. </DataTrigger>
  148. <DataTrigger Binding="{Binding IsLast}" Value="1">
  149. <DataTrigger.EnterActions>
  150. <StopStoryboard BeginStoryboardName="begin_name"/>
  151. </DataTrigger.EnterActions>
  152. <Setter TargetName="image" Property="Visibility" Value="Collapsed"/>
  153. </DataTrigger>
  154. </DataTemplate.Triggers>
  155. </DataTemplate>
  156. </ListBox.ItemTemplate>
  157. </ListBox>
  158. </Grid>
  159. </GroupBox>
  160. <GroupBox Margin="10,20,10,0" Height="275" Width="450" Header="设备当前状态" Style="{DynamicResource from}" Tag="Start">
  161. <StackPanel>
  162. <Grid Height="100" >
  163. <Grid.ColumnDefinitions>
  164. <ColumnDefinition/>
  165. <ColumnDefinition/>
  166. </Grid.ColumnDefinitions>
  167. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  168. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  169. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_HeatGear_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2} 档}"/>
  170. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">炒锅加热挡位</TextBlock>
  171. </StackPanel>
  172. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  173. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_StirGear_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2} 档}"/>
  174. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">炒锅搅拌挡位</TextBlock>
  175. </StackPanel>
  176. </Grid>
  177. <Grid Height="100" >
  178. <Grid.ColumnDefinitions>
  179. <ColumnDefinition/>
  180. <ColumnDefinition/>
  181. </Grid.ColumnDefinitions>
  182. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  183. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  184. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_FlipSpeed_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2}rpm}"/>
  185. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">炒锅翻转速度</TextBlock>
  186. </StackPanel>
  187. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  188. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_Temp_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2}°C}"/>
  189. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">当前锅底温度</TextBlock>
  190. </StackPanel>
  191. </Grid>
  192. </StackPanel>
  193. </GroupBox>
  194. </StackPanel>
  195. <StackPanel Grid.Column="1" MouseLeftButtonDown="StackPanel_MouseLeftButtonDown" VerticalAlignment="Bottom" Margin="0,0,0,10">
  196. <GroupBox x:Name="guanggao" Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
  197. <Grid>
  198. <wv2:WebView2 Name="webView" />
  199. </Grid>
  200. </GroupBox>
  201. <Grid x:Name="diqiu" Height="600" Width="950" Margin="0,10,0,20" > <Image Style="{DynamicResource imagezhu}"></Image> <Image Style="{DynamicResource image中1}" Margin="0,400,0,0"></Image> <GroupBox Margin="600,100,0,500" Header="{Binding ViewData.FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="累计故障数" Content="次" Width="100"/> <GroupBox Margin="600,400,0,0" Header="0" Style="{DynamicResource GroupStyle圆形}" Tag="故障次数" Content="次" Width="160"/> <GroupBox Margin="-500,100,0,0" Header="{Binding OrderCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="日总接待人数" Content="人" Width="160"/> </Grid>
  202. <GroupBox Margin="0,0,0,0" Height="340" Width="950" Header="信息通知区域" Style="{DynamicResource from}">
  203. <DataGrid Margin="10,10,10,0" ItemsSource="{Binding ViewData.Alarm,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  204. <DataGrid.Columns>
  205. <DataGridTemplateColumn Width="250">
  206. <DataGridTemplateColumn.Header>
  207. <TextBlock Text="信息时间" Foreground="White"/>
  208. </DataGridTemplateColumn.Header>
  209. <DataGridTemplateColumn.CellTemplate>
  210. <DataTemplate>
  211. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  212. </DataTemplate>
  213. </DataGridTemplateColumn.CellTemplate>
  214. </DataGridTemplateColumn>
  215. <DataGridTemplateColumn Width="*">
  216. <DataGridTemplateColumn.Header>
  217. <TextBlock Text="详细描述" Foreground="White"/>
  218. </DataGridTemplateColumn.Header>
  219. <DataGridTemplateColumn.CellTemplate>
  220. <DataTemplate>
  221. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  222. </DataTemplate>
  223. </DataGridTemplateColumn.CellTemplate>
  224. </DataGridTemplateColumn>
  225. </DataGrid.Columns>
  226. </DataGrid>
  227. </GroupBox>
  228. </StackPanel>
  229. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  230. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="370" Width="450" Header="1 号炒锅" Style="{DynamicResource from}" Tag="Start">
  231. <StackPanel>
  232. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  233. <Grid Height="100" >
  234. <Grid.ColumnDefinitions>
  235. <ColumnDefinition/>
  236. <ColumnDefinition/>
  237. </Grid.ColumnDefinitions>
  238. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  239. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  240. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  241. <TextBlock.Style>
  242. <Style TargetType="TextBlock">
  243. <Setter Property="Foreground" Value="Lime"></Setter>
  244. <Style.Triggers>
  245. <Trigger Property="Text" Value="停止">
  246. <Setter Property="Foreground" Value="Red"/>
  247. </Trigger>
  248. </Style.Triggers>
  249. </Style>
  250. </TextBlock.Style>
  251. </TextBlock>
  252. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备状态</TextBlock>
  253. </StackPanel>
  254. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  255. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.WorkStatus_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  256. <TextBlock.Style>
  257. <Style TargetType="TextBlock">
  258. <Setter Property="Foreground" Value="Lime"></Setter>
  259. <Style.Triggers>
  260. <Trigger Property="Text" Value="待机">
  261. <Setter Property="Foreground" Value="Yellow"/>
  262. </Trigger>
  263. <Trigger Property="Text" Value="故障">
  264. <Setter Property="Foreground" Value="Red"/>
  265. </Trigger>
  266. <Trigger Property="Text" Value="停止">
  267. <Setter Property="Foreground" Value="Red"/>
  268. </Trigger>
  269. </Style.Triggers>
  270. </Style>
  271. </TextBlock.Style>
  272. </TextBlock>
  273. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">工作状态</TextBlock>
  274. </StackPanel>
  275. </Grid>
  276. <GroupBox Header="炒锅运行情况" Margin="20,10,0,0"/>
  277. <Grid Height="100">
  278. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  279. <TextBlock FontSize="40" Text="{Binding ViewData.MinWok_Task_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  280. <TextBlock FontSize="40" Foreground="#FFD2C106" Text="{Binding ViewData.MinWok_Dishes_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}-{0:f2}}"></TextBlock>
  281. </StackPanel>
  282. </Grid>
  283. </StackPanel>
  284. </GroupBox>
  285. <GroupBox Margin="10,20,10,0" Height="275" Width="450" Header="设备当前流程" Style="{DynamicResource from}" Tag="Start">
  286. <Grid>
  287. <ListBox BorderThickness="0" Margin="0,-20,0,0" Height="270" HorizontalAlignment="Stretch" VerticalAlignment="Top"
  288. ItemsSource="{Binding ProcessModel2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  289. Background="Transparent" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" >
  290. <ListBox.ItemsPanel>
  291. <ItemsPanelTemplate>
  292. <WrapPanel Width="500"/>
  293. </ItemsPanelTemplate>
  294. </ListBox.ItemsPanel>
  295. <ListBox.ItemTemplate>
  296. <DataTemplate>
  297. <DataTemplate.Resources>
  298. <Storyboard RepeatBehavior="Forever" x:Key="csd_dh">
  299. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Visibility)">
  300. <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
  301. <DiscreteObjectKeyFrame KeyTime="00:00:0.5" Value="{x:Static Visibility.Collapsed}"/>
  302. <DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Visible}"/>
  303. <DiscreteObjectKeyFrame KeyTime="00:00:1.5" Value="{x:Static Visibility.Collapsed}"/>
  304. <DiscreteObjectKeyFrame KeyTime="00:00:2" Value="{x:Static Visibility.Visible}"/>
  305. </ObjectAnimationUsingKeyFrames>
  306. </Storyboard>
  307. <Storyboard RepeatBehavior="Forever" x:Key="csd_kaishi">
  308. <ThicknessAnimationUsingKeyFrames Storyboard.TargetName="kaishi" Storyboard.TargetProperty="Margin" BeginTime="00:00:00">
  309. <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0" />
  310. <SplineThicknessKeyFrame KeyTime="00:00:2" Value="-30" />
  311. </ThicknessAnimationUsingKeyFrames>
  312. </Storyboard>
  313. </DataTemplate.Resources>
  314. <Grid Margin="0,10,0,0" Height="100" Width="130" VerticalAlignment="Top" HorizontalAlignment="Left">
  315. <Grid.ColumnDefinitions>
  316. <ColumnDefinition Width="*"/>
  317. <ColumnDefinition Width="30"/>
  318. </Grid.ColumnDefinitions>
  319. <Border x:Name="kaishi" Background="{DynamicResource 椭圆}" BorderBrush="Aqua" Margin="60"/>
  320. <Border Background="{DynamicResource 椭圆}" >
  321. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  322. <TextBlock x:Name="wb" FontSize="32" Text="{Binding Name}"></TextBlock>
  323. <TextBlock x:Name="xs" Style="{DynamicResource 数码管Text}" FontSize="24" Margin="0,0,0,0" Text="{Binding Id}"></TextBlock>
  324. </StackPanel>
  325. </Border>
  326. <Image x:Name="image" Grid.Column="1" Style="{DynamicResource image右1}" Cursor="Hand" ></Image>
  327. </Grid>
  328. <DataTemplate.Triggers>
  329. <DataTrigger Binding="{Binding Status}" Value="正在执行">
  330. <Setter TargetName="xs" Property="Foreground" Value="lime"/>
  331. <Setter TargetName="wb" Property="Foreground" Value="lime"/>
  332. <DataTrigger.EnterActions>
  333. <BeginStoryboard x:Name="begin_name" Storyboard="{StaticResource csd_dh}"/>
  334. <BeginStoryboard x:Name="begin_dh" Storyboard="{StaticResource csd_kaishi}"/>
  335. </DataTrigger.EnterActions>
  336. </DataTrigger>
  337. <DataTrigger Binding="{Binding Status}" Value="执行完成">
  338. <DataTrigger.EnterActions>
  339. <StopStoryboard BeginStoryboardName="begin_name"/>
  340. <StopStoryboard BeginStoryboardName="begin_dh"/>
  341. </DataTrigger.EnterActions>
  342. <Setter TargetName="xs" Property="Foreground" Value="#FFD2C106"/>
  343. <Setter TargetName="wb" Property="Foreground" Value="#FFD2C106"/>
  344. </DataTrigger>
  345. <DataTrigger Binding="{Binding Status}" Value="未执行">
  346. <DataTrigger.EnterActions>
  347. <StopStoryboard BeginStoryboardName="begin_name"/>
  348. <StopStoryboard BeginStoryboardName="begin_dh"/>
  349. </DataTrigger.EnterActions>
  350. <Setter TargetName="xs" Property="Foreground" Value="#a2c2e8"/>
  351. <Setter TargetName="wb" Property="Foreground" Value="#a2c2e8"/>
  352. </DataTrigger>
  353. <DataTrigger Binding="{Binding IsLast}" Value="1">
  354. <DataTrigger.EnterActions>
  355. <StopStoryboard BeginStoryboardName="begin_name"/>
  356. </DataTrigger.EnterActions>
  357. <Setter TargetName="image" Property="Visibility" Value="Collapsed"/>
  358. </DataTrigger>
  359. </DataTemplate.Triggers>
  360. </DataTemplate>
  361. </ListBox.ItemTemplate>
  362. </ListBox>
  363. </Grid>
  364. </GroupBox>
  365. <GroupBox Margin="10,20,10,0" Height="275" Width="450" Header="设备当前状态" Style="{DynamicResource from}" Tag="Start">
  366. <StackPanel>
  367. <Grid Height="100" >
  368. <Grid.ColumnDefinitions>
  369. <ColumnDefinition/>
  370. <ColumnDefinition/>
  371. </Grid.ColumnDefinitions>
  372. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  373. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  374. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_HeatGear_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2} 档}"/>
  375. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">炒锅加热挡位</TextBlock>
  376. </StackPanel>
  377. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  378. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_StirGear_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2} 档}"/>
  379. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">炒锅搅拌挡位</TextBlock>
  380. </StackPanel>
  381. </Grid>
  382. <Grid Height="100" >
  383. <Grid.ColumnDefinitions>
  384. <ColumnDefinition/>
  385. <ColumnDefinition/>
  386. </Grid.ColumnDefinitions>
  387. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  388. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  389. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_FlipSpeed_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2}rpm}"/>
  390. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">炒锅翻转速度</TextBlock>
  391. </StackPanel>
  392. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  393. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MinWok_Temp_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,StringFormat={}{0:f2}°C}"/>
  394. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">当前锅底温度</TextBlock>
  395. </StackPanel>
  396. </Grid>
  397. </StackPanel>
  398. </GroupBox>
  399. </StackPanel>
  400. </Grid>
  401. </UserControl>