From 54e62e59f0edd9306af28669e22400e343bf77a5 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 2 Jul 2021 12:11:14 +0200 Subject: [PATCH 01/10] Fix pagina OEE --- MP.Stats/Components/ChartOEE.razor | 2 +- MP.Stats/Components/ChartOEE.razor.cs | 9 +++++---- MP.Stats/MP.Stats.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/MP.Stats/Components/ChartOEE.razor b/MP.Stats/Components/ChartOEE.razor index 977b55c0..91670d2c 100644 --- a/MP.Stats/Components/ChartOEE.razor +++ b/MP.Stats/Components/ChartOEE.razor @@ -13,7 +13,7 @@ {
  • @item.label - @item.value.ToString("P1") + @item.value.ToString("N2")%
  • } diff --git a/MP.Stats/Components/ChartOEE.razor.cs b/MP.Stats/Components/ChartOEE.razor.cs index d6175aea..b241e6df 100644 --- a/MP.Stats/Components/ChartOEE.razor.cs +++ b/MP.Stats/Components/ChartOEE.razor.cs @@ -62,10 +62,11 @@ namespace MP.Stats.Components new { Display = true, ticks= new { - suggestedMin = 0 + min = 0, + max = 100 } + } } - } }, Tooltips = new { @@ -177,13 +178,13 @@ namespace MP.Stats.Components { ParetoData = RawData .GroupBy(x => x.IdxMacchina) - .Select(y => new ChartKV() { label = y.First().IdxMacchina, value = y.Average(c => c.OEE) }) + .Select(y => new ChartKV() { label = y.First().CodMacchina, value = Math.Round(y.Average(c => c.OEE) * 100, 2) }) .OrderByDescending(x => x.value) .ToList(); TSData = RawData .GroupBy(x => x.DataRif.Date) - .Select(y => new ChartTS() { TLabel = y.First().DataRif.Date, Value = y.Average(c => c.OEE) }) + .Select(y => new ChartTS() { TLabel = y.First().DataRif.Date, Value = Math.Round(y.Average(c => c.OEE) * 100, 2) }) .OrderBy(x => x.TLabel) .ToList(); } diff --git a/MP.Stats/MP.Stats.csproj b/MP.Stats/MP.Stats.csproj index 65376227..28d61c51 100644 --- a/MP.Stats/MP.Stats.csproj +++ b/MP.Stats/MP.Stats.csproj @@ -4,7 +4,7 @@ net5.0 MP.Stats 826e877c-ba70-4253-84cb-d0b1cafd4440 - 1.0.2106.2814 + 1.0.2107.0212 diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 41a146db..502d9bc5 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo statistiche MAPO -

    Versione: 1.0.2106.2814

    +

    Versione: 1.0.2107.0212


    Note di rilascio: