终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

192 Zeilen
14 KiB

  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="5 号档口" 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 ViewData.WorkStatus_5,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 ViewData.SplitMeals_CreditCardCount_5,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="{Binding ViewData.SplitMeals_CreditCardNameBefore_5,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></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="{Binding ViewData.SplitMeals_CreditCardName_5,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></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 ViewData.SplitMeals_CookType_5,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  74. <ListBox.ItemTemplate>
  75. <DataTemplate>
  76. <WrapPanel>
  77. <Border Style="{DynamicResource border顶部背景}" Width="370" Height="100" Margin="20,20,0,0" >
  78. <TextBlock HorizontalAlignment="Center" Foreground="{DynamicResource foreground}" VerticalAlignment="Center" Text="{Binding .}" FontSize="60"></TextBlock>
  79. </Border>
  80. </WrapPanel>
  81. </DataTemplate>
  82. </ListBox.ItemTemplate>
  83. </ListBox>
  84. </GroupBox>
  85. </StackPanel>
  86. <StackPanel Grid.Column="1" MouseLeftButtonDown="StackPanel_MouseLeftButtonDown" VerticalAlignment="Bottom" Margin="0,0,0,10">
  87. <GroupBox x:Name="guanggao" Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
  88. <Grid>
  89. <wv2:WebView2 Name="webView" />
  90. </Grid>
  91. </GroupBox>
  92. <Grid x:Name="diqiu" Height="600" Width="950" Margin="0,10,0,20" > <Image Style="{DynamicResource imagezhu}"></Image> <Image Style="{DynamicResource image中1}" Margin="0,400,0,0"></Image> <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
  93. <TextBlock Text="{Binding CurrentTime, StringFormat={}{0:HH:mm:ss}}" d:Text="10:53:22" FontSize="70" Margin="5"/>
  94. <TextBlock Text="{Binding CurrentTime, StringFormat={}{0:yyyy-MM-dd}}" d:Text="20239-11-09" FontSize="35" Margin="5"/>
  95. </StackPanel> <GroupBox Margin="600,100,0,500" Header="{Binding ViewData.FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="累计故障数" Content="次" Width="100"/> <GroupBox Margin="600,400,0,0" Header="0" Style="{DynamicResource GroupStyle圆形}" Tag="故障次数" Content="次" Width="160"/> <GroupBox Margin="-500,100,0,0" Header="{Binding OrderCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="日总接待人数" Content="人" Width="160"/> </Grid>
  96. <GroupBox Margin="0,0,0,0" Height="340" Width="950" Header="信息通知区域" Style="{DynamicResource from}">
  97. <DataGrid Margin="10,10,10,0" ItemsSource="{Binding ViewData.Alarm,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  98. <DataGrid.Columns>
  99. <DataGridTemplateColumn Width="250">
  100. <DataGridTemplateColumn.Header>
  101. <TextBlock Text="信息时间" Foreground="White"/>
  102. </DataGridTemplateColumn.Header>
  103. <DataGridTemplateColumn.CellTemplate>
  104. <DataTemplate>
  105. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  106. </DataTemplate>
  107. </DataGridTemplateColumn.CellTemplate>
  108. </DataGridTemplateColumn>
  109. <DataGridTemplateColumn Width="*">
  110. <DataGridTemplateColumn.Header>
  111. <TextBlock Text="详细描述" Foreground="White"/>
  112. </DataGridTemplateColumn.Header>
  113. <DataGridTemplateColumn.CellTemplate>
  114. <DataTemplate>
  115. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  116. </DataTemplate>
  117. </DataGridTemplateColumn.CellTemplate>
  118. </DataGridTemplateColumn>
  119. </DataGrid.Columns>
  120. </DataGrid>
  121. </GroupBox>
  122. </StackPanel>
  123. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  124. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="460" Width="450" Header="6 号档口" Style="{DynamicResource from}" Tag="Start">
  125. <StackPanel>
  126. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  127. <Grid Height="160" >
  128. <Grid.ColumnDefinitions>
  129. <ColumnDefinition/>
  130. <ColumnDefinition/>
  131. </Grid.ColumnDefinitions>
  132. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  133. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  134. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.WorkStatus_6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  135. <TextBlock.Style>
  136. <Style TargetType="TextBlock">
  137. <Setter Property="Foreground" Value="Lime"></Setter>
  138. <Style.Triggers>
  139. <Trigger Property="Text" Value="停止">
  140. <Setter Property="Foreground" Value="Red"/>
  141. </Trigger>
  142. </Style.Triggers>
  143. </Style>
  144. </TextBlock.Style>
  145. </TextBlock>
  146. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备工作状态</TextBlock>
  147. </StackPanel>
  148. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1">
  149. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding ViewData.SplitMeals_CreditCardCount_6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  150. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
  151. </StackPanel>
  152. </Grid>
  153. <GroupBox Header="当前操作信息" Margin="20,10,0,0"/>
  154. <Grid Height="160">
  155. <Grid.ColumnDefinitions>
  156. <ColumnDefinition/>
  157. <ColumnDefinition/>
  158. </Grid.ColumnDefinitions>
  159. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  160. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  161. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding ViewData.SplitMeals_CreditCardNameBefore_6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  162. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">前一位刷卡人</TextBlock>
  163. </StackPanel>
  164. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  165. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="Lime" FontSize="52" Text="{Binding ViewData.SplitMeals_CreditCardName_6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  166. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">当前刷卡人</TextBlock>
  167. </StackPanel>
  168. </Grid>
  169. </StackPanel>
  170. </GroupBox>
  171. <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
  172. <ListBox ItemsSource="{Binding ViewData.SplitMeals_CookType_6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  173. <ListBox.ItemTemplate>
  174. <DataTemplate>
  175. <WrapPanel>
  176. <Border Style="{DynamicResource border顶部背景}" Width="370" Height="100" Margin="20,20,0,0" >
  177. <TextBlock HorizontalAlignment="Center" Foreground="{DynamicResource foreground}" VerticalAlignment="Center" Text="{Binding .}" FontSize="60"></TextBlock>
  178. </Border>
  179. </WrapPanel>
  180. </DataTemplate>
  181. </ListBox.ItemTemplate>
  182. </ListBox>
  183. </GroupBox>
  184. </StackPanel>
  185. </Grid>
  186. </UserControl>