50d65eebaa
- renaming classi gestione DbModels in - spostamento anagrafica flussi da auth a generale
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
@using MP.Stats.Data
|
|
@inject NavigationManager NavManager
|
|
@inject MessageService MessageService
|
|
|
|
<div class="row">
|
|
<div class="col-3">
|
|
GRAFICO
|
|
</div>
|
|
<div class="col-3">
|
|
<i class="fas fa-angle-double-right fa-4x"></i>
|
|
</div>
|
|
<div class="col-6">
|
|
<JumpDetail DetailFilterSel="@CurrFilter"></JumpDetail>
|
|
</div>
|
|
</div>
|
|
|
|
@code{
|
|
|
|
protected MP.Data.DbModels.TurniOee _currRecord = new MP.Data.DbModels.TurniOee();
|
|
|
|
[Parameter]
|
|
public MP.Data.DbModels.TurniOee currRecord
|
|
{
|
|
get
|
|
{
|
|
return _currRecord;
|
|
}
|
|
set
|
|
{
|
|
_currRecord = value;
|
|
}
|
|
}
|
|
|
|
public SelectData CurrFilter { get; set; }
|
|
|
|
protected override Task OnInitializedAsync()
|
|
{
|
|
int oraStart = 0;
|
|
switch (currRecord.Turno)
|
|
{
|
|
case "T1":
|
|
oraStart = 6;
|
|
break;
|
|
case "T2":
|
|
oraStart = 14;
|
|
break;
|
|
case "T3":
|
|
oraStart = 22;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
CurrFilter = new SelectData()
|
|
{
|
|
IdxMacchina = currRecord.IdxMacchina,
|
|
CodArticolo = currRecord.CodArticolo,
|
|
DateStart = currRecord.DataRif.AddHours(oraStart),
|
|
DateEnd = currRecord.DataRif.AddHours(oraStart + 8)
|
|
};
|
|
|
|
return base.OnInitializedAsync();
|
|
}
|
|
|
|
} |