Files
2025-07-24 17:34:11 +02:00

77 lines
3.8 KiB
Plaintext

<div class="mt-2">
<EgwCoreLib.Razor.PeriodoSel CurrPeriodo="CurrPeriodo" E_PeriodoSel="SetPeriodo"></EgwCoreLib.Razor.PeriodoSel>
</div>
<ShowProcessing Message="Invio in corso" IsProcessing="@isSending"></ShowProcessing>
@if (isProcessing)
{
<EgwCoreLib.Razor.LoadingData></EgwCoreLib.Razor.LoadingData>
}
else
{
<div class="cardObj p-2 mt-2 mb-2">
<table class="table table-dark table-sm table-striped">
<thead>
<tr class="text-start1">
<th>
Elenco Allarmi
</th>
</tr>
</thead>
<tbody>
@foreach (var item in ListPaged)
{
<tr>
<td>
<div class="row">
<div class="col-6 col-md-8 small">
<div>
Mem: <b>@($"{item.MemAddress}.{@item.MemIndex}")</b>
</div>
<div class="text-danger">
<b>@item.ValDecoded</b>
</div>
</div>
<div class="col-6 col-md-4 text-end small">
<div class="d-flex flex-row-reverse">
<div class="px-1">
<div class="text-truncate">
@($"{item.DtRif:ddd dd.MM.yy HH:mm:ss}") <i class="fa fa-clock-o" aria-hidden="true"></i>
</div>
<div class="text-truncate">
@($"{item.Duration:N2} min") <i class="fa fa-hourglass-end" aria-hidden="true"></i>
</div>
</div>
<div class="px-1">
@if (!string.IsNullOrEmpty(item.UserAck))
{
<b>@item.UserAck</b> <i class="fa fa-user" aria-hidden="true"></i>
}
</div>
<div class="px-1">
@if (item.ReqNotify != 0 || item.Duration > alarmMinDuration)
{
<button class="btn btn-sm btn-primary py-0" @onclick="() => SendNotify(item)">Invia&nbsp;<i class="fa fa-envelope" aria-hidden="true"></i></button>
}
@if (item.ReqAck != 0)
{
<button class="btn btn-sm btn-warning py-0" @onclick="() => DoAck(item)">Set <i class="fa fa-exclamation-triangle" aria-hidden="true"></i></button>
}
</div>
</div>
</div>
</div>
</td>
</tr>
}
</tbody>
<tfoot>
<tr>
<td>
<EgwCoreLib.Razor.DataPager currPage="@PageNum" PageSize="@NumRecPage" totalCount="@TotalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
</td>
</tr>
</tfoot>
</table>
</div>
}