diff --git a/MP.Stats/Components/DetailOee.razor b/MP.Stats/Components/DetailOee.razor index 032aae93..2e65aa37 100644 --- a/MP.Stats/Components/DetailOee.razor +++ b/MP.Stats/Components/DetailOee.razor @@ -6,20 +6,11 @@
GRAFICO
-
+
-
- -
-
- -
-
- -
-
- +
+
@@ -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(); } + } \ No newline at end of file diff --git a/MP.Stats/Components/JumpDetail.razor b/MP.Stats/Components/JumpDetail.razor new file mode 100644 index 00000000..bab4c64f --- /dev/null +++ b/MP.Stats/Components/JumpDetail.razor @@ -0,0 +1,58 @@ +@using MP.Stats.Data +@inject NavigationManager NavManager +@inject MessageService MessageService + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +@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; + } +} \ No newline at end of file