2019-11-23 19:24:03 +00:00
|
|
|
@model UploadedReportDetails
|
2019-11-07 22:43:37 +00:00
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
ViewData["Title"] = "Details";
|
|
|
|
|
}
|
|
|
|
|
<h1>Details</h1>
|
|
|
|
|
<div>
|
2019-11-23 19:24:03 +00:00
|
|
|
<h4>Uploaded report</h4>
|
2019-11-07 22:43:37 +00:00
|
|
|
<hr />
|
|
|
|
|
<dl class="row">
|
|
|
|
|
<dt class="col-sm-2">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayNameFor(model => model.Report.UploadedWhen)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dt>
|
|
|
|
|
<dd class="col-sm-10">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayFor(model => model.Report.UploadedWhen)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dd>
|
|
|
|
|
<dt class="col-sm-2">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayNameFor(model => model.Report.Manufacturer)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dt>
|
|
|
|
|
<dd class="col-sm-10">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayFor(model => model.Report.Manufacturer)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dd>
|
|
|
|
|
<dt class="col-sm-2">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayNameFor(model => model.Report.Model)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dt>
|
|
|
|
|
<dd class="col-sm-10">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayFor(model => model.Report.Model)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dd>
|
|
|
|
|
<dt class="col-sm-2">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayNameFor(model => model.Report.Revision)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dt>
|
|
|
|
|
<dd class="col-sm-10">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayFor(model => model.Report.Revision)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dd>
|
|
|
|
|
<dt class="col-sm-2">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayNameFor(model => model.Report.CompactFlash)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dt>
|
|
|
|
|
<dd class="col-sm-10">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayFor(model => model.Report.CompactFlash)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dd>
|
|
|
|
|
<dt class="col-sm-2">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayNameFor(model => model.Report.Type)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dt>
|
|
|
|
|
<dd class="col-sm-10">
|
2019-11-23 19:24:03 +00:00
|
|
|
@Html.DisplayFor(model => model.Report.Type)
|
2019-11-07 22:43:37 +00:00
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2019-11-23 19:24:03 +00:00
|
|
|
<a asp-action="Edit" asp-route-id="@Model.Report.Id" class="btn btn-primary">Edit</a>
|
|
|
|
|
<a asp-action="Promote" asp-route-id="@Model.Report.Id" class="btn btn-secondary">Promote</a>
|
2019-11-08 20:30:13 +00:00
|
|
|
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
2019-11-23 19:24:03 +00:00
|
|
|
</div>
|
|
|
|
|
@if (Model.SameAll.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
<div>
|
|
|
|
|
<h4>Other uploaded reports with same manufacturer, model and revision:</h4>
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
Id
|
|
|
|
|
</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach (var item in Model.SameAll)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@item
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
|
|
|
<a asp-action="Merge" asp-route-slave="@item" asp-route-master="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (Model.SameButManufacturer.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
<div>
|
|
|
|
|
<h4>Other uploaded reports with same model and revision:</h4>
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
Id
|
|
|
|
|
</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach (var item in Model.SameButManufacturer)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@item
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
|
|
|
<a asp-action="Merge" asp-route-slave="@item" asp-route-master="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (Model.ReportAll.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
<div>
|
|
|
|
|
<h4>Device reports with same manufacturer, model and revision:</h4>
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
Id
|
|
|
|
|
</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach (var item in Model.ReportAll)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@item
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a asp-controller="Devices" asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
|
|
|
<a asp-controller="Devices" asp-action="MergeReports" asp-route-deviceId="@item" asp-route-reportId="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (Model.ReportButManufacturer.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
<div>
|
|
|
|
|
<h4>Device reports with same model and revision:</h4>
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
Id
|
|
|
|
|
</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach (var item in Model.ReportButManufacturer)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@item
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a asp-controller="Devices" asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
|
|
|
<a asp-controller="Devices" asp-action="MergeReports" asp-route-deviceId="@item" asp-route-reportId="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
}
|