mirror of https://gitee.com/IoTSharp/Gateways.git
添加管理页面
parent
7c8195f8f1
commit
7bd515ff8e
@ -0,0 +1,69 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.PointMapAdmin.CreateModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h1>Create</h1>
|
||||
|
||||
<h4>PointMapping</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form method="post">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DataName" class="control-label"></label>
|
||||
<input asp-for="PointMapping.DataName" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.DataName" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DataType" class="control-label"></label>
|
||||
<select asp-for="PointMapping.DataType" class="form-control"></select>
|
||||
<span asp-validation-for="PointMapping.DataType" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DataCatalog" class="control-label"></label>
|
||||
<select asp-for="PointMapping.DataCatalog" class="form-control"></select>
|
||||
<span asp-validation-for="PointMapping.DataCatalog" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.FunCode" class="control-label"></label>
|
||||
<select asp-for="PointMapping.FunCode" class="form-control"></select>
|
||||
<span asp-validation-for="PointMapping.FunCode" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.Address" class="control-label"></label>
|
||||
<input asp-for="PointMapping.Address" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.Address" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.Length" class="control-label"></label>
|
||||
<input asp-for="PointMapping.Length" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.Length" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DateTimeFormat" class="control-label"></label>
|
||||
<input asp-for="PointMapping.DateTimeFormat" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.DateTimeFormat" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.CodePage" class="control-label"></label>
|
||||
<input asp-for="PointMapping.CodePage" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.CodePage" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-page="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.PointMapAdmin.DeleteModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h1>Delete</h1>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>PointMapping</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DataName)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DataName)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DataType)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DataType)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DataCatalog)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DataCatalog)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.FunCode)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.FunCode)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.Address)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.Address)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.Length)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.Length)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DateTimeFormat)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DateTimeFormat)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.CodePage)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.CodePage)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" asp-for="PointMapping.Id" />
|
||||
<input type="submit" value="Delete" class="btn btn-danger" /> |
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,67 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.PointMapAdmin.DetailsModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h1>Details</h1>
|
||||
|
||||
<div>
|
||||
<h4>PointMapping</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DataName)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DataName)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DataType)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DataType)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DataCatalog)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DataCatalog)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.FunCode)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.FunCode)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.Address)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.Address)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.Length)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.Length)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.DateTimeFormat)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.DateTimeFormat)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.PointMapping.CodePage)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.PointMapping.CodePage)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
<a asp-page="./Edit" asp-route-id="@Model.PointMapping?.Id">Edit</a> |
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</div>
|
@ -0,0 +1,70 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.PointMapAdmin.EditModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h1>Edit</h1>
|
||||
|
||||
<h4>PointMapping</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form method="post">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="PointMapping.Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DataName" class="control-label"></label>
|
||||
<input asp-for="PointMapping.DataName" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.DataName" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DataType" class="control-label"></label>
|
||||
<select asp-for="PointMapping.DataType" class="form-control"></select>
|
||||
<span asp-validation-for="PointMapping.DataType" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DataCatalog" class="control-label"></label>
|
||||
<select asp-for="PointMapping.DataCatalog" class="form-control"></select>
|
||||
<span asp-validation-for="PointMapping.DataCatalog" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.FunCode" class="control-label"></label>
|
||||
<select asp-for="PointMapping.FunCode" class="form-control"></select>
|
||||
<span asp-validation-for="PointMapping.FunCode" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.Address" class="control-label"></label>
|
||||
<input asp-for="PointMapping.Address" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.Address" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.Length" class="control-label"></label>
|
||||
<input asp-for="PointMapping.Length" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.Length" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.DateTimeFormat" class="control-label"></label>
|
||||
<input asp-for="PointMapping.DateTimeFormat" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.DateTimeFormat" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PointMapping.CodePage" class="control-label"></label>
|
||||
<input asp-for="PointMapping.CodePage" class="form-control" />
|
||||
<span asp-validation-for="PointMapping.CodePage" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.PointMapAdmin.IndexModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h1>Index</h1>
|
||||
|
||||
<p>
|
||||
<a asp-page="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].DataName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].DataType)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].DataCatalog)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].FunCode)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].Address)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].Length)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].DateTimeFormat)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.PointMapping[0].CodePage)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.PointMapping) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DataName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DataType)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DataCatalog)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FunCode)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Address)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Length)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateTimeFormat)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CodePage)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-page="./Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-page="./Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-page="./Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
@ -0,0 +1,49 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.SlaveAdmin.CreateModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h1>Create</h1>
|
||||
|
||||
<h4>ModbusSlave</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form method="post">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.Slave" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.Slave" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.Slave" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.TimeOut" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.TimeOut" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.TimeOut" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.DeviceName" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.DeviceName" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.DeviceName" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.DeviceNameFormat" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.DeviceNameFormat" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.DeviceNameFormat" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-page="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.SlaveAdmin.DeleteModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h1>Delete</h1>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>ModbusSlave</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.Slave)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.Slave)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.TimeOut)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.TimeOut)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.DeviceName)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.DeviceName)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.DeviceNameFormat)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.DeviceNameFormat)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" asp-for="ModbusSlave.Id" />
|
||||
<input type="submit" value="Delete" class="btn btn-danger" /> |
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,43 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.SlaveAdmin.DetailsModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h1>Details</h1>
|
||||
|
||||
<div>
|
||||
<h4>ModbusSlave</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.Slave)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.Slave)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.TimeOut)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.TimeOut)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.DeviceName)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.DeviceName)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave.DeviceNameFormat)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModbusSlave.DeviceNameFormat)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
<a asp-page="./Edit" asp-route-id="@Model.ModbusSlave?.Id">Edit</a> |
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</div>
|
@ -0,0 +1,50 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.SlaveAdmin.EditModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h1>Edit</h1>
|
||||
|
||||
<h4>ModbusSlave</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form method="post">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="ModbusSlave.Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.Slave" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.Slave" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.Slave" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.TimeOut" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.TimeOut" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.TimeOut" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.DeviceName" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.DeviceName" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.DeviceName" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModbusSlave.DeviceNameFormat" class="control-label"></label>
|
||||
<input asp-for="ModbusSlave.DeviceNameFormat" class="form-control" />
|
||||
<span asp-validation-for="ModbusSlave.DeviceNameFormat" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
@page
|
||||
@model IoTSharp.Gateway.Modbus.Pages.SlaveAdmin.IndexModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h1>Index</h1>
|
||||
|
||||
<p>
|
||||
<a asp-page="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave[0].Slave)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave[0].TimeOut)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave[0].DeviceName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModbusSlave[0].DeviceNameFormat)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.ModbusSlave) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Slave)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.TimeOut)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DeviceName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DeviceNameFormat)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-page="./Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-page="./Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-page="./Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
Loading…
Reference in New Issue