You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

@model List<Device>
@{
ViewBag.HideBread = true;
}
<div class="box">
<a class="btn btn-primary cmd" href="/Gateway/Refresh">查询所有网关</a>
</div>
<div class="box">
<table class="table table-bordered">
<tr>
<th>编号</th>
<th>Ip地址</th>
<th>启用</th>
<th>用户名</th>
<th>密码</th>
<th>查询网关设备</th>
<th>查看</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>@item.Number</td>
<td>@item.Ip</td>
<td>@Html.DisplayFor(o => item.Enable)</td>
<td>@item.UserName</td>
<td>@item.Password</td>
<td><a class="btn btn-primary cmd" href="/Gateway/X9d?gateway=@item.Number">查询网关信息</a></td>
<td><a class="btn btn-primary cmd" href="/Gateway/X81?gateway=@item.Number">查询网关设备</a></td>
<td><a href="/Home/Gateway?sn=@item.Number">查看设备</a></td>
</tr>
}
</table>
</div>