From 9d7502d1a40543df22b801b735f823f4f2bf78ee Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Wed, 21 Sep 2022 09:13:39 +0200 Subject: [PATCH] modifiche grafiche e round orario datetime --- MP.SPEC/Components/ListDossiers.razor | 11 +++++++---- MP.SPEC/Components/ListDossiers.razor.cs | 10 ++++++++-- MP.SPEC/Data/SelectDossierParams.cs | 21 ++++++++++++++++++--- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 7 files changed, 37 insertions(+), 13 deletions(-) diff --git a/MP.SPEC/Components/ListDossiers.razor b/MP.SPEC/Components/ListDossiers.razor index 0001cc13..6c04d24c 100644 --- a/MP.SPEC/Components/ListDossiers.razor +++ b/MP.SPEC/Components/ListDossiers.razor @@ -58,14 +58,14 @@ else } else { - +
- - + + @@ -81,8 +81,11 @@ else + } diff --git a/MP.SPEC/Components/ListDossiers.razor.cs b/MP.SPEC/Components/ListDossiers.razor.cs index 0f64796e..6ef78953 100644 --- a/MP.SPEC/Components/ListDossiers.razor.cs +++ b/MP.SPEC/Components/ListDossiers.razor.cs @@ -244,8 +244,14 @@ namespace MP.SPEC.Components private async Task toggleTableFlux() { - - visualizzaFlux = !visualizzaFlux; + + visualizzaFlux = false; + await Task.Delay(1); + } + private async Task unToggleTableFlux() + { + + visualizzaFlux = true; await Task.Delay(1); } diff --git a/MP.SPEC/Data/SelectDossierParams.cs b/MP.SPEC/Data/SelectDossierParams.cs index 9c83245a..09a3630f 100644 --- a/MP.SPEC/Data/SelectDossierParams.cs +++ b/MP.SPEC/Data/SelectDossierParams.cs @@ -10,10 +10,25 @@ #endregion Public Constructors #region Public Properties + + /// +        /// Inizializzazione con periodo e arrotondamento +        /// +        /// +        /// +        /// +        public static DateTime Init(int minRound, int numDayPrev) + { + TimeSpan DayElapsed = DateTime.Now.Subtract(DateTime.Today); + int minDay = (int)(DayElapsed.TotalMinutes / minRound) * minRound; + DateTime endRounded = DateTime.Today.AddMinutes(minDay); + return endRounded; + } + public string IdxMacchina { get; set; } = "*"; public int MaxRecord { get; set; } = 100; - public DateTime DtRef { get; set; } = DateTime.Now; + public DateTime DtRef { get; set; } = Init(5, 1); public int CurrPage { get; set; } = 1; #endregion Public Properties @@ -28,8 +43,8 @@ if (IdxMacchina != item.IdxMacchina) return false; - ////if (MaxRecord != item.MaxRecord) - //// return false; + if (MaxRecord != item.MaxRecord) + return false; if (DtRef != item.DtRef) return false; diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index 33a0391f..3ab99e74 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enableenableMP.SPEC - 6.15.2209.2017 + 6.15.2209.2108 diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index 2a289b2f..a3441d96 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.15.2209.2017

+

Versione: 6.15.2209.2108


Note di rilascio:
Macchina Data ODL DATA TYPE Valore
@record.CodFlux + @record.Valore + - @record.Valore +