70 lines
3.0 KiB
Plaintext
70 lines
3.0 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><i class="fa-solid fa-file"></i> Articolo</th>
|
|
<th><i class="fa-solid fa-screwdriver-wrench"></i> Fase</th>
|
|
<th><i class="fa-solid fa-hard-drive"></i> Macchina</th>
|
|
<th><i class="fa-solid fa-calendar-day"></i> Data inizio ciclo</th>
|
|
<th><i class="fa-solid fa-circle-info"></i> Info ciclo</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>
|
|
@record.CodArticolo
|
|
<div class="small textConsensed text-secondary">@record.ArticoloNav.DescArticolo</div>
|
|
</td>
|
|
<td>@tradFase(record.KeyRichiesta)</td>
|
|
<td>
|
|
@record.IdxMacchina
|
|
<div class="small textConsensed text-secondary">@record.MachineNav.Descrizione</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.DataInizio</div>
|
|
|
|
</td>
|
|
<td>
|
|
<div class="small textConsensed"><b>N° pezzi:</b> @record.NumPezzi</div>
|
|
<div class="small textConsensed"><b>T. Ciclo:</b> @record.Tcassegnato.ToString("N3")</div>
|
|
@if (record.Note != "")
|
|
{
|
|
<div class="small textConsensed text-secondary"><b class="text-warning">Note:</b> @record.Note</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>
|
|
}
|