|
- <UserControl x:Class="BPASmartClient.ScreenLib.ScreenSplitMealsControl3"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.ScreenLib"
- xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
- xmlns:con="clr-namespace:BPA.CustomResource.UserControls;assembly=BPA.CustomResource"
- mc:Ignorable="d"
- d:DesignHeight="1080" d:DesignWidth="1920">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPA.CustomResource;component/Themes/ProlineStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
-
- <StackPanel Margin="0,10,0,0">
- <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="460" Width="450" Header="6 号档口" Style="{DynamicResource from}" Tag="Start">
- <StackPanel>
- <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
- <Grid Height="160" >
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="停止">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备是否运行</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="异常">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备当前状态</TextBlock>
- </StackPanel>
- </Grid>
- <GroupBox Header="刷卡信息统计" Margin="20,10,0,0"/>
- <Grid Height="160">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="52" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">异常刷卡数</TextBlock>
- </StackPanel>
- </Grid>
-
- </StackPanel>
-
- </GroupBox>
- <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
- <ListBox ItemsSource="{Binding CookTypeListLeft,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <WrapPanel>
- <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name}"/>
- <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name1}"/>
- </WrapPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </GroupBox>
- </StackPanel>
-
- <StackPanel Grid.Column="1" >
- <GroupBox Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
- <Grid>
- <wv2:WebView2 Name="webView" Source="{Binding GgAdder,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
- </Grid>
- </GroupBox>
-
- <StackPanel Orientation="Horizontal">
- <GroupBox Margin="5,0,0,0" Height="340" Width="470" Header="今日菜品刷卡统计图" Style="{DynamicResource from}">
- <StackPanel>
- <con:BasicBarChart Margin="30,40,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" SeriesArray="{Binding Histogram,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="410" Height="200" ShowSize="50"></con:BasicBarChart>
- </StackPanel>
- </GroupBox>
-
- <GroupBox Margin="10,0,0,0" Height="340" Width="470" Header="设备告警详情" Style="{DynamicResource from}">
- <DataGrid Margin="0,10,0,0" ItemsSource="{Binding AlarmList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="160">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="告警时间" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="300">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="告警描述" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </StackPanel>
- </StackPanel>
-
- <StackPanel Grid.Column="2" Margin="0,10,0,0">
- <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="460" Width="450" Header="5 号档口" Style="{DynamicResource from}" Tag="Start">
- <StackPanel>
- <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
- <Grid Height="160" >
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="停止">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备是否运行</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="异常">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备当前状态</TextBlock>
- </StackPanel>
- </Grid>
- <GroupBox Header="刷卡信息统计" Margin="20,10,0,0"/>
- <Grid Height="160">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日刷卡数</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="52" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">异常刷卡数</TextBlock>
- </StackPanel>
- </Grid>
-
- </StackPanel>
-
- </GroupBox>
- <GroupBox Margin="0,20,10,0" Height="480" Width="450" Header="今日菜品列表" Style="{DynamicResource from}" Tag="Start">
- <ListBox ItemsSource="{Binding CookTypeListReit,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <WrapPanel>
- <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name}"/>
- <Button Width="170" Height="100" Margin="20,20,0,0" Content="{Binding Name1}"/>
- </WrapPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </GroupBox>
- </StackPanel>
- </Grid>
-
- </UserControl>
|