64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
@page "/Test"
|
|
|
|
@using MP.MONO.UI.Data
|
|
|
|
@inject CurrentDataService MMDataService
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="d-flex justify-content-between">
|
|
<div>
|
|
<h3>Test</h3>
|
|
</div>
|
|
<div>
|
|
h prec:
|
|
<input @bind-value="@numHourPrev" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (ListRecords == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped table-responsive-lg small">
|
|
<thead>
|
|
<tr>
|
|
<th>AlarmId</th>
|
|
<th>Description</th>
|
|
<th><div class="float-end"># Events</div></th>
|
|
<th><div class="float-end">%</div></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr>
|
|
<td class="text-nowrap">
|
|
@record.AlarmId
|
|
</td>
|
|
<td> @record.AlarmDescription</td>
|
|
<td>
|
|
<div class="float-end">@record.EventCount</div>
|
|
</td>
|
|
<td>
|
|
<div class="float-end">
|
|
@if (totalEvents != 0)
|
|
{
|
|
<span class="text-success">@($"{(double)record.EventCount/totalEvents:P2}")</span>
|
|
}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|