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

529 lines
39 KiB

  1. <UserControl x:Class="BPASmartClient.ScreenLib.ScreenALLControl"
  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. <Style x:Key="bfb" TargetType="{x:Type ProgressBar}">
  17. <Setter Property="Foreground" Value="{StaticResource ProgressBar.Progress}" />
  18. <Setter Property="Background" Value="{StaticResource ProgressBar.Background}" />
  19. <Setter Property="BorderBrush" Value="{StaticResource ProgressBar.Border}" />
  20. <Setter Property="BorderThickness" Value="1" />
  21. <Setter Property="Height" Value="16" />
  22. <Setter Property="Width" Value="100" />
  23. <Setter Property="HorizontalAlignment" Value="Left" />
  24. <Setter Property="VerticalAlignment" Value="Top" />
  25. <Setter Property="Template">
  26. <Setter.Value>
  27. <ControlTemplate TargetType="{x:Type ProgressBar}">
  28. <ControlTemplate.Resources>
  29. <Storyboard x:Key="maindh" RepeatBehavior="Forever">
  30. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="dh" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
  31. <EasingDoubleKeyFrame KeyTime="0" Value="0.25" />
  32. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.25" />
  33. <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0.25" />
  34. </DoubleAnimationUsingKeyFrames>
  35. <PointAnimationUsingKeyFrames Storyboard.TargetName="dh" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)">
  36. <EasingPointKeyFrame KeyTime="0" Value="-0.5,0.5" />
  37. <EasingPointKeyFrame KeyTime="0:0:1" Value="0.5,0.5" />
  38. <EasingPointKeyFrame KeyTime="0:0:2" Value="1.5,0.5" />
  39. </PointAnimationUsingKeyFrames>
  40. </Storyboard>
  41. </ControlTemplate.Resources>
  42. <Grid x:Name="TemplateRoot">
  43. <Border
  44. Background="{TemplateBinding Background}"
  45. BorderBrush="{TemplateBinding BorderBrush}"
  46. BorderThickness="{TemplateBinding BorderThickness}"
  47. Opacity="0.3" />
  48. <Rectangle x:Name="PART_Track" />
  49. <Grid
  50. x:Name="PART_Indicator"
  51. HorizontalAlignment="Left"
  52. ClipToBounds="true">
  53. <Rectangle x:Name="dh" Fill="{DynamicResource ProgressBar.动画}">
  54. <Rectangle.RenderTransform>
  55. <TransformGroup>
  56. <!-- 缩放变换 -->
  57. <ScaleTransform ScaleX="1" ScaleY="1" />
  58. <!-- 倾斜变换 -->
  59. <SkewTransform AngleX="-45" AngleY="0" />
  60. <!-- 旋转变换 -->
  61. <RotateTransform Angle="0" />
  62. <!-- 移动变换 -->
  63. <TranslateTransform X="0" Y="0" />
  64. </TransformGroup>
  65. </Rectangle.RenderTransform>
  66. </Rectangle>
  67. <Rectangle
  68. x:Name="Indicator"
  69. Fill="{TemplateBinding Foreground}"
  70. Visibility="Collapsed" />
  71. <Rectangle
  72. x:Name="Animation"
  73. Fill="{DynamicResource ProgressBar.动画}"
  74. RenderTransformOrigin="0.5,0.5">
  75. <Rectangle.RenderTransform>
  76. <TransformGroup>
  77. <!-- 缩放变换 -->
  78. <ScaleTransform ScaleX="1" ScaleY="1" />
  79. <!-- 倾斜变换 -->
  80. <SkewTransform AngleX="-45" AngleY="0" />
  81. <!-- 旋转变换 -->
  82. <RotateTransform Angle="0" />
  83. <!-- 移动变换 -->
  84. <TranslateTransform X="0" Y="0" />
  85. </TransformGroup>
  86. </Rectangle.RenderTransform>
  87. </Rectangle>
  88. </Grid>
  89. <TextBlock
  90. x:Name="textBlock"
  91. HorizontalAlignment="Center"
  92. VerticalAlignment="Center"
  93. FontFamily="../Fonts/#Quartz M"
  94. FontSize="12"
  95. Foreground="{DynamicResource Titleforeground}"
  96. Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, StringFormat={}百分比: {0:f2} %}"
  97. Visibility="Collapsed" />
  98. <VisualStateManager.VisualStateGroups>
  99. <VisualStateGroup x:Name="CommonStates">
  100. <VisualState x:Name="Determinate" />
  101. <VisualState x:Name="Indeterminate">
  102. <Storyboard RepeatBehavior="Forever">
  103. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Animation" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
  104. <EasingDoubleKeyFrame KeyTime="0" Value="0.25" />
  105. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.25" />
  106. <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0.25" />
  107. </DoubleAnimationUsingKeyFrames>
  108. <PointAnimationUsingKeyFrames Storyboard.TargetName="Animation" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)">
  109. <EasingPointKeyFrame KeyTime="0" Value="-0.5,0.5" />
  110. <EasingPointKeyFrame KeyTime="0:0:1" Value="0.5,0.5" />
  111. <EasingPointKeyFrame KeyTime="0:0:2" Value="1.5,0.5" />
  112. </PointAnimationUsingKeyFrames>
  113. </Storyboard>
  114. </VisualState>
  115. </VisualStateGroup>
  116. </VisualStateManager.VisualStateGroups>
  117. </Grid>
  118. <ControlTemplate.Triggers>
  119. <Trigger Property="Orientation" Value="Vertical">
  120. <Setter TargetName="TemplateRoot" Property="LayoutTransform">
  121. <Setter.Value>
  122. <RotateTransform Angle="90" />
  123. </Setter.Value>
  124. </Setter>
  125. </Trigger>
  126. <Trigger Property="IsIndeterminate" Value="true">
  127. <Setter TargetName="Indicator" Property="Visibility" Value="Collapsed" />
  128. <Setter TargetName="dh" Property="Visibility" Value="Collapsed" />
  129. <Setter TargetName="Animation" Property="Visibility" Value="Visible" />
  130. </Trigger>
  131. <Trigger Property="IsIndeterminate" Value="False">
  132. <Setter TargetName="Indicator" Property="Visibility" Value="Visible" />
  133. <Setter TargetName="dh" Property="Visibility" Value="Visible" />
  134. <Setter TargetName="Animation" Property="Visibility" Value="Collapsed" />
  135. </Trigger>
  136. <EventTrigger RoutedEvent="Loaded">
  137. <BeginStoryboard Storyboard="{StaticResource maindh}" />
  138. </EventTrigger>
  139. </ControlTemplate.Triggers>
  140. </ControlTemplate>
  141. </Setter.Value>
  142. </Setter>
  143. </Style>
  144. </ResourceDictionary>
  145. </UserControl.Resources>
  146. <Grid>
  147. <Grid.ColumnDefinitions>
  148. <ColumnDefinition Width="*"/>
  149. <ColumnDefinition Width="2*"/>
  150. <ColumnDefinition Width="*"/>
  151. </Grid.ColumnDefinitions>
  152. <StackPanel Margin="0,10,0,0">
  153. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="310" Width="450" Header="大炒设备" Style="{DynamicResource from}" Tag="Start">
  154. <StackPanel>
  155. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  156. <Grid Height="80" >
  157. <Grid.ColumnDefinitions>
  158. <ColumnDefinition/>
  159. <ColumnDefinition/>
  160. </Grid.ColumnDefinitions>
  161. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  162. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  163. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[大炒].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  164. <TextBlock.Style>
  165. <Style TargetType="TextBlock">
  166. <Setter Property="Foreground" Value="Lime"></Setter>
  167. <Style.Triggers>
  168. <Trigger Property="Text" Value="停止">
  169. <Setter Property="Foreground" Value="Red"/>
  170. </Trigger>
  171. </Style.Triggers>
  172. </Style>
  173. </TextBlock.Style>
  174. </TextBlock>
  175. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  176. </StackPanel>
  177. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  178. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  179. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding MaxCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  180. <TextBlock FontSize="42" Text="/"></TextBlock>
  181. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[大炒].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  182. </StackPanel>
  183. <TextBlock Style="{DynamicResource textms}" >订单总数/故障数</TextBlock>
  184. </StackPanel>
  185. </Grid>
  186. <GroupBox Header="工作状态" Margin="20,0,0,0"/>
  187. <Grid Height="80">
  188. <Grid.ColumnDefinitions>
  189. <ColumnDefinition/>
  190. <ColumnDefinition/>
  191. </Grid.ColumnDefinitions>
  192. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  193. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  194. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[大炒].WorkStatus_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  195. <TextBlock.Style>
  196. <Style TargetType="TextBlock">
  197. <Setter Property="Foreground" Value="Lime"></Setter>
  198. <Style.Triggers>
  199. <Trigger Property="Text" Value="待机">
  200. <Setter Property="Foreground" Value="Yellow"/>
  201. </Trigger>
  202. <Trigger Property="Text" Value="故障">
  203. <Setter Property="Foreground" Value="Red"/>
  204. </Trigger>
  205. <Trigger Property="Text" Value="停止">
  206. <Setter Property="Foreground" Value="Red"/>
  207. </Trigger>
  208. </Style.Triggers>
  209. </Style>
  210. </TextBlock.Style>
  211. </TextBlock>
  212. <TextBlock Style="{DynamicResource textms}" >1号炒锅</TextBlock>
  213. </StackPanel>
  214. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  215. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[大炒].WorkStatus_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  216. <TextBlock.Style>
  217. <Style TargetType="TextBlock">
  218. <Setter Property="Foreground" Value="Lime"></Setter>
  219. <Style.Triggers>
  220. <Trigger Property="Text" Value="待机">
  221. <Setter Property="Foreground" Value="Yellow"/>
  222. </Trigger>
  223. <Trigger Property="Text" Value="故障">
  224. <Setter Property="Foreground" Value="Red"/>
  225. </Trigger>
  226. <Trigger Property="Text" Value="停止">
  227. <Setter Property="Foreground" Value="Red"/>
  228. </Trigger>
  229. </Style.Triggers>
  230. </Style>
  231. </TextBlock.Style>
  232. </TextBlock>
  233. <TextBlock Style="{DynamicResource textms}" >2号炒锅</TextBlock>
  234. </StackPanel>
  235. </Grid>
  236. </StackPanel>
  237. </GroupBox>
  238. <GroupBox Grid.Row="0" Margin="10,10,10,0" Height="320" Width="450" Header="小炒设备" Style="{DynamicResource from}" Tag="Start">
  239. <StackPanel>
  240. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  241. <Grid Height="80" >
  242. <Grid.ColumnDefinitions>
  243. <ColumnDefinition/>
  244. <ColumnDefinition/>
  245. </Grid.ColumnDefinitions>
  246. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  247. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  248. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[小炒].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  249. <TextBlock.Style>
  250. <Style TargetType="TextBlock">
  251. <Setter Property="Foreground" Value="Lime"></Setter>
  252. <Style.Triggers>
  253. <Trigger Property="Text" Value="停止">
  254. <Setter Property="Foreground" Value="Red"/>
  255. </Trigger>
  256. </Style.Triggers>
  257. </Style>
  258. </TextBlock.Style>
  259. </TextBlock>
  260. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  261. </StackPanel>
  262. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  263. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  264. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding MinCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  265. <TextBlock FontSize="42" Text="/"></TextBlock>
  266. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[小炒].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  267. </StackPanel>
  268. <TextBlock Style="{DynamicResource textms}" >订单总数/故障数</TextBlock>
  269. </StackPanel>
  270. </Grid>
  271. <GroupBox Header="工作状态" Margin="20,0,0,0"/>
  272. <Grid Height="80">
  273. <Grid.ColumnDefinitions>
  274. <ColumnDefinition/>
  275. <ColumnDefinition/>
  276. </Grid.ColumnDefinitions>
  277. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  278. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  279. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[小炒].WorkStatus_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  280. <TextBlock.Style>
  281. <Style TargetType="TextBlock">
  282. <Setter Property="Foreground" Value="Lime"></Setter>
  283. <Style.Triggers>
  284. <Trigger Property="Text" Value="待机">
  285. <Setter Property="Foreground" Value="Yellow"/>
  286. </Trigger>
  287. <Trigger Property="Text" Value="故障">
  288. <Setter Property="Foreground" Value="Red"/>
  289. </Trigger>
  290. <Trigger Property="Text" Value="停止">
  291. <Setter Property="Foreground" Value="Red"/>
  292. </Trigger>
  293. </Style.Triggers>
  294. </Style>
  295. </TextBlock.Style>
  296. </TextBlock>
  297. <TextBlock Style="{DynamicResource textms}" >1号炒锅</TextBlock>
  298. </StackPanel>
  299. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  300. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[小炒].WorkStatus_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  301. <TextBlock.Style>
  302. <Style TargetType="TextBlock">
  303. <Setter Property="Foreground" Value="Lime"></Setter>
  304. <Style.Triggers>
  305. <Trigger Property="Text" Value="待机">
  306. <Setter Property="Foreground" Value="Yellow"/>
  307. </Trigger>
  308. <Trigger Property="Text" Value="故障">
  309. <Setter Property="Foreground" Value="Red"/>
  310. </Trigger>
  311. <Trigger Property="Text" Value="停止">
  312. <Setter Property="Foreground" Value="Red"/>
  313. </Trigger>
  314. </Style.Triggers>
  315. </Style>
  316. </TextBlock.Style>
  317. </TextBlock>
  318. <TextBlock Style="{DynamicResource textms}" >2号炒锅</TextBlock>
  319. </StackPanel>
  320. </Grid>
  321. </StackPanel>
  322. </GroupBox>
  323. <GroupBox Grid.Row="0" Margin="10,10,10,0" Height="320" Width="450" Header="煮面设备 MorkS" Style="{DynamicResource from}" Tag="Start">
  324. <StackPanel>
  325. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  326. <Grid Height="80" >
  327. <Grid.ColumnDefinitions>
  328. <ColumnDefinition/>
  329. <ColumnDefinition/>
  330. </Grid.ColumnDefinitions>
  331. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  332. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  333. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[煮面机].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  334. <TextBlock.Style>
  335. <Style TargetType="TextBlock">
  336. <Setter Property="Foreground" Value="Lime"></Setter>
  337. <Style.Triggers>
  338. <Trigger Property="Text" Value="停止">
  339. <Setter Property="Foreground" Value="Red"/>
  340. </Trigger>
  341. </Style.Triggers>
  342. </Style>
  343. </TextBlock.Style>
  344. </TextBlock>
  345. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  346. </StackPanel>
  347. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  348. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[煮面机].WorkStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  349. <TextBlock.Style>
  350. <Style TargetType="TextBlock">
  351. <Setter Property="Foreground" Value="Lime"></Setter>
  352. <Style.Triggers>
  353. <Trigger Property="Text" Value="待机">
  354. <Setter Property="Foreground" Value="Yellow"/>
  355. </Trigger>
  356. <Trigger Property="Text" Value="故障">
  357. <Setter Property="Foreground" Value="Red"/>
  358. </Trigger>
  359. <Trigger Property="Text" Value="停止">
  360. <Setter Property="Foreground" Value="Red"/>
  361. </Trigger>
  362. </Style.Triggers>
  363. </Style>
  364. </TextBlock.Style>
  365. </TextBlock>
  366. <TextBlock Style="{DynamicResource textms}" >工作状态</TextBlock>
  367. </StackPanel>
  368. </Grid>
  369. <GroupBox Header="信息统计" Margin="20,0,0,0"/>
  370. <Grid Height="80">
  371. <Grid.ColumnDefinitions>
  372. <ColumnDefinition/>
  373. <ColumnDefinition/>
  374. </Grid.ColumnDefinitions>
  375. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  376. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  377. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[煮面机].MorkS_OrderCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  378. <TextBlock Style="{DynamicResource textms}" >订单总数</TextBlock>
  379. </StackPanel>
  380. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  381. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[煮面机].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  382. <TextBlock Style="{DynamicResource textms}" >故障数</TextBlock>
  383. </StackPanel>
  384. </Grid>
  385. </StackPanel>
  386. </GroupBox>
  387. </StackPanel>
  388. <Grid Grid.Column="1" >
  389. <Grid> <Grid VerticalAlignment="Top" Margin="0,-30,0,0"> <Image Style="{DynamicResource imagezhu}"></Image> <Image Style="{DynamicResource image中1}" Margin="0,400,0,0"></Image> <GroupBox Margin="600,100,0,500" Header="{Binding GZallCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="累计故障数" Content="次" Width="100"/> <GroupBox Margin="600,400,0,0" Header="{Binding SplitMealsCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="食堂累计刷卡次数" Content="次" Width="160"/> <GroupBox Margin="-500,100,0,0" Header="{Binding UserCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="日总接待人数" Content="人" Width="160"/> </Grid> <GroupBox Margin="0,0,0,0" Height="320" Width="950" Header="信息通知区域" VerticalAlignment="Bottom" Style="{DynamicResource from}">
  390. <!--<ListBox Margin="10,-10,10,10" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemsSource="{Binding AlarmAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  391. <ListBox.ItemTemplate>
  392. <DataTemplate>
  393. <WrapPanel>
  394. <Border Style="{DynamicResource border阴影边框}" Width="850" Height="50" Margin="20,10,0,5" >
  395. <Grid>
  396. <Grid.ColumnDefinitions>
  397. <ColumnDefinition Width="300"/>
  398. <ColumnDefinition/>
  399. </Grid.ColumnDefinitions>
  400. <TextBlock Grid.Column="0" Margin="0,0,10,0" HorizontalAlignment="Right" Foreground="{DynamicResource HorizontalSliderThumbHoverBackgroundInverted }" VerticalAlignment="Center" Text="{Binding AlarmTime,StringFormat={}{0}}" FontSize="24"></TextBlock>
  401. <TextBlock></TextBlock>
  402. <TextBlock Grid.Column="1" Margin="40,0,0,0" HorizontalAlignment="Left" Foreground="{DynamicResource HorizontalSliderThumbHoverBackgroundInverted}" VerticalAlignment="Center" Text="{Binding AlarmMs}" FontSize="24"></TextBlock>
  403. </Grid>
  404. </Border>
  405. </WrapPanel>
  406. </DataTemplate>
  407. </ListBox.ItemTemplate>
  408. </ListBox>-->
  409. <DataGrid Margin="10,10,10,0" ItemsSource="{Binding AlarmAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  410. <DataGrid.Columns>
  411. <DataGridTemplateColumn Width="250">
  412. <DataGridTemplateColumn.Header>
  413. <TextBlock Text="信息时间" Foreground="White"/>
  414. </DataGridTemplateColumn.Header>
  415. <DataGridTemplateColumn.CellTemplate>
  416. <DataTemplate>
  417. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  418. </DataTemplate>
  419. </DataGridTemplateColumn.CellTemplate>
  420. </DataGridTemplateColumn>
  421. <DataGridTemplateColumn Width="*">
  422. <DataGridTemplateColumn.Header>
  423. <TextBlock Text="详细描述" Foreground="White"/>
  424. </DataGridTemplateColumn.Header>
  425. <DataGridTemplateColumn.CellTemplate>
  426. <DataTemplate>
  427. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  428. </DataTemplate>
  429. </DataGridTemplateColumn.CellTemplate>
  430. </DataGridTemplateColumn>
  431. </DataGrid.Columns>
  432. </DataGrid>
  433. </GroupBox> </Grid>
  434. </Grid>
  435. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  436. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="310" Width="450" Header="分餐机设备" Style="{DynamicResource from}" Tag="Start">
  437. <StackPanel>
  438. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  439. <Grid Height="80" >
  440. <Grid.ColumnDefinitions>
  441. <ColumnDefinition/>
  442. <ColumnDefinition/>
  443. </Grid.ColumnDefinitions>
  444. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  445. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  446. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[分餐机].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  447. <TextBlock.Style>
  448. <Style TargetType="TextBlock">
  449. <Setter Property="Foreground" Value="Lime"></Setter>
  450. <Style.Triggers>
  451. <Trigger Property="Text" Value="停止">
  452. <Setter Property="Foreground" Value="Red"/>
  453. </Trigger>
  454. </Style.Triggers>
  455. </Style>
  456. </TextBlock.Style>
  457. </TextBlock>
  458. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  459. </StackPanel>
  460. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  461. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[分餐机].WorkStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  462. <TextBlock.Style>
  463. <Style TargetType="TextBlock">
  464. <Setter Property="Foreground" Value="Lime"></Setter>
  465. <Style.Triggers>
  466. <Trigger Property="Text" Value="待机">
  467. <Setter Property="Foreground" Value="Yellow"/>
  468. </Trigger>
  469. <Trigger Property="Text" Value="故障">
  470. <Setter Property="Foreground" Value="Red"/>
  471. </Trigger>
  472. <Trigger Property="Text" Value="停止">
  473. <Setter Property="Foreground" Value="Red"/>
  474. </Trigger>
  475. </Style.Triggers>
  476. </Style>
  477. </TextBlock.Style>
  478. </TextBlock>
  479. <TextBlock Style="{DynamicResource textms}" >工作状态</TextBlock>
  480. </StackPanel>
  481. </Grid>
  482. <GroupBox Header="信息统计" Margin="20,0,0,0"/>
  483. <Grid Height="80">
  484. <Grid.ColumnDefinitions>
  485. <ColumnDefinition/>
  486. <ColumnDefinition/>
  487. </Grid.ColumnDefinitions>
  488. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  489. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  490. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding SplitMealsCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  491. <TextBlock Style="{DynamicResource textms}" >刷卡总数</TextBlock>
  492. </StackPanel>
  493. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  494. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[分餐机].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  495. <TextBlock Style="{DynamicResource textms}" >故障数</TextBlock>
  496. </StackPanel>
  497. </Grid>
  498. </StackPanel>
  499. </GroupBox>
  500. <GroupBox Margin="10,10,10,0" Height="650" Width="450" Header="今日商品热销统计" Style="{DynamicResource from}">
  501. <ListBox
  502. Background="Transparent"
  503. BorderThickness="0"
  504. ItemsSource="{Binding StatsCountAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  505. <ListBox.ItemTemplate>
  506. <DataTemplate>
  507. <StackPanel x:Name="mainPanel1" Margin="15,0,0,0" >
  508. <StackPanel Orientation="Horizontal">
  509. <TextBlock HorizontalAlignment="Left" Style="{DynamicResource textms}" Margin="10,5,0,0" FontSize="20" Text="{Binding Name}"/>
  510. <TextBlock HorizontalAlignment="Left" Style="{DynamicResource textms}" Margin="10,5,0,0" FontSize="20" Text="/"/>
  511. <TextBlock HorizontalAlignment="Left" Style="{DynamicResource textms}" Margin="10,5,0,0" FontSize="20" Text="{Binding Count, StringFormat={}{0} 单}"/>
  512. </StackPanel>
  513. <Grid HorizontalAlignment="Left" Margin="0,5,0,0">
  514. <ProgressBar Style="{DynamicResource bfb}" Value="{Binding bfb,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="360" Height="19" Margin="10,0,0,0"></ProgressBar>
  515. </Grid>
  516. </StackPanel>
  517. </DataTemplate>
  518. </ListBox.ItemTemplate>
  519. </ListBox>
  520. </GroupBox>
  521. </StackPanel>
  522. </Grid>
  523. </UserControl>