256851a0ce
- fix componenti grafici Bootstrap5 - fix filtro azioni UL
71 lines
3.3 KiB
Plaintext
71 lines
3.3 KiB
Plaintext
@page "/Diario"
|
|
|
|
@using MP.Stats.Components
|
|
|
|
<div class="card">
|
|
<div class="card-header table-primary p-1">
|
|
<SelectionFilter SelFilter="currFilter" filterChanged="DoFilter" filterReset="ResetFilter"></SelectionFilter>
|
|
</div>
|
|
<div class="card-body py-0 px-1">
|
|
@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>Macchina</th>
|
|
<th>Data</th>
|
|
<th>Commessa/ODL</th>
|
|
<th>Articolo</th>
|
|
<th class="text-end">Stato</th>
|
|
<th class="text-end">Durata</th>
|
|
<th class="text-end">Pezzi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSelect(@record.IdxMacchina, record.CodArticolo, record.InizioStato)">
|
|
<td>
|
|
<div>@record.CodMacchina</div>
|
|
<div class="small">@record.IdxMacchina</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.InizioPeriodo.ToString("yyyy.MM.dd")</div>
|
|
<div class="small">@record.InizioPeriodo.ToString("ddd HH:mm.ss")</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.KeyRichiesta</div>
|
|
<div class="small">@record.IdxOdl</div>
|
|
</td>
|
|
<td>
|
|
@record.CodArticolo
|
|
<div class="small">@record.DescArticolo</div>
|
|
</td>
|
|
<td class="text-end">@record.Descrizione</td>
|
|
<td class="text-end">
|
|
@MP.Data.Utils.ConvMsecToTime((long)record.DurataPeriodo)
|
|
<div class="small">@(((double)record.DurataPeriodo/60000).ToString("N2")) <sub>min</sub></div>
|
|
</td>
|
|
<td class="text-end">@record.TotPzProd</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="card-footer py-1">
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="totalCount" showLoading="isLoading" exportEnabled="true" exportRequested="ExportCsv" fileName="@fileName" />
|
|
</div>
|
|
</div> |