From 1b57d2826a01b1c7d3b1e1fa7fc4c6ccc09bb0d4 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 15 Oct 2025 11:57:54 +0200 Subject: [PATCH] Aggiunto bozza serializzatore x mass modification --- WebWindowComplex/SerialMan.cs | 39 +++++++++++++++++++ WebWindowComplex/WebWindowComplex.csproj | 1 + .../WebWindowConfigurator.csproj | 1 + 3 files changed, 41 insertions(+) create mode 100644 WebWindowComplex/SerialMan.cs diff --git a/WebWindowComplex/SerialMan.cs b/WebWindowComplex/SerialMan.cs new file mode 100644 index 0000000..e540302 --- /dev/null +++ b/WebWindowComplex/SerialMan.cs @@ -0,0 +1,39 @@ +using Egw.Window.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WebWindowComplex +{ + public class SerialMan + { + + /// + /// Riceve un JWD in ingresso e effettua una sostituzione dei parametri rieschiesti (SE non nulli) + /// + /// + /// + /// + /// + /// Valore serializzato con le modifiche richieste + public string MassUpdate(string currSer, string? newFamilyHardware, Hardware? newHardware, string? newColorMaterial) + { + string outVal = currSer; + // serializzazione JWD --> window + + // verifica 1:1 delle richieste + if (!string.IsNullOrEmpty(newFamilyHardware)) + { + } + if (newHardware != null) + { + } + if (!string.IsNullOrEmpty(newColorMaterial)) + { + } + return outVal; + } + } +} diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj index a27842a..ffa667d 100644 --- a/WebWindowComplex/WebWindowComplex.csproj +++ b/WebWindowComplex/WebWindowComplex.csproj @@ -72,5 +72,6 @@ + diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj index 24e4982..cb82d40 100644 --- a/WebWindowConfigurator/WebWindowConfigurator.csproj +++ b/WebWindowConfigurator/WebWindowConfigurator.csproj @@ -85,5 +85,6 @@ +