From ddbba0e90e20abca868d654ebb459f4ead13519f Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 22 May 2021 11:54:20 +0200 Subject: [PATCH] bozza gestione detail/jump oee --- MP.Stats/Components/DetailOee.razor | 50 ++++-------------------- MP.Stats/Components/JumpDetail.razor | 58 ++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 43 deletions(-) create mode 100644 MP.Stats/Components/JumpDetail.razor 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