From cb2fa4cf4f2af025741fe44bbb23f3aba571bbfc Mon Sep 17 00:00:00 2001 From: Annamaria Sassi Date: Tue, 23 Dec 2025 14:29:43 +0100 Subject: [PATCH] Cambiata gestione lista threshold --- Test.UI/Components/Pages/EditJWD.razor | 3 --- Test.UI/Components/Pages/EditJWD.razor.cs | 8 +++---- Test.UI/Components/Pages/Home.razor.cs | 8 +++---- WebWindowComplex/Compo/CardFrame.razor | 2 +- WebWindowComplex/DTO/BaseListPayload.cs | 2 +- WebWindowComplex/Json/JsonUtility.cs | 1 + WebWindowComplex/Models/Frame.cs | 24 +++++++++++++++++-- WebWindowComplex/TableComp.razor | 19 ++++++++------- WebWindowComplex/TableComp.razor.cs | 2 +- WebWindowComplex/WebWindowComplex.csproj | 7 +++++- .../WebWindowConfigurator.csproj | 19 ++++++++++++++- 11 files changed, 69 insertions(+), 26 deletions(-) diff --git a/Test.UI/Components/Pages/EditJWD.razor b/Test.UI/Components/Pages/EditJWD.razor index 500e82a..4323a12 100644 --- a/Test.UI/Components/Pages/EditJWD.razor +++ b/Test.UI/Components/Pages/EditJWD.razor @@ -88,9 +88,6 @@ else if (!string.IsNullOrEmpty(outSave)) }
-
- WindowUid: @windowUid -
@JsonSer
diff --git a/Test.UI/Components/Pages/EditJWD.razor.cs b/Test.UI/Components/Pages/EditJWD.razor.cs index 96d8b25..897a52b 100644 --- a/Test.UI/Components/Pages/EditJWD.razor.cs +++ b/Test.UI/Components/Pages/EditJWD.razor.cs @@ -91,10 +91,10 @@ namespace Test.UI.Components.Pages new string("ProfiloSaomad") }; - protected List AvailThresholdList { get; set; } = new List() + protected Dictionary> AvailThreshold { get; set; } = new Dictionary>() { - new Threshold(1, "Bottom"), - new Threshold(3, "Threshold") + {"Profilo78", new List() { new Threshold(1, "Bottom"), new Threshold(3, "Threshold")}}, + {"ProfiloSaomad", new List(){ new Threshold(1, "Bottom"), new Threshold(2, "BottomWaterdrip"), new Threshold(3, "Threshold")}} }; [Inject] @@ -150,7 +150,7 @@ namespace Test.UI.Components.Pages Hardware = AvailHardwareList, Material = AvailMaterialList, Profile = AvailProfileList, - Threshold = AvailThresholdList + Threshold = AvailThreshold }; CurrData = new LivePayload() { diff --git a/Test.UI/Components/Pages/Home.razor.cs b/Test.UI/Components/Pages/Home.razor.cs index 8ed9c13..0f975e5 100644 --- a/Test.UI/Components/Pages/Home.razor.cs +++ b/Test.UI/Components/Pages/Home.razor.cs @@ -91,10 +91,10 @@ namespace Test.UI.Components.Pages new string("ProfiloSaomad") }; - protected List AvailThresholdList { get; set; } = new List() + protected Dictionary> AvailThreshold { get; set; } = new Dictionary>() { - new Threshold(1, "Bottom"), - new Threshold(3, "Threshold") + {"Profilo78", new List() { new Threshold(1, "Bottom"), new Threshold(3, "Threshold")}}, + {"ProfiloSaomad", new List(){ new Threshold(1, "Bottom"), new Threshold(2, "BottomWaterdrip"), new Threshold(3, "Threshold")}} }; [Inject] @@ -357,7 +357,7 @@ namespace Test.UI.Components.Pages Hardware = AvailHardwareList, Material = AvailMaterialList, Profile = AvailProfileList, - Threshold = AvailThresholdList + Threshold = AvailThreshold }; } diff --git a/WebWindowComplex/Compo/CardFrame.razor b/WebWindowComplex/Compo/CardFrame.razor index dc7de7d..fa94103 100644 --- a/WebWindowComplex/Compo/CardFrame.razor +++ b/WebWindowComplex/Compo/CardFrame.razor @@ -43,7 +43,7 @@