From 61a2c5547df076faa048cfe7d383ca2bcc254074 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 3 Feb 2022 09:22:17 +0100 Subject: [PATCH] Fix controllo valori nulli x livello rilevato --- GWMS.Data/Controllers/GWMSController.cs | 2 +- GWMS.UI/GWMS.UI.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/GWMS.Data/Controllers/GWMSController.cs b/GWMS.Data/Controllers/GWMSController.cs index 27c37a1..d4c0b9e 100644 --- a/GWMS.Data/Controllers/GWMSController.cs +++ b/GWMS.Data/Controllers/GWMSController.cs @@ -863,7 +863,7 @@ namespace GWMS.Data.Controllers DateTime currDay = oggi.AddDays(-i); var firstRecord = rawLevelData.Where(x => x.DtEvent >= currDay).FirstOrDefault(); var nextRecord = rawLevelData.Where(x => x.DtEvent >= currDay.AddDays(1)).FirstOrDefault(); - if (firstRecord == null && nextRecord == null) + if (firstRecord == null || nextRecord == null) { double venduto = 0; } diff --git a/GWMS.UI/GWMS.UI.csproj b/GWMS.UI/GWMS.UI.csproj index 906b0e8..2929722 100644 --- a/GWMS.UI/GWMS.UI.csproj +++ b/GWMS.UI/GWMS.UI.csproj @@ -2,7 +2,7 @@ net5.0 - 1.0.2202.0211 + 1.0.2202.0309 95c9f021-52d1-4390-a670-5810b7b777b0 true true diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 1edb258..0e00f51 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ GWMS - Gas Warehouse Management System -

Versione: 1.0.2202.0211

+

Versione: 1.0.2202.0309


Note di rilascio: