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.
40 lines
1.2 KiB
40 lines
1.2 KiB
@model SearchDataHistoryModel
|
|
@{
|
|
var start = (Model.PageIndex - 1) * Model.PageSize;
|
|
}
|
|
@Html.EditorForModel("Search")
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<table class="table table-striped projects">
|
|
<tbody>
|
|
<tr>
|
|
<th>行号</th>
|
|
<th>设备编号</th>
|
|
<th>设备名称</th>
|
|
<th>数据名称</th>
|
|
<th>数据值</th>
|
|
<th>单位</th>
|
|
<th>时间</th>
|
|
</tr>
|
|
@foreach (var item in Model.List)
|
|
{
|
|
<tr>
|
|
<td>@(++start)</td>
|
|
<td>@item.DeviceNumber</td>
|
|
<td>@item.DeviceName</td>
|
|
<td>@item.Name</td>
|
|
<td>@item.Value</td>
|
|
<td>@item.Unit</td>
|
|
<td>@item.Date</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@if (Model.PageCount() > 1)
|
|
{
|
|
<div class="card-footer clearfix">
|
|
@(await Html.PartialAsync("_Paged"))
|
|
</div>
|
|
}
|
|
</div> |