diff --git a/MP.IOC/Components/Compo/ParetoDetail.razor b/MP.IOC/Components/Compo/ParetoDetail.razor index 1d83275e..d9e1ece9 100644 --- a/MP.IOC/Components/Compo/ParetoDetail.razor +++ b/MP.IOC/Components/Compo/ParetoDetail.razor @@ -1,7 +1,14 @@ 
- @Title +
+
@Title
+
+ +
+
@($"{itemDet.Value:N0}") -
@($"({valPerc(itemDet.Value):P2})")
+
@($"({valPerc(itemDet.Value):P2})")
} diff --git a/MP.IOC/Components/Compo/ParetoDetail.razor.cs b/MP.IOC/Components/Compo/ParetoDetail.razor.cs index 236026f1..ca4a38e7 100644 --- a/MP.IOC/Components/Compo/ParetoDetail.razor.cs +++ b/MP.IOC/Components/Compo/ParetoDetail.razor.cs @@ -65,11 +65,12 @@ namespace MP.IOC.Components.Compo currSelect = ""; } - private void DoSelect(string reqKey) + private async Task DoSelect(string reqKey) { if (ParetoList.Any(x => x.Label == reqKey)) { currSelect = reqKey; + await EC_Selected.InvokeAsync(reqKey); } } diff --git a/MP.IOC/Components/Pages/CallStats.razor b/MP.IOC/Components/Pages/CallStats.razor index d0d3cec4..7dcb08ea 100644 --- a/MP.IOC/Components/Pages/CallStats.razor +++ b/MP.IOC/Components/Pages/CallStats.razor @@ -33,7 +33,7 @@
- @if (string.IsNullOrEmpty(@currSelect)) + @if (string.IsNullOrEmpty(currHistId)) {
selezionare la metrica
@@ -42,21 +42,28 @@ else {
- +
- +
}
- @if (!string.IsNullOrEmpty(@currSelect)) + @if (!string.IsNullOrEmpty(currHistId)) {
- +
- timeserie selezionata x num call/tempo + @if (string.IsNullOrEmpty(currDetail)) + { +
← selezionare valore
+ } + else + { + timeserie selezionata x num call/tempo + }
} diff --git a/MP.IOC/Components/Pages/CallStats.razor.cs b/MP.IOC/Components/Pages/CallStats.razor.cs index 21de52d5..566a327e 100644 --- a/MP.IOC/Components/Pages/CallStats.razor.cs +++ b/MP.IOC/Components/Pages/CallStats.razor.cs @@ -32,7 +32,8 @@ namespace MP.IOC.Components.Pages private List currData = new(); - private string currSelect = ""; + private string currHistId = ""; + private string currPieId = ""; private string currTitle = ""; @@ -70,12 +71,13 @@ namespace MP.IOC.Components.Pages private string CheckSelect(string curKey) { - return !string.IsNullOrEmpty(currSelect) && currSelect == curKey ? "active" : ""; + return !string.IsNullOrEmpty(currHistId) && currHistId == curKey ? "active" : ""; } private void DoReset() { - currSelect = ""; + currHistId = ""; + currPieId = ""; currData = new(); } @@ -83,7 +85,8 @@ namespace MP.IOC.Components.Pages { if (ParetoDay.ContainsKey(reqKey)) { - currSelect = reqKey; + currHistId = $"Bar_{reqKey}"; + currPieId = $"Pie_{reqKey}"; currTitle = $"Pareto | {reqKey}"; currData = ParetoDay[reqKey]; } @@ -122,5 +125,17 @@ namespace MP.IOC.Components.Pages } #endregion Private Methods + + private string currDetail = ""; + + /// + /// abilita visualizzaione grafico dettagli x metodo indicato + /// + /// + private async Task ShowDetail(string selDetail) + { + await Task.Delay(10); + currDetail = selDetail; + } } } \ No newline at end of file diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index da4a0e09..94bdd1c2 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 6.16.2604.1011 + 6.16.2604.1012 diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html index 4e51627c..30f78f75 100644 --- a/MP.IOC/Resources/ChangeLog.html +++ b/MP.IOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-IOC -

Versione: 6.16.2604.1011

+

Versione: 6.16.2604.1012


Note di rilascio: