终端一体化运控平台
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.
 
 
 

333 lines
25 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. </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="310" Width="450" Header="大炒设备" Style="{DynamicResource from}" Tag="Start">
  26. <StackPanel>
  27. <GroupBox Header="1 号炒锅" Margin="20,0,0,0"/>
  28. <Grid Height="80" >
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition/>
  31. <ColumnDefinition/>
  32. </Grid.ColumnDefinitions>
  33. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  34. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  35. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,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,0,0,0" FontSize="19">设备是否运行</TextBlock>
  48. </StackPanel>
  49. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  51. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  52. </StackPanel>
  53. </Grid>
  54. <GroupBox Header="2 号炒锅" Margin="20,0,0,0"/>
  55. <Grid Height="80">
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition/>
  58. <ColumnDefinition/>
  59. </Grid.ColumnDefinitions>
  60. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  61. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  62. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  63. <TextBlock.Style>
  64. <Style TargetType="TextBlock">
  65. <Setter Property="Foreground" Value="Lime"></Setter>
  66. <Style.Triggers>
  67. <Trigger Property="Text" Value="停止">
  68. <Setter Property="Foreground" Value="Red"/>
  69. </Trigger>
  70. </Style.Triggers>
  71. </Style>
  72. </TextBlock.Style>
  73. </TextBlock>
  74. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备是否运行</TextBlock>
  75. </StackPanel>
  76. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  77. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  78. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  79. </StackPanel>
  80. </Grid>
  81. </StackPanel>
  82. </GroupBox>
  83. <GroupBox Grid.Row="0" Margin="10,10,10,0" Height="320" Width="450" Header="小炒设备" Style="{DynamicResource from}" Tag="Start">
  84. <StackPanel>
  85. <GroupBox Header="1 号炒锅" Margin="20,0,0,0"/>
  86. <Grid Height="80" >
  87. <Grid.ColumnDefinitions>
  88. <ColumnDefinition/>
  89. <ColumnDefinition/>
  90. </Grid.ColumnDefinitions>
  91. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  92. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  93. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  94. <TextBlock.Style>
  95. <Style TargetType="TextBlock">
  96. <Setter Property="Foreground" Value="Lime"></Setter>
  97. <Style.Triggers>
  98. <Trigger Property="Text" Value="停止">
  99. <Setter Property="Foreground" Value="Red"/>
  100. </Trigger>
  101. </Style.Triggers>
  102. </Style>
  103. </TextBlock.Style>
  104. </TextBlock>
  105. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备是否运行</TextBlock>
  106. </StackPanel>
  107. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  108. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  109. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  110. </StackPanel>
  111. </Grid>
  112. <GroupBox Header="2 号炒锅" Margin="20,0,0,0"/>
  113. <Grid Height="80">
  114. <Grid.ColumnDefinitions>
  115. <ColumnDefinition/>
  116. <ColumnDefinition/>
  117. </Grid.ColumnDefinitions>
  118. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  119. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  120. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  121. <TextBlock.Style>
  122. <Style TargetType="TextBlock">
  123. <Setter Property="Foreground" Value="Lime"></Setter>
  124. <Style.Triggers>
  125. <Trigger Property="Text" Value="停止">
  126. <Setter Property="Foreground" Value="Red"/>
  127. </Trigger>
  128. </Style.Triggers>
  129. </Style>
  130. </TextBlock.Style>
  131. </TextBlock>
  132. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备是否运行</TextBlock>
  133. </StackPanel>
  134. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  135. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  136. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  137. </StackPanel>
  138. </Grid>
  139. </StackPanel>
  140. </GroupBox>
  141. <GroupBox Grid.Row="0" Margin="10,10,10,0" Height="310" Width="450" Header="煮面设备 MorkS" Style="{DynamicResource from}" Tag="Start">
  142. <StackPanel>
  143. <GroupBox Header="设备运行情况" Margin="20,0,0,0"/>
  144. <Grid Height="80" >
  145. <Grid.ColumnDefinitions>
  146. <ColumnDefinition/>
  147. <ColumnDefinition/>
  148. </Grid.ColumnDefinitions>
  149. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  150. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  151. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  152. <TextBlock.Style>
  153. <Style TargetType="TextBlock">
  154. <Setter Property="Foreground" Value="Lime"></Setter>
  155. <Style.Triggers>
  156. <Trigger Property="Text" Value="停止">
  157. <Setter Property="Foreground" Value="Red"/>
  158. </Trigger>
  159. </Style.Triggers>
  160. </Style>
  161. </TextBlock.Style>
  162. </TextBlock>
  163. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19" >设备是否运行</TextBlock>
  164. </StackPanel>
  165. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  166. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  167. <TextBlock.Style>
  168. <Style TargetType="TextBlock">
  169. <Setter Property="Foreground" Value="Lime"></Setter>
  170. <Style.Triggers>
  171. <Trigger Property="Text" Value="异常">
  172. <Setter Property="Foreground" Value="Red"/>
  173. </Trigger>
  174. </Style.Triggers>
  175. </Style>
  176. </TextBlock.Style>
  177. </TextBlock>
  178. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备当前状态</TextBlock>
  179. </StackPanel>
  180. </Grid>
  181. <GroupBox Header="订单信息统计" Margin="20,0,0,0"/>
  182. <Grid Height="80">
  183. <Grid.ColumnDefinitions>
  184. <ColumnDefinition/>
  185. <ColumnDefinition/>
  186. </Grid.ColumnDefinitions>
  187. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  188. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  189. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  190. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日订单数</TextBlock>
  191. </StackPanel>
  192. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  193. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="42" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  194. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">异常订单数</TextBlock>
  195. </StackPanel>
  196. </Grid>
  197. </StackPanel>
  198. </GroupBox>
  199. </StackPanel>
  200. <Grid Grid.Column="1" >
  201. <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="10000" Style="{DynamicResource GroupStyle圆形}" Tag="累计收入" Content="万元" Width="100"/> <GroupBox Margin="600,400,0,0" Header="988" Style="{DynamicResource GroupStyle圆形}" Tag="累计刷卡" Content="次" Width="160"/> <GroupBox Margin="-500,100,0,0" Header="0" Style="{DynamicResource GroupStyle圆形}" Tag="累计故障" Content="次" Width="160"/> </Grid> <GroupBox Margin="10,10,10,10" Height="260" Width="940" HorizontalAlignment="Center" VerticalAlignment="Bottom" Style="{DynamicResource fromNoTitle}"> <Grid Margin="0,10,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid> <GroupBox Header="商品分布图" Margin="20,0,0,0"/>
  202. <con:RadarChart x:Name="生存图示例" Margin="0,10,0,0" Width="120" Height="150" RadarArray="{Binding RadarModelList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ></con:RadarChart> </Grid> <Grid Grid.Column="1"> <GroupBox Header="商品统计图" Margin="20,0,0,0"/>
  203. <con:BasicBarChart Margin="30,20,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" SeriesArray="{Binding Histogram,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="370" Height="150" ShowSize="50"></con:BasicBarChart>
  204. </Grid> </Grid> </GroupBox> </Grid>
  205. </Grid>
  206. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  207. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="420" Width="450" Header="分餐机设备" Style="{DynamicResource from}" Tag="Start">
  208. <StackPanel>
  209. <GroupBox Header="1 号分餐机" Margin="20,0,0,0"/>
  210. <Grid Height="80" >
  211. <Grid.ColumnDefinitions>
  212. <ColumnDefinition/>
  213. <ColumnDefinition/>
  214. </Grid.ColumnDefinitions>
  215. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  216. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  217. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  218. <TextBlock.Style>
  219. <Style TargetType="TextBlock">
  220. <Setter Property="Foreground" Value="Lime"></Setter>
  221. <Style.Triggers>
  222. <Trigger Property="Text" Value="停止">
  223. <Setter Property="Foreground" Value="Red"/>
  224. </Trigger>
  225. </Style.Triggers>
  226. </Style>
  227. </TextBlock.Style>
  228. </TextBlock>
  229. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备是否运行</TextBlock>
  230. </StackPanel>
  231. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  232. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  233. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  234. </StackPanel>
  235. </Grid>
  236. <GroupBox Header="2 号分餐机" Margin="20,0,0,0"/>
  237. <Grid Height="80" >
  238. <Grid.ColumnDefinitions>
  239. <ColumnDefinition/>
  240. <ColumnDefinition/>
  241. </Grid.ColumnDefinitions>
  242. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  243. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  244. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  245. <TextBlock.Style>
  246. <Style TargetType="TextBlock">
  247. <Setter Property="Foreground" Value="Lime"></Setter>
  248. <Style.Triggers>
  249. <Trigger Property="Text" Value="停止">
  250. <Setter Property="Foreground" Value="Red"/>
  251. </Trigger>
  252. </Style.Triggers>
  253. </Style>
  254. </TextBlock.Style>
  255. </TextBlock>
  256. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备是否运行</TextBlock>
  257. </StackPanel>
  258. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  259. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  260. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  261. </StackPanel>
  262. </Grid>
  263. <GroupBox Header="3 号分餐机" Margin="20,0,0,0"/>
  264. <Grid Height="80" >
  265. <Grid.ColumnDefinitions>
  266. <ColumnDefinition/>
  267. <ColumnDefinition/>
  268. </Grid.ColumnDefinitions>
  269. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="60" Width="2"></Border>
  270. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  271. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  272. <TextBlock.Style>
  273. <Style TargetType="TextBlock">
  274. <Setter Property="Foreground" Value="Lime"></Setter>
  275. <Style.Triggers>
  276. <Trigger Property="Text" Value="停止">
  277. <Setter Property="Foreground" Value="Red"/>
  278. </Trigger>
  279. </Style.Triggers>
  280. </Style>
  281. </TextBlock.Style>
  282. </TextBlock>
  283. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">设备是否运行</TextBlock>
  284. </StackPanel>
  285. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  286. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="42" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  287. <TextBlock Style="{DynamicResource textms}" Margin="0,0,0,0" FontSize="19">今日刷卡数</TextBlock>
  288. </StackPanel>
  289. </Grid>
  290. </StackPanel>
  291. </GroupBox>
  292. <GroupBox Margin="10,10,10,0" Height="260" Width="450" Header="今日商品统计图" Style="{DynamicResource from}">
  293. <StackPanel>
  294. <con:BasicBarChart Margin="30,20,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" SeriesArray="{Binding Histogram,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="410" Height="160" ShowSize="50"></con:BasicBarChart>
  295. </StackPanel>
  296. </GroupBox>
  297. <GroupBox Margin="10,10,10,0" Height="260" Width="450" Header="设备告警详情" Style="{DynamicResource from}">
  298. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding AlarmList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  299. <DataGrid.Columns>
  300. <DataGridTemplateColumn Width="160">
  301. <DataGridTemplateColumn.Header>
  302. <TextBlock Text="告警时间" Foreground="White"/>
  303. </DataGridTemplateColumn.Header>
  304. <DataGridTemplateColumn.CellTemplate>
  305. <DataTemplate>
  306. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  307. </DataTemplate>
  308. </DataGridTemplateColumn.CellTemplate>
  309. </DataGridTemplateColumn>
  310. <DataGridTemplateColumn Width="300">
  311. <DataGridTemplateColumn.Header>
  312. <TextBlock Text="告警描述" Foreground="White"/>
  313. </DataGridTemplateColumn.Header>
  314. <DataGridTemplateColumn.CellTemplate>
  315. <DataTemplate>
  316. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  317. </DataTemplate>
  318. </DataGridTemplateColumn.CellTemplate>
  319. </DataGridTemplateColumn>
  320. </DataGrid.Columns>
  321. </DataGrid>
  322. </GroupBox>
  323. </StackPanel>
  324. </Grid>
  325. </UserControl>