@{ ViewData["Title"] = "主页"; var clients = ViewBag.Clients as List; var ipGroups = ViewBag.IpGroups as List; }

AgentService

@if (ipGroups != null) { foreach (var group in ipGroups) { } }
AgentIP AgentPort Key apn band comment 状态 操作
@group.Ip @group.Port @if (group.State == "运行") { 运行 } else if (group.State == "部分运行") { 部分运行 } else { 停止 }

客户端管理

@if (clients != null) { foreach (var client in clients) { var config = client.Config as LTEMvcApp.Models.ClientConfig; var state = (LTEMvcApp.Models.ClientState)client.State; } }
客户端名称 地址 状态 SSL 启用 操作
@client.Config.Name @client.Config.Address @if (state == LTEMvcApp.Models.ClientState.Connected) { 运行 } else if (state == LTEMvcApp.Models.ClientState.Stop) { 未启动 } else { 停止 } @if (config.Ssl) { } else { } @if (config.Enabled) { } else { } 启动 停止 消息 配置 删除
@section Scripts { }