88 lines
4.3 KiB
Plaintext
88 lines
4.3 KiB
Plaintext
@page "/Energy"
|
|
|
|
@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>Commessa/ODL</th>
|
|
<th>Articolo</th>
|
|
<th>Inizio</th>
|
|
<th>Fine</th>
|
|
<th class="text-right">Unit</th>
|
|
<th class="text-right">Energy</th>
|
|
<th class="text-right">Gas</th>
|
|
<th class="text-right">P1</th>
|
|
<th class="text-right">P2</th>
|
|
<th class="text-right">P3</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSelect(@record.IdxOdl)">
|
|
<td>@record.IdxMacchina</td>
|
|
<td>
|
|
<div>@record.KeyRichiesta</div>
|
|
<div class="small">@record.IdxOdl</div>
|
|
</td>
|
|
<td>
|
|
@record.CodArticolo
|
|
<div class="small">@record.DescArticolo</div>
|
|
</td>
|
|
<td>@record.DataInizio</td>
|
|
<td>@record.DataFine</td>
|
|
<td class="text-right">@(record.NumPezziEv + 200) m</td>
|
|
<td class="text-right">
|
|
@{
|
|
double currSim = simVal(record.NumPezzi, record.NumPezziEv + 200);
|
|
double currSimGas = simVal(record.NumPezzi, record.NumPezziEv + 200);
|
|
}
|
|
<div>
|
|
@currSim.ToString("N2") kWh
|
|
</div>
|
|
<small>
|
|
@righDiv(currSim, record.NumPezziEv + 200).ToString("N1") kWh/m
|
|
</small>
|
|
</td>
|
|
<td class="text-right">
|
|
<div>
|
|
@currSim.ToString("N2") m<sup>3</sup>
|
|
</div>
|
|
<small>
|
|
@righDiv(currSim, record.NumPezziEv + 200).ToString("N1") m<sup>3</sup>/m
|
|
</small>
|
|
</td>
|
|
<td class="text-right">@($"{currSim:N1}")</td>
|
|
<td class="text-right">@($"{currSimGas:N1}")</td>
|
|
<td class="text-right">@($"{currSim + currSimGas:N1}")</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> |