终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

199 wiersze
14 KiB

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