Fix controllo valori nulli x livello rilevato

This commit is contained in:
Samuele Locatelli
2022-02-03 09:22:17 +01:00
parent 49a38e1d92
commit 61a2c5547d
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Version>1.0.2202.0211</Version>
<Version>1.0.2202.0309</Version>
<UserSecretsId>95c9f021-52d1-4390-a670-5810b7b777b0</UserSecretsId>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>GWMS - Gas Warehouse Management System</i>
<h4>Versione: 1.0.2202.0211</h4>
<h4>Versione: 1.0.2202.0309</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.0.2202.0211
1.0.2202.0309
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.2202.0211</version>
<version>1.0.2202.0309</version>
<url>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html</changelog>
<mandatory>false</mandatory>