146 lines
7.7 KiB
Plaintext
146 lines
7.7 KiB
Plaintext
|
|
<Page x:Class="YKC.GatewayPage"
|
||
|
|
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 Margin="0,0,0,14">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<!-- 网关基本信息 -->
|
||
|
|
<Border Grid.Column="0" Background="White" CornerRadius="6"
|
||
|
|
Margin="0,0,8,0" Padding="24">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="网关基本信息" FontSize="14" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,14"/>
|
||
|
|
|
||
|
|
<TextBlock Text="网关 ID" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtGwId" Text="--" Style="{StaticResource InfoValue}"
|
||
|
|
FontFamily="Consolas"/>
|
||
|
|
|
||
|
|
<TextBlock Text="软件版本" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtGwSw" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
|
||
|
|
<TextBlock Text="硬件版本" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtGwHw" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
|
||
|
|
<TextBlock Text="运行时间" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtGwUptime" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
|
||
|
|
<Grid>
|
||
|
|
<Button Content="刷新" Style="{StaticResource BtnPrimary}" Width="80"
|
||
|
|
Click="RefreshGwInfo_Click" Margin="0,4,0,0"/>
|
||
|
|
<TextBlock x:Name="txtGwStatus" FontSize="12"
|
||
|
|
VerticalAlignment="Center" Margin="92,4,0,0"/>
|
||
|
|
</Grid>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 4G 状态 -->
|
||
|
|
<Border Grid.Column="1" Background="White" CornerRadius="6"
|
||
|
|
Margin="8,0,0,0" Padding="24">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="4G 状态" FontSize="14" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,14"/>
|
||
|
|
|
||
|
|
<TextBlock Text="SIM 卡号" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtSim" Text="--" Style="{StaticResource InfoValue}"
|
||
|
|
FontFamily="Consolas"/>
|
||
|
|
|
||
|
|
<TextBlock Text="网络状态" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtNetStatus" Text="--" Style="{StaticResource InfoValue}"
|
||
|
|
Foreground="#10B981"/>
|
||
|
|
|
||
|
|
<TextBlock Text="信号强度" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtSignal" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
|
||
|
|
<TextBlock Text="运营商" Style="{StaticResource InfoLabel}"/>
|
||
|
|
<TextBlock x:Name="txtIsp" Text="--" Style="{StaticResource InfoValue}"/>
|
||
|
|
|
||
|
|
<Grid>
|
||
|
|
<Button Content="刷新" Style="{StaticResource BtnPrimary}" Width="80"
|
||
|
|
Click="Refresh4G_Click" Margin="0,4,0,0"/>
|
||
|
|
<TextBlock x:Name="txt4GStatus" FontSize="12"
|
||
|
|
VerticalAlignment="Center" Margin="92,4,0,0"/>
|
||
|
|
</Grid>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<!-- 云服务器配置 -->
|
||
|
|
<Border Grid.Column="0" Background="White" CornerRadius="6"
|
||
|
|
Margin="0,0,8,0" Padding="24">
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Text="云服务器配置" FontSize="14" FontWeight="SemiBold"
|
||
|
|
Foreground="#1E293B" Margin="0,0,0,14"/>
|
||
|
|
|
||
|
|
<TextBlock Text="服务器地址 (IP 或域名)" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtCloudHost" Width="220"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,12"/>
|
||
|
|
|
||
|
|
<TextBlock Text="端口号" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtCloudPort" Width="120"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,16"/>
|
||
|
|
|
||
|
|
<WrapPanel>
|
||
|
|
<Button Content="查 询" Style="{StaticResource BtnOutline}" Width="80"
|
||
|
|
Click="LoadCloudConfig_Click"/>
|
||
|
|
<Button Content="保 存" Style="{StaticResource BtnPrimary}" Width="80"
|
||
|
|
Click="SaveCloudConfig_Click" Margin="8,0,0,0"/>
|
||
|
|
<TextBlock x:Name="txtCloudResult" 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,14"/>
|
||
|
|
|
||
|
|
<TextBlock Text="IP 地址" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtNetIp" Width="200"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="子网掩码" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtNetMask" Width="200"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="默认网关" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtNetGw" Width="200"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="DNS 服务器" Style="{StaticResource FieldLabel}"/>
|
||
|
|
<TextBox x:Name="txtNetDns" Width="200"
|
||
|
|
Style="{StaticResource FormInput}" Margin="0,0,0,16"/>
|
||
|
|
|
||
|
|
<WrapPanel>
|
||
|
|
<Button Content="查 询" Style="{StaticResource BtnOutline}" Width="80"
|
||
|
|
Click="LoadNetConfig_Click"/>
|
||
|
|
<Button Content="保 存" Style="{StaticResource BtnPrimary}" Width="80"
|
||
|
|
Click="SaveNetConfig_Click" Margin="8,0,0,0"/>
|
||
|
|
<TextBlock x:Name="txtNetResult" Foreground="#10B981"
|
||
|
|
FontSize="13" VerticalAlignment="Center" Margin="12,0,0,0"/>
|
||
|
|
</WrapPanel>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
</StackPanel>
|
||
|
|
</ScrollViewer>
|
||
|
|
</Page>
|