终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

510 lines
38 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. </Style.Triggers>
  206. </Style>
  207. </TextBlock.Style>
  208. </TextBlock>
  209. <TextBlock Style="{DynamicResource textms}" >1号炒锅</TextBlock>
  210. </StackPanel>
  211. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  212. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[大炒].WorkStatus_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  213. <TextBlock.Style>
  214. <Style TargetType="TextBlock">
  215. <Setter Property="Foreground" Value="Lime"></Setter>
  216. <Style.Triggers>
  217. <Trigger Property="Text" Value="待机">
  218. <Setter Property="Foreground" Value="Yellow"/>
  219. </Trigger>
  220. <Trigger Property="Text" Value="故障">
  221. <Setter Property="Foreground" Value="Red"/>
  222. </Trigger>
  223. </Style.Triggers>
  224. </Style>
  225. </TextBlock.Style>
  226. </TextBlock>
  227. <TextBlock Style="{DynamicResource textms}" >2号炒锅</TextBlock>
  228. </StackPanel>
  229. </Grid>
  230. </StackPanel>
  231. </GroupBox>
  232. <GroupBox Grid.Row="0" Margin="10,10,10,0" Height="320" Width="450" Header="小炒设备" Style="{DynamicResource from}" Tag="Start">
  233. <StackPanel>
  234. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  235. <Grid Height="80" >
  236. <Grid.ColumnDefinitions>
  237. <ColumnDefinition/>
  238. <ColumnDefinition/>
  239. </Grid.ColumnDefinitions>
  240. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  241. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  242. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[小炒].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  243. <TextBlock.Style>
  244. <Style TargetType="TextBlock">
  245. <Setter Property="Foreground" Value="Lime"></Setter>
  246. <Style.Triggers>
  247. <Trigger Property="Text" Value="停止">
  248. <Setter Property="Foreground" Value="Red"/>
  249. </Trigger>
  250. </Style.Triggers>
  251. </Style>
  252. </TextBlock.Style>
  253. </TextBlock>
  254. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  255. </StackPanel>
  256. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  257. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  258. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding MinCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  259. <TextBlock FontSize="42" Text="/"></TextBlock>
  260. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[小炒].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  261. </StackPanel>
  262. <TextBlock Style="{DynamicResource textms}" >订单总数/故障数</TextBlock>
  263. </StackPanel>
  264. </Grid>
  265. <GroupBox Header="工作状态" Margin="20,0,0,0"/>
  266. <Grid Height="80">
  267. <Grid.ColumnDefinitions>
  268. <ColumnDefinition/>
  269. <ColumnDefinition/>
  270. </Grid.ColumnDefinitions>
  271. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  272. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  273. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[小炒].WorkStatus_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  274. <TextBlock.Style>
  275. <Style TargetType="TextBlock">
  276. <Setter Property="Foreground" Value="Lime"></Setter>
  277. <Style.Triggers>
  278. <Trigger Property="Text" Value="待机">
  279. <Setter Property="Foreground" Value="Yellow"/>
  280. </Trigger>
  281. <Trigger Property="Text" Value="故障">
  282. <Setter Property="Foreground" Value="Red"/>
  283. </Trigger>
  284. </Style.Triggers>
  285. </Style>
  286. </TextBlock.Style>
  287. </TextBlock>
  288. <TextBlock Style="{DynamicResource textms}" >1号炒锅</TextBlock>
  289. </StackPanel>
  290. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  291. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[小炒].WorkStatus_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  292. <TextBlock.Style>
  293. <Style TargetType="TextBlock">
  294. <Setter Property="Foreground" Value="Lime"></Setter>
  295. <Style.Triggers>
  296. <Trigger Property="Text" Value="待机">
  297. <Setter Property="Foreground" Value="Yellow"/>
  298. </Trigger>
  299. <Trigger Property="Text" Value="故障">
  300. <Setter Property="Foreground" Value="Red"/>
  301. </Trigger>
  302. </Style.Triggers>
  303. </Style>
  304. </TextBlock.Style>
  305. </TextBlock>
  306. <TextBlock Style="{DynamicResource textms}" >2号炒锅</TextBlock>
  307. </StackPanel>
  308. </Grid>
  309. </StackPanel>
  310. </GroupBox>
  311. <GroupBox Grid.Row="0" Margin="10,10,10,0" Height="310" Width="450" Header="煮面设备 MorkS" Style="{DynamicResource from}" Tag="Start">
  312. <StackPanel>
  313. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  314. <Grid Height="80" >
  315. <Grid.ColumnDefinitions>
  316. <ColumnDefinition/>
  317. <ColumnDefinition/>
  318. </Grid.ColumnDefinitions>
  319. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  320. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  321. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[煮面机].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  322. <TextBlock.Style>
  323. <Style TargetType="TextBlock">
  324. <Setter Property="Foreground" Value="Lime"></Setter>
  325. <Style.Triggers>
  326. <Trigger Property="Text" Value="停止">
  327. <Setter Property="Foreground" Value="Red"/>
  328. </Trigger>
  329. </Style.Triggers>
  330. </Style>
  331. </TextBlock.Style>
  332. </TextBlock>
  333. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  334. </StackPanel>
  335. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  336. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[煮面机].WorkStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  337. <TextBlock.Style>
  338. <Style TargetType="TextBlock">
  339. <Setter Property="Foreground" Value="Lime"></Setter>
  340. <Style.Triggers>
  341. <Trigger Property="Text" Value="待机">
  342. <Setter Property="Foreground" Value="Yellow"/>
  343. </Trigger>
  344. <Trigger Property="Text" Value="故障">
  345. <Setter Property="Foreground" Value="Red"/>
  346. </Trigger>
  347. </Style.Triggers>
  348. </Style>
  349. </TextBlock.Style>
  350. </TextBlock>
  351. <TextBlock Style="{DynamicResource textms}" >工作状态</TextBlock>
  352. </StackPanel>
  353. </Grid>
  354. <GroupBox Header="信息统计" Margin="20,0,0,0"/>
  355. <Grid Height="80">
  356. <Grid.ColumnDefinitions>
  357. <ColumnDefinition/>
  358. <ColumnDefinition/>
  359. </Grid.ColumnDefinitions>
  360. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  361. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  362. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[煮面机].MorkS_OrderCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  363. <TextBlock Style="{DynamicResource textms}" >订单总数</TextBlock>
  364. </StackPanel>
  365. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  366. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[煮面机].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  367. <TextBlock Style="{DynamicResource textms}" >故障数</TextBlock>
  368. </StackPanel>
  369. </Grid>
  370. </StackPanel>
  371. </GroupBox>
  372. </StackPanel>
  373. <Grid Grid.Column="1" >
  374. <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="340" Width="950" Header="信息通知区域" VerticalAlignment="Bottom" Style="{DynamicResource from}">
  375. <!--<ListBox Margin="10,-10,10,10" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemsSource="{Binding AlarmAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  376. <ListBox.ItemTemplate>
  377. <DataTemplate>
  378. <WrapPanel>
  379. <Border Style="{DynamicResource border阴影边框}" Width="850" Height="50" Margin="20,10,0,5" >
  380. <Grid>
  381. <Grid.ColumnDefinitions>
  382. <ColumnDefinition Width="300"/>
  383. <ColumnDefinition/>
  384. </Grid.ColumnDefinitions>
  385. <TextBlock Grid.Column="0" Margin="0,0,10,0" HorizontalAlignment="Right" Foreground="{DynamicResource HorizontalSliderThumbHoverBackgroundInverted }" VerticalAlignment="Center" Text="{Binding AlarmTime,StringFormat={}{0}}" FontSize="24"></TextBlock>
  386. <TextBlock></TextBlock>
  387. <TextBlock Grid.Column="1" Margin="40,0,0,0" HorizontalAlignment="Left" Foreground="{DynamicResource HorizontalSliderThumbHoverBackgroundInverted}" VerticalAlignment="Center" Text="{Binding AlarmMs}" FontSize="24"></TextBlock>
  388. </Grid>
  389. </Border>
  390. </WrapPanel>
  391. </DataTemplate>
  392. </ListBox.ItemTemplate>
  393. </ListBox>-->
  394. <DataGrid Margin="10,10,10,0" ItemsSource="{Binding AlarmAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  395. <DataGrid.Columns>
  396. <DataGridTemplateColumn Width="250">
  397. <DataGridTemplateColumn.Header>
  398. <TextBlock Text="信息时间" Foreground="White"/>
  399. </DataGridTemplateColumn.Header>
  400. <DataGridTemplateColumn.CellTemplate>
  401. <DataTemplate>
  402. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  403. </DataTemplate>
  404. </DataGridTemplateColumn.CellTemplate>
  405. </DataGridTemplateColumn>
  406. <DataGridTemplateColumn Width="*">
  407. <DataGridTemplateColumn.Header>
  408. <TextBlock Text="详细描述" Foreground="White"/>
  409. </DataGridTemplateColumn.Header>
  410. <DataGridTemplateColumn.CellTemplate>
  411. <DataTemplate>
  412. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  413. </DataTemplate>
  414. </DataGridTemplateColumn.CellTemplate>
  415. </DataGridTemplateColumn>
  416. </DataGrid.Columns>
  417. </DataGrid>
  418. </GroupBox> </Grid>
  419. </Grid>
  420. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  421. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="310" Width="450" Header="分餐机设备" Style="{DynamicResource from}" Tag="Start">
  422. <StackPanel>
  423. <GroupBox Header="设备信息" Margin="20,0,0,0"/>
  424. <Grid Height="80" >
  425. <Grid.ColumnDefinitions>
  426. <ColumnDefinition/>
  427. <ColumnDefinition/>
  428. </Grid.ColumnDefinitions>
  429. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  430. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  431. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[分餐机].IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  432. <TextBlock.Style>
  433. <Style TargetType="TextBlock">
  434. <Setter Property="Foreground" Value="Lime"></Setter>
  435. <Style.Triggers>
  436. <Trigger Property="Text" Value="停止">
  437. <Setter Property="Foreground" Value="Red"/>
  438. </Trigger>
  439. </Style.Triggers>
  440. </Style>
  441. </TextBlock.Style>
  442. </TextBlock>
  443. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备状态</TextBlock>
  444. </StackPanel>
  445. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  446. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData[分餐机].WorkStatus,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="Yellow"/>
  453. </Trigger>
  454. <Trigger Property="Text" Value="故障">
  455. <Setter Property="Foreground" Value="Red"/>
  456. </Trigger>
  457. </Style.Triggers>
  458. </Style>
  459. </TextBlock.Style>
  460. </TextBlock>
  461. <TextBlock Style="{DynamicResource textms}" >工作状态</TextBlock>
  462. </StackPanel>
  463. </Grid>
  464. <GroupBox Header="信息统计" Margin="20,0,0,0"/>
  465. <Grid Height="80">
  466. <Grid.ColumnDefinitions>
  467. <ColumnDefinition/>
  468. <ColumnDefinition/>
  469. </Grid.ColumnDefinitions>
  470. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  471. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  472. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding SplitMealsCout,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  473. <TextBlock Style="{DynamicResource textms}" >刷卡总数</TextBlock>
  474. </StackPanel>
  475. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  476. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding ViewData[分餐机].FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  477. <TextBlock Style="{DynamicResource textms}" >故障数</TextBlock>
  478. </StackPanel>
  479. </Grid>
  480. </StackPanel>
  481. </GroupBox>
  482. <GroupBox Margin="10,10,10,0" Height="640" Width="450" Header="今日商品热销统计" Style="{DynamicResource from}">
  483. <ListBox
  484. Background="Transparent"
  485. BorderThickness="0"
  486. ItemsSource="{Binding StatsCountAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  487. <ListBox.ItemTemplate>
  488. <DataTemplate>
  489. <StackPanel x:Name="mainPanel1" Margin="15,5,0,0" >
  490. <StackPanel Orientation="Horizontal">
  491. <TextBlock HorizontalAlignment="Left" Style="{DynamicResource textms}" Margin="10,5,0,0" FontSize="20" Text="{Binding Name}"/>
  492. <TextBlock HorizontalAlignment="Left" Style="{DynamicResource textms}" Margin="10,5,0,0" FontSize="20" Text="/"/>
  493. <TextBlock HorizontalAlignment="Left" Style="{DynamicResource textms}" Margin="10,5,0,0" FontSize="20" Text="{Binding Count, StringFormat={}{0} 单}"/>
  494. </StackPanel>
  495. <Grid HorizontalAlignment="Left" Margin="0,5,0,0">
  496. <ProgressBar Style="{DynamicResource bfb}" Value="{Binding bfb,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="360" Height="24" Margin="10,0,0,0"></ProgressBar>
  497. </Grid>
  498. </StackPanel>
  499. </DataTemplate>
  500. </ListBox.ItemTemplate>
  501. </ListBox>
  502. </GroupBox>
  503. </StackPanel>
  504. </Grid>
  505. </UserControl>