add:增加文档和上位机

This commit is contained in:
2026-05-21 12:56:29 +08:00
parent 8ee0849831
commit a1d1f19585
95 changed files with 8594 additions and 43 deletions

View File

@@ -0,0 +1,77 @@
<Window x:Class="YKC.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="百瑞充电桩网关管理" Height="956" Width="1365"
MinHeight="640" MinWidth="1060"
WindowStartupLocation="CenterScreen"
Background="#F0F2F5">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="0" GlassFrameThickness="0" ResizeBorderThickness="4"/>
</WindowChrome.WindowChrome>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- 侧边栏 -->
<Border Grid.Column="0" Background="#1E293B">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="48"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#162033"
Padding="18,0" BorderBrush="#2A3A50" BorderThickness="0,0,0,1"
MouseLeftButtonDown="Header_MouseDown">
<TextBlock Text="百瑞充电桩网关" Foreground="White"
FontSize="14" FontWeight="SemiBold" VerticalAlignment="Center"/>
</Border>
<StackPanel Grid.Row="1" Margin="0,4,0,0">
<Button x:Name="btnDashboard" Content="&#x1F4CA; 总览"
Style="{StaticResource NavBtn}" Click="NavButton_Click"
Tag="dashboard"/>
<Button x:Name="btnRealtime" Content="&#x1F4C8; 实时监控"
Style="{StaticResource NavBtn}" Click="NavButton_Click"
Tag="realtime"/>
<Button x:Name="btnCharger" Content="&#x2699; 充电桩管理"
Style="{StaticResource NavBtn}" Click="NavButton_Click"
Tag="charger"/>
<Button x:Name="btnGateway" Content="&#x1F310; 网关管理"
Style="{StaticResource NavBtn}" Click="NavButton_Click"
Tag="gateway"/>
</StackPanel>
</Grid>
</Border>
<!-- 主内容区 -->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="48"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- 顶栏 -->
<Border Grid.Row="0" Background="White" BorderBrush="#E2E8F0" BorderThickness="0,0,0,1"
Padding="16,0">
<Grid>
<TextBlock x:Name="txtPageTitle" Text="总览" FontSize="16"
FontWeight="SemiBold" Foreground="#1E293B" VerticalAlignment="Center"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"
VerticalAlignment="Center">
<TextBlock x:Name="txtUser" Text="Admin" Foreground="#64748B" FontSize="13"
VerticalAlignment="Center" Margin="0,0,10,0"/>
<Button Content="退出登录" Style="{StaticResource BtnOutline}"
Padding="12,5" FontSize="12" Click="Logout_Click"/>
</StackPanel>
</Grid>
</Border>
<!-- 页面 Frame -->
<Frame x:Name="contentFrame" Grid.Row="1" NavigationUIVisibility="Hidden"/>
</Grid>
</Grid>
</Window>