97 lines
5.5 KiB
Plaintext
97 lines
5.5 KiB
Plaintext
|
|
<Page x:Class="YKC.ChargerPage"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
Title="充电桩管理" Background="#F0F2F5">
|
||
|
|
|
||
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||
|
|
<StackPanel Margin="24">
|
||
|
|
<TextBlock Text="充电桩管理" FontSize="16" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,20"/>
|
||
|
|
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<!-- 写入桩ID -->
|
||
|
|
<Border Grid.Column="0" Background="White" CornerRadius="6"
|
||
|
|
Margin="0,0,8,0" Padding="24">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="写入桩 ID" FontSize="14" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,16"/>
|
||
|
|
|
||
|
|
<TextBlock Text="桩编号" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtSetPileIdx" Text="1" Width="80"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,16"/>
|
||
|
|
|
||
|
|
<TextBlock Text="序列号 (HEX, 14位)" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtSetPileId" Width="240" MaxLength="14"
|
||
|
|
Style="{StaticResource FormInput}" FontFamily="Consolas"
|
||
|
|
Margin="0,0,0,16"/>
|
||
|
|
|
||
|
|
<WrapPanel>
|
||
|
|
<Button Content="写 入" Style="{StaticResource BtnPrimary}" Width="90"
|
||
|
|
Click="SetPileId_Click"/>
|
||
|
|
<TextBlock x:Name="txtSetResult" Foreground="#10B981"
|
||
|
|
FontSize="13" VerticalAlignment="Center" Margin="12,0,0,0"/>
|
||
|
|
</WrapPanel>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 查询充电桩 -->
|
||
|
|
<Border Grid.Column="1" Background="White" CornerRadius="6"
|
||
|
|
Margin="8,0,0,0" Padding="24">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="查询充电桩信息" FontSize="14" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,16"/>
|
||
|
|
|
||
|
|
<TextBlock Text="桩编号" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<WrapPanel Margin="0,0,0,14">
|
||
|
|
<TextBox x:Name="txtInfoPileIdx" Text="1" Width="80"
|
||
|
|
Style="{StaticResource FormInput}"/>
|
||
|
|
<Button Content="查 询" Style="{StaticResource BtnOutline}" Width="80"
|
||
|
|
Margin="10,0,0,0" Click="GetPileInfo_Click"/>
|
||
|
|
<TextBlock x:Name="txtInfoResult" VerticalAlignment="Center"
|
||
|
|
FontSize="13" Margin="10,0,0,0"/>
|
||
|
|
</WrapPanel>
|
||
|
|
|
||
|
|
<!-- 查询结果 -->
|
||
|
|
<Border x:Name="panelInfo" Background="#F8FAFC"
|
||
|
|
CornerRadius="4" Padding="14" Visibility="Collapsed">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="序列号" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtInfoSerial" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
<TextBlock Text="类型" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtInfoType" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
<TextBlock Text="枪数量" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtInfoGuns" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
<TextBlock Text="协议版本" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtInfoProto" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
<TextBlock Text="软件版本" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtInfoSw" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
<TextBlock Text="SIM 卡" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtInfoSim" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
<!-- 设备操作 -->
|
||
|
|
<Border Background="White" CornerRadius="6" Padding="24" Margin="0,14,0,0">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="设备操作" FontSize="14" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,14"/>
|
||
|
|
<WrapPanel>
|
||
|
|
<Button Content="重启设备" Style="{StaticResource BtnDanger}" Width="110"
|
||
|
|
Click="Reboot_Click"/>
|
||
|
|
<TextBlock x:Name="txtRebootResult" Foreground="#10B981"
|
||
|
|
FontSize="13" VerticalAlignment="Center" Margin="12,0,0,0"/>
|
||
|
|
</WrapPanel>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
</ScrollViewer>
|
||
|
|
</Page>
|