86 lines
4.0 KiB
Plaintext
86 lines
4.0 KiB
Plaintext
@page "/repa-stop"
|
|
|
|
<div class="card mb-5">
|
|
<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-3 mb-0">Fermi Reparto</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 (isLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="col-6">
|
|
@if (ListRecords != null)
|
|
{
|
|
<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>
|
|
</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.Descrizione</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 class="col-6">Elenco Fermate</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
|