100 lines
2.7 KiB
Plaintext
100 lines
2.7 KiB
Plaintext
@using MP.Stats.Data
|
|
@inject NavigationManager NavManager
|
|
@inject MessageService MessageService
|
|
|
|
<div class="row">
|
|
<div class="col-3">
|
|
GRAFICO
|
|
</div>
|
|
<div class="col-1">
|
|
<i class="fas fa-angle-double-right fa-4x"></i>
|
|
</div>
|
|
<div class="col-2">
|
|
<button class="btn btn-block btn-primary" @onclick="() => ShowDDB()" title="Vai al Diario Produzione"><span class="oi oi-clipboard"></span> Diario Produzione</button>
|
|
</div>
|
|
<div class="col-2">
|
|
<button class="btn btn-block btn-info" @onclick="() => ShowUAL()" title="Vai all'User ActionLog"><span class="oi oi-document"></span> User ActionLog</button>
|
|
</div>
|
|
<div class="col-2">
|
|
<button class="btn btn-block btn-success" @onclick="() => ShowCont()" title="Vai al Registro Controlli"><span class="oi oi-beaker"></span> Registro Controlli</button>
|
|
</div>
|
|
<div class="col-2">
|
|
<button class="btn btn-block btn-warning" @onclick="() => ShowScar()" title="Vai al Registro Scarti"><span class="oi oi-warning"></span> Registro Scarti</button>
|
|
</div>
|
|
</div>
|
|
|
|
@code{
|
|
|
|
protected MP.Data.DatabaseModels.TurniOee _currRecord = new MP.Data.DatabaseModels.TurniOee();
|
|
|
|
[Parameter]
|
|
public MP.Data.DatabaseModels.TurniOee currRecord
|
|
{
|
|
get
|
|
{
|
|
return _currRecord;
|
|
}
|
|
set
|
|
{
|
|
_currRecord = value;
|
|
}
|
|
}
|
|
|
|
[Parameter]
|
|
public SelectData CurrFilter { get; set; }
|
|
|
|
protected void ShowCont()
|
|
{
|
|
SetFilter();
|
|
// rimando...
|
|
NavManager.NavigateTo($"controlli");
|
|
}
|
|
|
|
protected void ShowDDB()
|
|
{
|
|
SetFilter();
|
|
// rimando...
|
|
NavManager.NavigateTo($"diario");
|
|
}
|
|
|
|
protected void ShowScar()
|
|
{
|
|
SetFilter();
|
|
// rimando...
|
|
NavManager.NavigateTo($"scarti");
|
|
}
|
|
|
|
protected void ShowUAL()
|
|
{
|
|
SetFilter();
|
|
// rimando...
|
|
NavManager.NavigateTo($"userlog");
|
|
}
|
|
|
|
protected void SetFilter()
|
|
{
|
|
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)
|
|
};
|
|
MessageService.DetailFilter = CurrFilter;
|
|
}
|
|
} |