终端一体化运控平台
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ScreenSplitMealsControl3.xaml 14 KiB

2 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <UserControl x:Class="BPASmartClient.ScreenLib.ScreenSplitMealsControl3"
  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="460" Width="450" Header="6 号档口" Style="{DynamicResource from}" Tag="Start">
  26. <StackPanel>
  27. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  28. <Grid Height="160" >
  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 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,10,0,0">设备是否运行</TextBlock>
  48. </StackPanel>
  49. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,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="Red"/>
  57. </Trigger>
  58. </Style.Triggers>
  59. </Style>
  60. </TextBlock.Style>
  61. </TextBlock>
  62. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备当前状态</TextBlock>
  63. </StackPanel>
  64. </Grid>
  65. <GroupBox Header="刷卡信息统计" Margin="20,10,0,0"/>
  66. <Grid Height="160">
  67. <Grid.ColumnDefinitions>
  68. <ColumnDefinition/>
  69. <ColumnDefinition/>
  70. </Grid.ColumnDefinitions>
  71. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  72. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  73. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  74. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
  75. </StackPanel>
  76. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  77. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="52" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  78. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">异常刷卡数</TextBlock>
  79. </StackPanel>
  80. </Grid>
  81. </StackPanel>
  82. </GroupBox>
  83. <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
  84. <ListBox ItemsSource="{Binding CookTypeListLeft,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  85. <ListBox.ItemTemplate>
  86. <DataTemplate>
  87. <WrapPanel>
  88. <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name}"/>
  89. <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name1}"/>
  90. </WrapPanel>
  91. </DataTemplate>
  92. </ListBox.ItemTemplate>
  93. </ListBox>
  94. </GroupBox>
  95. </StackPanel>
  96. <StackPanel Grid.Column="1" >
  97. <GroupBox Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
  98. <Grid>
  99. <wv2:WebView2 Name="webView" Source="{Binding GgAdder,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  100. </Grid>
  101. </GroupBox>
  102. <StackPanel Orientation="Horizontal">
  103. <GroupBox Margin="5,0,0,0" Height="340" Width="470" Header="今日菜品刷卡统计图" Style="{DynamicResource from}">
  104. <StackPanel>
  105. <con:BasicBarChart Margin="30,40,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" SeriesArray="{Binding Histogram,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="410" Height="200" ShowSize="50"></con:BasicBarChart>
  106. </StackPanel>
  107. </GroupBox>
  108. <GroupBox Margin="10,0,0,0" Height="340" Width="470" Header="设备告警详情" Style="{DynamicResource from}">
  109. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding AlarmList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  110. <DataGrid.Columns>
  111. <DataGridTemplateColumn Width="160">
  112. <DataGridTemplateColumn.Header>
  113. <TextBlock Text="告警时间" Foreground="White"/>
  114. </DataGridTemplateColumn.Header>
  115. <DataGridTemplateColumn.CellTemplate>
  116. <DataTemplate>
  117. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  118. </DataTemplate>
  119. </DataGridTemplateColumn.CellTemplate>
  120. </DataGridTemplateColumn>
  121. <DataGridTemplateColumn Width="300">
  122. <DataGridTemplateColumn.Header>
  123. <TextBlock Text="告警描述" Foreground="White"/>
  124. </DataGridTemplateColumn.Header>
  125. <DataGridTemplateColumn.CellTemplate>
  126. <DataTemplate>
  127. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  128. </DataTemplate>
  129. </DataGridTemplateColumn.CellTemplate>
  130. </DataGridTemplateColumn>
  131. </DataGrid.Columns>
  132. </DataGrid>
  133. </GroupBox>
  134. </StackPanel>
  135. </StackPanel>
  136. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  137. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="460" Width="450" Header="5 号档口" Style="{DynamicResource from}" Tag="Start">
  138. <StackPanel>
  139. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  140. <Grid Height="160" >
  141. <Grid.ColumnDefinitions>
  142. <ColumnDefinition/>
  143. <ColumnDefinition/>
  144. </Grid.ColumnDefinitions>
  145. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  146. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  147. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  148. <TextBlock.Style>
  149. <Style TargetType="TextBlock">
  150. <Setter Property="Foreground" Value="Lime"></Setter>
  151. <Style.Triggers>
  152. <Trigger Property="Text" Value="停止">
  153. <Setter Property="Foreground" Value="Red"/>
  154. </Trigger>
  155. </Style.Triggers>
  156. </Style>
  157. </TextBlock.Style>
  158. </TextBlock>
  159. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备是否运行</TextBlock>
  160. </StackPanel>
  161. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  162. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  163. <TextBlock.Style>
  164. <Style TargetType="TextBlock">
  165. <Setter Property="Foreground" Value="Lime"></Setter>
  166. <Style.Triggers>
  167. <Trigger Property="Text" Value="异常">
  168. <Setter Property="Foreground" Value="Red"/>
  169. </Trigger>
  170. </Style.Triggers>
  171. </Style>
  172. </TextBlock.Style>
  173. </TextBlock>
  174. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备当前状态</TextBlock>
  175. </StackPanel>
  176. </Grid>
  177. <GroupBox Header="刷卡信息统计" Margin="20,10,0,0"/>
  178. <Grid Height="160">
  179. <Grid.ColumnDefinitions>
  180. <ColumnDefinition/>
  181. <ColumnDefinition/>
  182. </Grid.ColumnDefinitions>
  183. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  184. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  185. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  186. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
  187. </StackPanel>
  188. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  189. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="52" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  190. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">异常刷卡数</TextBlock>
  191. </StackPanel>
  192. </Grid>
  193. </StackPanel>
  194. </GroupBox>
  195. <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
  196. <ListBox ItemsSource="{Binding CookTypeListReit,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  197. <ListBox.ItemTemplate>
  198. <DataTemplate>
  199. <WrapPanel>
  200. <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name}"/>
  201. <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name1}"/>
  202. </WrapPanel>
  203. </DataTemplate>
  204. </ListBox.ItemTemplate>
  205. </ListBox>
  206. </GroupBox>
  207. </StackPanel>
  208. </Grid>
  209. </UserControl>