69 lines
2.7 KiB
Plaintext
69 lines
2.7 KiB
Plaintext
@using MP.SPEC.Components
|
|
@using MP.SPEC.Data
|
|
|
|
@if (ListRecords == 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>
|
|
@*<button @onclick="() => resetSel()" class="btn btn-primary btn-sm"><i class="bi bi-arrow-counterclockwise"></i></button>*@
|
|
</th>
|
|
<th><i class="fa-solid fa-file"></i> Articolo</th>
|
|
<th><i class="fa-solid fa-hard-drive"></i> Macchina</th>
|
|
<th># pz</th>
|
|
<th><i class="fa-solid fa-clock"></i> T.Ciclo</th>
|
|
<th><i class="fa-solid fa-play"></i> Inizio</th>
|
|
<th><i class="fa-solid fa-pen-to-square"></i> Note</th>
|
|
<th><i class="fa-solid fa-code-pull-request"></i> Richiesta</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSelect(@record.CodArticolo)">
|
|
<td>
|
|
@*<button @onclick="() => selRecord(record)" class="btn btn-primary btn-sm"><i class="bi bi-pencil-square"></i></button>*@
|
|
</td>
|
|
<td>
|
|
@record.CodArticolo
|
|
</td>
|
|
<td>
|
|
@record.IdxMacchina
|
|
</td>
|
|
<td>
|
|
@record.NumPezzi
|
|
</td>
|
|
<td>
|
|
@record.Tcassegnato.ToString("N3")
|
|
</td>
|
|
<td>
|
|
<div>@record.DataInizio</div>
|
|
</td>
|
|
<td>@record.Note</td>
|
|
<td>@record.KeyRichiesta</td>
|
|
<td>
|
|
@*@if (ArticoloDelEnabled(record.CodArticolo))
|
|
{
|
|
<button @onclick="() => deleteRecord(record)" class="btn btn-danger btn-sm"><i class="bi bi-trash-fill"></i></button>
|
|
}*@
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|