57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
<div class="row">
|
|
<div class="col-12">
|
|
@if (ListRecordsDur == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Description</th>
|
|
<th>Total Duration <sub>(min)</sub></th>
|
|
<th>% Duration</th>
|
|
<th class="w-50">Chart</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListRecordsDur)
|
|
{
|
|
|
|
<tr>
|
|
<td>
|
|
<div>@item.AlarmDescription</div>
|
|
</td>
|
|
<td>
|
|
<div>@Math.Round(item.Duration,2)</div>
|
|
</td>
|
|
<td>
|
|
<div>
|
|
@if (totalVar != 0)
|
|
{
|
|
<span class="text-success">@calcPercDur((double)item.Duration)</span>
|
|
}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="progress">
|
|
<div class="progress-bar @styleColourPBarDur((double)item.Duration/totalVar)" role="progressbar" style="@valDur((double)item.Duration)" aria-valuemin="0" aria-valuemax="100">@Math.Round(item.Duration,2)</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|