61 lines
2.4 KiB
Plaintext
61 lines
2.4 KiB
Plaintext
@page "/controlli"
|
|
@*@page "/controlli/{IdxMacchina}"*@
|
|
|
|
@using MP.Stats.Components
|
|
|
|
<div class="card">
|
|
<div class="card-header table-primary p-1">
|
|
<SelectionFilter SelFilter="currFilter" filterChanged="DoFilter" filterReset="ResetFilter" chartVisible="ShowCharts" chartsToggle="ToggleChart" ChartEnabled="true"></SelectionFilter>
|
|
</div>
|
|
<div class="card-body py-0 px-1">
|
|
@if (ShowCharts == true)
|
|
{
|
|
<ChartControlli RawData="SearchRecords"></ChartControlli>
|
|
}
|
|
@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>ODL/Commessa</th>
|
|
<th>Articolo</th>
|
|
<th>Esito</th>
|
|
<th>Note</th>
|
|
<th>Operatore</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSelect(@record.IdxControllo)">
|
|
<td>@record.IdxMacchina</td>
|
|
<td>@record.DataOra</td>
|
|
<td>@record.IdxOdl</td>
|
|
<td>@record.CodArticolo</td>
|
|
<td>@record.EsitoOk</td>
|
|
<td>@record.Note</td>
|
|
<td>@record.MatrOpr</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" />
|
|
</div>
|
|
</div> |