From aa4f46c8279ff18e03ece5cfda7f8f1668ce078c Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 4 Feb 2026 11:10:44 +0100 Subject: [PATCH] Update x gestione ritorno opzioni vuote --- Directory.Packages.props | 4 ++-- Lux.API/Lux.API.csproj | 2 +- Lux.UI/Components/Compo/OfferRowMan.razor.cs | 20 ++++++++++++++------ Lux.UI/Lux.UI.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 7 files changed, 21 insertions(+), 13 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index dc1f7273..17acb3b8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,8 +4,8 @@ false - - + + diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index 33608519..52d15176 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 1.1.2602.0317 + 1.1.2602.0410 diff --git a/Lux.UI/Components/Compo/OfferRowMan.razor.cs b/Lux.UI/Components/Compo/OfferRowMan.razor.cs index 233b0828..7ef14539 100644 --- a/Lux.UI/Components/Compo/OfferRowMan.razor.cs +++ b/Lux.UI/Components/Compo/OfferRowMan.razor.cs @@ -744,16 +744,16 @@ namespace Lux.UI.Components.Compo /// private EditMode CurrEditMode = EditMode.None; - private Dictionary currGroupShape = new (); - private List currAreaProfiles = new (); + private Dictionary currGroupShape = new(); + private List currAreaProfiles = new(); - private Dictionary currHwOption = new (); + private Dictionary currHwOption = new(); private int currPage = 1; private string currPng = ""; - private List currProfList = new (); + private List currProfList = new(); private string currSvg = ""; @@ -1101,8 +1101,16 @@ namespace Lux.UI.Components.Compo { if (currArgs.msgUid.Equals($"{chHwOpt}:{EditRecord.OfferRowUID}")) { - var rawDict = JsonConvert.DeserializeObject>(currArgs.newMessage) ?? new Dictionary(); - currHwOption = rawDict; + // se non รจ vuoto deserializzo + if (currArgs.newMessage.Count() > 2) + { + var rawDict = JsonConvert.DeserializeObject>(currArgs.newMessage) ?? new Dictionary(); + currHwOption = rawDict; + } + else + { + currHwOption = new Dictionary(); + } // salvo in live data... CurrData.DictOptionsXml = currHwOption; } diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj index b2073729..206bb6cd 100644 --- a/Lux.UI/Lux.UI.csproj +++ b/Lux.UI/Lux.UI.csproj @@ -5,7 +5,7 @@ enable enable aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50 - 1.1.2602.0317 + 1.1.2602.0410 diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 57bd8f76..f9f5ad1d 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ LUX - Web Windows MES -

Versione: 1.1.2602.0317

+

Versione: 1.1.2602.0410


Note di rilascio:
  • diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index 6cb7ee3b..f38e0a2f 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -1.1.2602.0317 +1.1.2602.0410 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index 80e075a2..ebe557a8 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 1.1.2602.0317 + 1.1.2602.0410 http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html false