From 9e393cdff1fc5fc5593175b47bac18f63dfb500e Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 26 Oct 2021 15:06:16 +0200 Subject: [PATCH] Fix order update da EFCore x inizio/fine carico impianto --- GWMS.Data/Controllers/GWMSController.cs | 3 ++- GWMS.UI/GWMS.UI.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GWMS.Data/Controllers/GWMSController.cs b/GWMS.Data/Controllers/GWMSController.cs index 5db7f66..94ea2ae 100644 --- a/GWMS.Data/Controllers/GWMSController.cs +++ b/GWMS.Data/Controllers/GWMSController.cs @@ -497,7 +497,8 @@ namespace GWMS.Data.Controllers updItem.OrderCode = $"O{updItem.Plant.PlantCode}{updItem.DtOrder:yyMMddHHmm}"; updItem.OrderDesc = $"Ordine {updItem.Plant.PlantDesc} - {updItem.DtOrder}"; } - localDbCtx.Entry(updItem).State = EntityState.Modified; + localDbCtx.Entry(currData).CurrentValues.SetValues(updItem); + //localDbCtx.Entry(currData).State = EntityState.Modified; localDbCtx.SaveChanges(); } else diff --git a/GWMS.UI/GWMS.UI.csproj b/GWMS.UI/GWMS.UI.csproj index 6ecca26..59f28dc 100644 --- a/GWMS.UI/GWMS.UI.csproj +++ b/GWMS.UI/GWMS.UI.csproj @@ -2,7 +2,7 @@ net5.0 - 1.0.2110.2614 + 1.0.2110.2615 95c9f021-52d1-4390-a670-5810b7b777b0 true true diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 72b54dd..e651562 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ GWMS - Gas Warehouse Management System -

Versione: 1.0.2110.2614

+

Versione: 1.0.2110.2615


Note di rilascio: