Files
mapo-core/MP.Stats/Pages/ReportODL.razor
T
2021-05-20 19:07:52 +02:00

67 lines
2.8 KiB
Plaintext

@page "/reportodl"
@using MP.Stats.Components
<div class="card">
<div class="card-header table-primary">
<div class="row">
<div class="col-6 col-lg-3 h2">Report ODL/Comm.</div>
<div class="col-6 col-lg-9">
</div>
</div>
</div>
<div class="card-body py-0">
<div class="row">
<div class="col-12 table-secondary">
<SelectionFilter SelFilter="currFilter" filterChanged="DoFilter"></SelectionFilter>
</div>
</div>
@if (totalCount == 0 || ListRecords == null || ListRecords.Count() == 0)
{
<LoadingData></LoadingData>
}
else
{
<div class="row">
<div class="col-12">
<table class="table table-sm table-striped">
<thead>
<tr>
<th>Macchina</th>
<th>ODL/Commessa</th>
<th>Articolo</th>
<th>Inizio</th>
<th>Fine</th>
<th class="text-right">Pezzi Rich</th>
<th class="text-right">Pezzi Evasi</th>
<th class="text-right">Pezzi Scarti</th>
<th class="text-right">Pezzi Rilav</th>
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
{
<tr class="@checkSelect(@record.IdxOdl)">
<td>
@record.IdxMacchina
</td>
<td>@record.IdxOdl | @record.KeyRichiesta</td>
<td>@record.CodArticolo</td>
<td>@record.DataInizio</td>
<td>@record.DataFine</td>
<td class="text-right">@record.NumPezzi</td>
<td class="text-right">@record.NumPezziEv</td>
<td class="text-right">@record.NumPezziRil</td>
<td class="text-right">@record.NumPezziSca</td>
</tr>
}
</tbody>
</table>
</div>
</div>
}
</div>
<div class="card-footer py-1">
<DataPager PageSize="@numRecord" currPage="@currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="@totalCount" />
</div>
</div>