bozza gestione detail/jump oee
This commit is contained in:
@@ -6,20 +6,11 @@
|
||||
<div class="col-3">
|
||||
GRAFICO
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<div class="col-3">
|
||||
<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 class="col-6">
|
||||
<JumpDetail DetailFilterSel="@CurrFilter"></JumpDetail>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,38 +31,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
[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()
|
||||
protected override Task OnInitializedAsync()
|
||||
{
|
||||
int oraStart = 0;
|
||||
switch (currRecord.Turno)
|
||||
@@ -95,6 +57,8 @@
|
||||
DateStart = currRecord.DataRif.AddHours(oraStart),
|
||||
DateEnd = currRecord.DataRif.AddHours(oraStart + 8)
|
||||
};
|
||||
MessageService.DetailFilter = CurrFilter;
|
||||
|
||||
return base.OnInitializedAsync();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
@using MP.Stats.Data
|
||||
@inject NavigationManager NavManager
|
||||
@inject MessageService MessageService
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<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">
|
||||
<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>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<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">
|
||||
<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{
|
||||
[Parameter]
|
||||
public SelectData DetailFilterSel { 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()
|
||||
{
|
||||
MessageService.DetailFilter = DetailFilterSel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user