You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
6.5 KiB
Plaintext
129 lines
6.5 KiB
Plaintext
|
4 days ago
|
<Window x:Class="Sln_Wpf.Page.LocationStatisticsWindow"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
Title="库位统计" Height="400" Width="500"
|
||
|
|
WindowStartupLocation="CenterOwner"
|
||
|
|
WindowStyle="None" ResizeMode="NoResize"
|
||
|
|
Background="#F5F7FA">
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="50"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="70"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<!-- 顶部栏 -->
|
||
|
|
<Border Grid.Row="0" Background="White" BorderBrush="#E9ECF1" BorderThickness="0,0,0,1">
|
||
|
|
<Grid Margin="15,0,10,0">
|
||
|
|
<Rectangle Fill="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown" Cursor="SizeAll"/>
|
||
|
|
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||
|
|
<TextBlock Text="📊 " FontSize="18" VerticalAlignment="Center"/>
|
||
|
|
<TextBlock Text="库位统计" FontSize="16" FontWeight="Bold" Foreground="#2C3E50" VerticalAlignment="Center"/>
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<Button x:Name="BtnClose" Style="{StaticResource CloseWinButtonStyle}"
|
||
|
|
Content="✕" HorizontalAlignment="Right" Click="BtnClose_Click"/>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 统计内容区 -->
|
||
|
|
<Grid Grid.Row="1" Margin="20,15,20,15">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<!-- 总库位 -->
|
||
|
|
<Border Grid.Row="0" Style="{StaticResource StatCardStyle}" Margin="0,0,0,12">
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<TextBlock Text="🏪" FontSize="32" VerticalAlignment="Center" Margin="0,0,15,0"/>
|
||
|
|
<StackPanel Grid.Column="1">
|
||
|
|
<TextBlock Style="{StaticResource LabelStyle}" Text="总库位"/>
|
||
|
|
<TextBlock x:Name="TxtTotalLocations" Style="{StaticResource ValueStyle}" Text="0"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 占用库位 -->
|
||
|
|
<Border Grid.Row="1" Style="{StaticResource StatCardStyle}" Margin="0,0,0,12">
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<TextBlock Text="📦" FontSize="32" VerticalAlignment="Center" Margin="0,0,15,0"/>
|
||
|
|
<StackPanel Grid.Column="1">
|
||
|
|
<TextBlock Style="{StaticResource LabelStyle}" Text="占用库位"/>
|
||
|
|
<TextBlock x:Name="TxtOccupiedLocations" Style="{StaticResource ValueStyle}" Text="0" Foreground="#E67E22"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 空闲库位 -->
|
||
|
|
<Border Grid.Row="2" Style="{StaticResource StatCardStyle}" Margin="0,0,0,12">
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<TextBlock Text="✅" FontSize="32" VerticalAlignment="Center" Margin="0,0,15,0"/>
|
||
|
|
<StackPanel Grid.Column="1">
|
||
|
|
<TextBlock Style="{StaticResource LabelStyle}" Text="空闲库位"/>
|
||
|
|
<TextBlock x:Name="TxtFreeLocations" Style="{StaticResource ValueStyle}" Text="0" Foreground="#27AE60"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 维护库位 -->
|
||
|
|
<Border Grid.Row="3" Style="{StaticResource StatCardStyle}" Margin="0,0,0,12">
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<TextBlock Text="🔧" FontSize="32" VerticalAlignment="Center" Margin="0,0,15,0"/>
|
||
|
|
<StackPanel Grid.Column="1">
|
||
|
|
<TextBlock Style="{StaticResource LabelStyle}" Text="维护库位"/>
|
||
|
|
<TextBlock x:Name="TxtMaintenanceLocations" Style="{StaticResource ValueStyle}" Text="0" Foreground="#F39C12"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 使用率进度条 -->
|
||
|
|
<Border Grid.Row="4" Style="{StaticResource StatCardStyle}">
|
||
|
|
<StackPanel>
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<TextBlock Text="📈" FontSize="32" VerticalAlignment="Center" Margin="0,0,15,0"/>
|
||
|
|
<StackPanel Grid.Column="1">
|
||
|
|
<TextBlock Style="{StaticResource LabelStyle}" Text="库位使用率"/>
|
||
|
|
<TextBlock x:Name="TxtUsageRate" Style="{StaticResource ValueStyle}" FontSize="22" Text="0%"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
<ProgressBar x:Name="UsageProgressBar" Height="8" Background="#E9ECF1"
|
||
|
|
Foreground="#3A7CA5" Margin="0,10,0,0" Value="0"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
<!-- 底部按钮 -->
|
||
|
|
<Border Grid.Row="2" Background="White" BorderBrush="#E9ECF1" BorderThickness="0,1,0,0">
|
||
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
|
|
<Button x:Name="BtnRefresh" Style="{StaticResource CloseButtonStyle}" Content="🔄 刷新" Click="BtnRefresh_Click" Margin="0,0,15,0"/>
|
||
|
|
<Button x:Name="BtnCloseBottom" Style="{StaticResource CloseButtonStyle}" Content="关闭" Click="BtnCloseBottom_Click"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
</Window>
|