| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <UserControl x:Class="TeamAAS.Views.StatisticsView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:loc="clr-namespace:TeamAAS.Localization">
- <Grid Margin="16,12">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Text="{loc:Translate '产量统计'}" FontSize="20" FontWeight="Bold"
- Foreground="{DynamicResource PrimaryTextBrush}" Margin="0,0,0,16"/>
- <!-- Summary Cards -->
- <UniformGrid Grid.Row="1" Columns="4" Margin="0,0,0,16">
- <Border Background="{DynamicResource RegionBrush}" CornerRadius="8" Padding="16,12" Margin="0,0,8,0">
- <StackPanel>
- <TextBlock Text="{loc:Translate '总产量'}" Foreground="{DynamicResource SecondaryTextBrush}" FontSize="12"/>
- <TextBlock Text="{Binding Stats.TotalCount}" FontSize="24" FontWeight="Bold" Foreground="{DynamicResource PrimaryTextBrush}"/>
- </StackPanel>
- </Border>
- <Border Background="{DynamicResource RegionBrush}" CornerRadius="8" Padding="16,12" Margin="8,0,8,0">
- <StackPanel>
- <TextBlock Text="{loc:Translate 'OK数'}" Foreground="{DynamicResource SecondaryTextBrush}" FontSize="12"/>
- <TextBlock Text="{Binding Stats.OkCount}" FontSize="24" FontWeight="Bold" Foreground="#4CAF50"/>
- </StackPanel>
- </Border>
- <Border Background="{DynamicResource RegionBrush}" CornerRadius="8" Padding="16,12" Margin="8,0,8,0">
- <StackPanel>
- <TextBlock Text="{loc:Translate 'NG数'}" Foreground="{DynamicResource SecondaryTextBrush}" FontSize="12"/>
- <TextBlock Text="{Binding Stats.NgCount}" FontSize="24" FontWeight="Bold" Foreground="#F44336"/>
- </StackPanel>
- </Border>
- <Border Background="{DynamicResource RegionBrush}" CornerRadius="8" Padding="16,12" Margin="8,0,0,0">
- <StackPanel>
- <TextBlock Text="{loc:Translate '良率'}" Foreground="{DynamicResource SecondaryTextBrush}" FontSize="12"/>
- <TextBlock Text="{Binding Stats.YieldText}" FontSize="24" FontWeight="Bold" Foreground="{DynamicResource PrimaryBrush}"/>
- </StackPanel>
- </Border>
- </UniformGrid>
- <!-- Chart Placeholder -->
- <Border Grid.Row="2" Background="{DynamicResource RegionBrush}" CornerRadius="8" Padding="24">
- <StackPanel>
- <DockPanel>
- <Button DockPanel.Dock="Right" Content="{loc:Translate '清零'}" Padding="20,4" FontSize="12"
- Command="{Binding ResetStatisticsCommand}"/>
- <TextBlock Text="{loc:Translate '产量趋势图'}" FontSize="16" FontWeight="Bold"
- Foreground="{DynamicResource PrimaryTextBrush}" Margin="0,0,0,12"/>
- </DockPanel>
- <Border Background="{DynamicResource SecondaryRegionBrush}" CornerRadius="4"
- Height="300" VerticalAlignment="Stretch">
- <TextBlock Text="{loc:Translate '图表区域(待接入图表库)'}" HorizontalAlignment="Center" VerticalAlignment="Center"
- FontSize="20" Foreground="{DynamicResource SecondaryTextBrush}"/>
- </Border>
- </StackPanel>
- </Border>
- </Grid>
- </UserControl>
|