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

ScreenSplitMealsControl1.xaml 12 KiB

пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <UserControl x:Class="BPASmartClient.ScreenLib.ScreenSplitMealsControl1"
  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="2 号档口" 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 HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1">
  50. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  51. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
  52. </StackPanel>
  53. </Grid>
  54. <GroupBox Header="当前操作信息" Margin="20,10,0,0"/>
  55. <Grid Height="160">
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition/>
  58. <ColumnDefinition/>
  59. </Grid.ColumnDefinitions>
  60. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  61. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  62. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="张三"></TextBlock>
  63. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">前一位刷卡人</TextBlock>
  64. </StackPanel>
  65. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  66. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="Lime" FontSize="52" Text="李四"></TextBlock>
  67. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">当前刷卡人</TextBlock>
  68. </StackPanel>
  69. </Grid>
  70. </StackPanel>
  71. </GroupBox>
  72. <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
  73. <ListBox ItemsSource="{Binding CookTypeListLeft,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  74. <ListBox.ItemTemplate>
  75. <DataTemplate>
  76. <WrapPanel>
  77. <Button Width="370" Height="100" Margin="20,20,0,0" FontSize="60" Content="{Binding Name}"/>
  78. </WrapPanel>
  79. </DataTemplate>
  80. </ListBox.ItemTemplate>
  81. </ListBox>
  82. </GroupBox>
  83. </StackPanel>
  84. <StackPanel Grid.Column="1" >
  85. <GroupBox Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
  86. <Grid>
  87. <wv2:WebView2 Name="webView" Source="{Binding GgAdder,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  88. </Grid>
  89. </GroupBox>
  90. <StackPanel Orientation="Horizontal">
  91. <GroupBox Margin="5,0,0,0" Height="340" Width="950" Header="设备告警详情" Style="{DynamicResource from}">
  92. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding AlarmList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  93. <DataGrid.Columns>
  94. <DataGridTemplateColumn Width="160">
  95. <DataGridTemplateColumn.Header>
  96. <TextBlock Text="告警时间" Foreground="White"/>
  97. </DataGridTemplateColumn.Header>
  98. <DataGridTemplateColumn.CellTemplate>
  99. <DataTemplate>
  100. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  101. </DataTemplate>
  102. </DataGridTemplateColumn.CellTemplate>
  103. </DataGridTemplateColumn>
  104. <DataGridTemplateColumn Width="300">
  105. <DataGridTemplateColumn.Header>
  106. <TextBlock Text="告警描述" Foreground="White"/>
  107. </DataGridTemplateColumn.Header>
  108. <DataGridTemplateColumn.CellTemplate>
  109. <DataTemplate>
  110. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  111. </DataTemplate>
  112. </DataGridTemplateColumn.CellTemplate>
  113. </DataGridTemplateColumn>
  114. </DataGrid.Columns>
  115. </DataGrid>
  116. </GroupBox>
  117. </StackPanel>
  118. </StackPanel>
  119. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  120. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="460" Width="450" Header="1 号档口" Style="{DynamicResource from}" Tag="Start">
  121. <StackPanel>
  122. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  123. <Grid Height="160" >
  124. <Grid.ColumnDefinitions>
  125. <ColumnDefinition/>
  126. <ColumnDefinition/>
  127. </Grid.ColumnDefinitions>
  128. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  129. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  130. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  131. <TextBlock.Style>
  132. <Style TargetType="TextBlock">
  133. <Setter Property="Foreground" Value="Lime"></Setter>
  134. <Style.Triggers>
  135. <Trigger Property="Text" Value="停止">
  136. <Setter Property="Foreground" Value="Red"/>
  137. </Trigger>
  138. </Style.Triggers>
  139. </Style>
  140. </TextBlock.Style>
  141. </TextBlock>
  142. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备是否运行</TextBlock>
  143. </StackPanel>
  144. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1">
  145. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  146. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
  147. </StackPanel>
  148. </Grid>
  149. <GroupBox Header="当前操作信息" Margin="20,10,0,0"/>
  150. <Grid Height="160">
  151. <Grid.ColumnDefinitions>
  152. <ColumnDefinition/>
  153. <ColumnDefinition/>
  154. </Grid.ColumnDefinitions>
  155. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  156. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  157. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="张三"></TextBlock>
  158. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">前一位刷卡人</TextBlock>
  159. </StackPanel>
  160. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  161. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="Lime" FontSize="52" Text="李四"></TextBlock>
  162. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">当前刷卡人</TextBlock>
  163. </StackPanel>
  164. </Grid>
  165. </StackPanel>
  166. </GroupBox>
  167. <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
  168. <ListBox ItemsSource="{Binding CookTypeListReit,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  169. <ListBox.ItemTemplate>
  170. <DataTemplate>
  171. <WrapPanel>
  172. <Button Width="370" Height="100" Margin="20,20,0,0" FontSize="60" Content="{Binding Name}"/>
  173. </WrapPanel>
  174. </DataTemplate>
  175. </ListBox.ItemTemplate>
  176. </ListBox>
  177. </GroupBox>
  178. </StackPanel>
  179. </Grid>
  180. </UserControl>