79 lines
3.5 KiB
Plaintext
79 lines
3.5 KiB
Plaintext
|
|
|
|
<div class="card mb-5 shadow">
|
|
<div class="card-header table-primary">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="px-0">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="px-2">
|
|
<span class="fs-5 mb-0">Stato Impianti Corrente</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@* <div class="px-0 align-content-center d-flex justify-content-end">
|
|
<small class="fs-5">Edit Massivo Fermi</small>
|
|
</div> *@
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (ListRecords == null || ListRecords.Count == 0)
|
|
{
|
|
<div class="alert alert-warning fs-3">Nessun Record Trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped small">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@if (AllSelected)
|
|
{
|
|
<button class="btn btn-outline-dark border-0 py-0" @onclick="() => ToggleAllSel()"><i class="fa-solid fa-toggle-on"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-outline-secondary border-0 py-0" @onclick="() => ToggleAllSel()"><i class="fa-solid fa-toggle-off"></i></button>
|
|
}
|
|
@if (numSel > 0)
|
|
{
|
|
<span class="fw-bold">(@numSel)</span>
|
|
}
|
|
</th>
|
|
<th><i class="fa-solid fa-thumbtack"></i> Cod</th>
|
|
<th><i class="fa-solid fa-industry"></i> Macchina</th>
|
|
<th>Stato</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@CheckSelect(record)">
|
|
<td>
|
|
@if (CurrList.Contains(record.CodMacchina))
|
|
{
|
|
<button class="btn btn-outline-primary border-0 py-0" @onclick="() => ToggleSel(record.CodMacchina)"><i class="fa-solid fa-toggle-on"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-outline-dark border-0 py-0" @onclick="() => ToggleSel(record.CodMacchina)"><i class="fa-solid fa-toggle-off"></i></button>
|
|
}
|
|
</td>
|
|
<td>@record.CodMacchina</td>
|
|
<td>@record.Nome</td>
|
|
<td>
|
|
<span class="rounded bg-opacity-75 p-1 @cssClassBorder(record.Semaforo)">@record.DescrizioneStato</span>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3">
|
|
<DataPager PageSize="@numRecord" currPage="@currPage" numRecordChanged="SetNumRec" numPageChanged="SetPage" totalCount="@totalCount" showLoading="@isLoading" />
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
}
|
|
</div>
|
|
</div> |