256851a0ce
- fix componenti grafici Bootstrap5 - fix filtro azioni UL
77 lines
3.5 KiB
Plaintext
77 lines
3.5 KiB
Plaintext
@page "/Oee"
|
|
|
|
@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)
|
|
{
|
|
<ChartOEE RawData="SearchRecords"></ChartOEE>
|
|
}
|
|
@if (currRecord != null)
|
|
{
|
|
<DetailOee currRecord="@currRecord"></DetailOee>
|
|
}
|
|
@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>Data</th>
|
|
<th>Turno</th>
|
|
<th>Macchina</th>
|
|
<th>Articolo</th>
|
|
<th class="text-end">Durata</th>
|
|
<th class="text-end">Pezzi</th>
|
|
<th class="text-end">OEE %</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSelect(record.DataRif, record.Turno, @record.IdxMacchina)">
|
|
<td>
|
|
<div>@record.DataRif.ToString("yyyy.MM.dd")</div>
|
|
<div class="small">@record.DataRif.ToString("dddd")</div>
|
|
</td>
|
|
<td>@record.Turno</td>
|
|
<td>
|
|
<div>@record.CodMacchina</div>
|
|
<div class="small">@record.IdxMacchina</div>
|
|
</td>
|
|
<td>
|
|
@record.CodArticolo
|
|
<div class="small">@record.DescArticolo</div>
|
|
</td>
|
|
@*<td class="text-end">@record.TotPeriodo.ToString("N2")</td>*@
|
|
<td class="text-end">
|
|
@MP.Data.Utils.ConvMinToTime((double)record.TotPeriodo)
|
|
<div class="small">@record.TotPeriodo.ToString("N2") <sub>min</sub></div>
|
|
</td>
|
|
<td class="text-end">@record.TotPz</td>
|
|
<td class="text-end">@record.OEE.ToString("P2")</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="card-footer py-1">
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" exportEnabled="true" exportRequested="ExportCsv" fileName="@fileName" totalCount="totalCount" showLoading="isLoading" />
|
|
</div>
|
|
</div> |