diff --git a/MP.SPEC/Components/ListODL.razor.cs b/MP.SPEC/Components/ListODL.razor.cs index bf28321d..1ca54e7c 100644 --- a/MP.SPEC/Components/ListODL.razor.cs +++ b/MP.SPEC/Components/ListODL.razor.cs @@ -231,14 +231,17 @@ namespace MP.SPEC.Components { if (hideSpenta) { - var tsDurata = TimeSpan.FromMinutes(ListOdlStats.Where(x => x.IdxStato != 11).Sum(x => x.TotDurata)); - if (tsDurata.TotalDays < 1) + if (ListOdlStatsNetto != null) { - answ = $"{tsDurata.Hours:00}h {tsDurata.Minutes:00}'"; - } - else - { - answ = $"{tsDurata.Days}gg {tsDurata.Hours:00}h"; + var tsDurata = TimeSpan.FromMinutes(ListOdlStatsNetto.Sum(x => x.TotDurata)); + if (tsDurata.TotalDays < 1) + { + answ = $"{tsDurata.Hours:00}h {tsDurata.Minutes:00}'"; + } + else + { + answ = $"{tsDurata.Days}gg {tsDurata.Hours:00}h"; + } } } else @@ -406,7 +409,7 @@ namespace MP.SPEC.Components if (currRec != null) { ListOdlStats = await MDService.StatOdl(currRec.IdxOdl); - ListOdlStatsNetto = ListOdlStats.Where(x => x.IdxStato != 11).ToList(); + ListOdlStatsNetto = ListOdlStats.Where(x => x.Semaforo != "sGr").ToList(); } else { diff --git a/MP.SPEC/Components/ODLPlot.razor.cs b/MP.SPEC/Components/ODLPlot.razor.cs index a1c2e2b5..d14c1fcb 100644 --- a/MP.SPEC/Components/ODLPlot.razor.cs +++ b/MP.SPEC/Components/ODLPlot.razor.cs @@ -68,7 +68,7 @@ namespace MP.SPEC.Components // se hideSpenta --> filtro stato 11 = spenta... if (hideSpenta) { - ListRecords = ListRecords.Where(x => x.IdxStato != 11).ToList(); + ListRecords = ListRecords.Where(x => x.Semaforo != "sGr").ToList(); } foreach (var record in ListRecords) { diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index 7e5f73d9..3ed0c30f 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2210.1920 + 6.16.2210.2009 diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index bd3a37e7..1e9e4534 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2210.1920

+

Versione: 6.16.2210.2009


Note di rilascio: