From 98cbf960779f1eaed5db2fdc7a20519607d4942d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 10 Apr 2026 12:34:09 +0200 Subject: [PATCH] Update ID x fix errori selezione --- MP.IOC/Components/Compo/ParetoDetail.razor | 11 +++++++-- MP.IOC/Components/Compo/ParetoDetail.razor.cs | 3 ++- MP.IOC/Components/Pages/CallStats.razor | 19 ++++++++++----- MP.IOC/Components/Pages/CallStats.razor.cs | 23 +++++++++++++++---- MP.IOC/MP.IOC.csproj | 2 +- MP.IOC/Resources/ChangeLog.html | 2 +- MP.IOC/Resources/VersNum.txt | 2 +- MP.IOC/Resources/manifest.xml | 2 +- MP.IOC/wwwroot/lib/chartBoot.js | 2 +- 9 files changed, 48 insertions(+), 18 deletions(-) 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
+
+ +
+
    @@ -16,7 +23,7 @@
@($"{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:
  • diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt index 89c61afb..ac1974aa 100644 --- a/MP.IOC/Resources/VersNum.txt +++ b/MP.IOC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2604.1011 +6.16.2604.1012 diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml index ba9f0d17..c9d3ff61 100644 --- a/MP.IOC/Resources/manifest.xml +++ b/MP.IOC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2604.1011 + 6.16.2604.1012 https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html false diff --git a/MP.IOC/wwwroot/lib/chartBoot.js b/MP.IOC/wwwroot/lib/chartBoot.js index 5374f886..ade45017 100644 --- a/MP.IOC/wwwroot/lib/chartBoot.js +++ b/MP.IOC/wwwroot/lib/chartBoot.js @@ -19,7 +19,7 @@ window.setup = (id, config) => { //var ctx = document.getElementById(id).getContext('2d'); //let currentDate = new Date(); //console.log(currentDate + " - Calling setup..."); - console.log(id); + //console.log(id); if (window['chart-' + id] instanceof Chart) { //window.myChart.destroy(); window['chart-' + id].destroy();