终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

190 líneas
14 KiB

  1. <UserControl x:Class="BPASmartClient.ScreenLib.ScreenSplitMealsControl2"
  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="3 号档口" 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_3,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_3,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_3,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_3,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_3,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> <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>
  93. <GroupBox Margin="0,0,0,0" Height="340" Width="950" Header="信息通知区域" Style="{DynamicResource from}">
  94. <DataGrid Margin="10,10,10,0" ItemsSource="{Binding ViewData.Alarm,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  95. <DataGrid.Columns>
  96. <DataGridTemplateColumn Width="250">
  97. <DataGridTemplateColumn.Header>
  98. <TextBlock Text="信息时间" Foreground="White"/>
  99. </DataGridTemplateColumn.Header>
  100. <DataGridTemplateColumn.CellTemplate>
  101. <DataTemplate>
  102. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  103. </DataTemplate>
  104. </DataGridTemplateColumn.CellTemplate>
  105. </DataGridTemplateColumn>
  106. <DataGridTemplateColumn Width="*">
  107. <DataGridTemplateColumn.Header>
  108. <TextBlock Text="详细描述" Foreground="White"/>
  109. </DataGridTemplateColumn.Header>
  110. <DataGridTemplateColumn.CellTemplate>
  111. <DataTemplate>
  112. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
  113. </DataTemplate>
  114. </DataGridTemplateColumn.CellTemplate>
  115. </DataGridTemplateColumn>
  116. </DataGrid.Columns>
  117. </DataGrid>
  118. </GroupBox>
  119. </StackPanel>
  120. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  121. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="460" Width="450" Header="4 号档口" Style="{DynamicResource from}" Tag="Start">
  122. <StackPanel>
  123. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  124. <Grid Height="160" >
  125. <Grid.ColumnDefinitions>
  126. <ColumnDefinition/>
  127. <ColumnDefinition/>
  128. </Grid.ColumnDefinitions>
  129. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  130. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  131. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.WorkStatus_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  132. <TextBlock.Style>
  133. <Style TargetType="TextBlock">
  134. <Setter Property="Foreground" Value="Lime"></Setter>
  135. <Style.Triggers>
  136. <Trigger Property="Text" Value="停止">
  137. <Setter Property="Foreground" Value="Red"/>
  138. </Trigger>
  139. </Style.Triggers>
  140. </Style>
  141. </TextBlock.Style>
  142. </TextBlock>
  143. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备工作状态</TextBlock>
  144. </StackPanel>
  145. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1">
  146. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding ViewData.SplitMeals_CreditCardCount_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  147. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
  148. </StackPanel>
  149. </Grid>
  150. <GroupBox Header="当前操作信息" Margin="20,10,0,0"/>
  151. <Grid Height="160">
  152. <Grid.ColumnDefinitions>
  153. <ColumnDefinition/>
  154. <ColumnDefinition/>
  155. </Grid.ColumnDefinitions>
  156. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  157. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  158. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding ViewData.SplitMeals_CreditCardNameBefore_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></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 Style="{DynamicResource 数码管Text}" Foreground="Lime" FontSize="52" Text="{Binding ViewData.SplitMeals_CreditCardName_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  163. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">当前刷卡人</TextBlock>
  164. </StackPanel>
  165. </Grid>
  166. </StackPanel>
  167. </GroupBox>
  168. <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
  169. <ListBox ItemsSource="{Binding ViewData.SplitMeals_CookType_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  170. <ListBox.ItemTemplate>
  171. <DataTemplate>
  172. <WrapPanel>
  173. <Border Style="{DynamicResource border顶部背景}" Width="370" Height="100" Margin="20,20,0,0" >
  174. <TextBlock HorizontalAlignment="Center" Foreground="{DynamicResource foreground}" VerticalAlignment="Center" Text="{Binding .}" FontSize="60"></TextBlock>
  175. </Border>
  176. </WrapPanel>
  177. </DataTemplate>
  178. </ListBox.ItemTemplate>
  179. </ListBox>
  180. </GroupBox>
  181. </StackPanel>
  182. </Grid>
  183. </UserControl>