终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

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