From 429006b8896765e4cb3a40d3a4c781564441a468 Mon Sep 17 00:00:00 2001 From: Annamaria Sassi Date: Fri, 27 Mar 2026 16:37:56 +0100 Subject: [PATCH] Modificata gestione forza parametri --- Test.UI/Components/Pages/BaseEdit.razor.cs | 17 ++- Test.UI/Components/Pages/EditJWD.razor | 16 +-- Test.UI/Components/Pages/EditJWD.razor.cs | 39 ++++-- Test.UI/Components/Pages/TestError.razor.cs | 17 ++- WebWindowComplex/GeneralData.cs | 15 +++ WebWindowComplex/Models/Sash.cs | 19 +-- WebWindowComplex/SerialMan.cs | 127 ++++++++++++------ WebWindowComplex/TableComp.razor.cs | 28 +++- WebWindowComplex/WebWindowComplex.csproj | 10 +- .../WebWindowConfigurator.csproj | 9 +- 10 files changed, 214 insertions(+), 83 deletions(-) create mode 100644 WebWindowComplex/GeneralData.cs diff --git a/Test.UI/Components/Pages/BaseEdit.razor.cs b/Test.UI/Components/Pages/BaseEdit.razor.cs index 3f03d14..73c568a 100644 --- a/Test.UI/Components/Pages/BaseEdit.razor.cs +++ b/Test.UI/Components/Pages/BaseEdit.razor.cs @@ -533,8 +533,21 @@ namespace Test.UI.Components.Pages private void updateInfoJwd(string currSer, string? newFamilyHardware, Hardware? newHardware, string? newColorMaterial, string? newMaterial, string? newGlass, string? newProfile) { - var newJwd = SerialMan.MassUpdate(currSer, newFamilyHardware, newHardware, newColorMaterial, newMaterial, newGlass, newProfile); - CurrData.CurrJwd = newJwd; + Dictionary DictParam = new Dictionary(); + if (!string.IsNullOrEmpty(newFamilyHardware)) + DictParam.Add("FamilyHardware", newFamilyHardware!); + if (!string.IsNullOrEmpty(newColorMaterial)) + DictParam.Add("Color", newColorMaterial!); + if (!string.IsNullOrEmpty(newMaterial)) + DictParam.Add("Material", newMaterial!); + if (!string.IsNullOrEmpty(newGlass)) + DictParam.Add("Glass", newGlass!); + if (!string.IsNullOrEmpty(newProfile)) + DictParam.Add("Profile", newProfile!); + var dp = SerialMan.MassUpdate(currSer, DictParam); + CurrData.CurrJwd = dp.serializeStruct; + //var newJwd = SerialMan.MassUpdate(currSer, shape, newFamilyHardware, newHardware, newColorMaterial, newMaterial, newGlass, newProfile); + //CurrData.CurrJwd = newJwd; } #endregion Private Methods diff --git a/Test.UI/Components/Pages/EditJWD.razor b/Test.UI/Components/Pages/EditJWD.razor index 177c798..425f8ca 100644 --- a/Test.UI/Components/Pages/EditJWD.razor +++ b/Test.UI/Components/Pages/EditJWD.razor @@ -4,7 +4,7 @@ EditJWD -@*
+
FamilyHw @@ -21,10 +21,10 @@
Color
@@ -54,7 +54,7 @@
Profile