From dae7ee80d9705e55d4f1e3e5babb52889f31b871 Mon Sep 17 00:00:00 2001 From: Annamaria Sassi Date: Tue, 9 Dec 2025 12:46:31 +0100 Subject: [PATCH] - Disabilitata scelta dei joint del frame per Arc full, Double Arc, Three center arc - Aggiunto InputDouble per le dimensioni --- WebWindowComplex/Compo/AreaHwOption.razor | 2 +- WebWindowComplex/Compo/AreaHwOption.razor.cs | 2 +- WebWindowComplex/Compo/AreaSash.razor | 9 ++-- WebWindowComplex/Compo/AreaSash.razor.cs | 24 +++++++++ WebWindowComplex/Compo/CardFrame.razor | 6 --- WebWindowComplex/Compo/EditJoint.razor | 25 ++++++--- .../Compo/EditSplitDimensions.razor | 6 ++- .../Compo/EditSplitDimensions.razor.cs | 48 +++++++++++++++++ WebWindowComplex/Models/Frame.cs | 13 ++--- WebWindowComplex/WebWindowComplex.csproj | 53 ++++++++++++++++++- .../WebWindowConfigurator.csproj | 11 +++- 11 files changed, 166 insertions(+), 33 deletions(-) diff --git a/WebWindowComplex/Compo/AreaHwOption.razor b/WebWindowComplex/Compo/AreaHwOption.razor index baed002..3f0d6c6 100644 --- a/WebWindowComplex/Compo/AreaHwOption.razor +++ b/WebWindowComplex/Compo/AreaHwOption.razor @@ -5,7 +5,7 @@
Hardware option
- +
diff --git a/WebWindowComplex/Compo/AreaHwOption.razor.cs b/WebWindowComplex/Compo/AreaHwOption.razor.cs index c455ca6..e116b4c 100644 --- a/WebWindowComplex/Compo/AreaHwOption.razor.cs +++ b/WebWindowComplex/Compo/AreaHwOption.razor.cs @@ -50,7 +50,7 @@ namespace WebWindowComplex.Compo private string hwIcon { - get => hwOptCollapsed ? "↓" : "↑"; + get => hwOptCollapsed ? "fa-solid fa-chevron-down" : "fa-solid fa-chevron-up"; } /// diff --git a/WebWindowComplex/Compo/AreaSash.razor b/WebWindowComplex/Compo/AreaSash.razor index 47d99f5..1be9d07 100644 --- a/WebWindowComplex/Compo/AreaSash.razor +++ b/WebWindowComplex/Compo/AreaSash.razor @@ -25,7 +25,7 @@ } } -
+ } @@ -40,8 +40,7 @@
Dimension - - @* *@ + @foreach (var mType in CurrSashDim.MeasureTypeList) { diff --git a/WebWindowComplex/Compo/AreaSash.razor.cs b/WebWindowComplex/Compo/AreaSash.razor.cs index 0719022..8a939ed 100644 --- a/WebWindowComplex/Compo/AreaSash.razor.cs +++ b/WebWindowComplex/Compo/AreaSash.razor.cs @@ -104,6 +104,30 @@ namespace WebWindowComplex.Compo return 0; } + /// + /// Metodo per avere il lo step da usare nella form-input + /// + /// + public double CssStepNumber() + { + switch (CurrSashDim.MeasureType) + { + case Json.WindowConst.MeasureTypes.ABSOLUTE: + { + return 0.5; + } + case Json.WindowConst.MeasureTypes.PROPORTIONAL: + { + return 1; + } + case Json.WindowConst.MeasureTypes.PERCENTAGE: + { + return 0.5; + } + } + return 0; + } + /// /// Selezione tipo di apertura anta /// diff --git a/WebWindowComplex/Compo/CardFrame.razor b/WebWindowComplex/Compo/CardFrame.razor index 2fda835..e753f54 100644 --- a/WebWindowComplex/Compo/CardFrame.razor +++ b/WebWindowComplex/Compo/CardFrame.razor @@ -102,10 +102,4 @@ - @* - *@ } diff --git a/WebWindowComplex/Compo/EditJoint.razor b/WebWindowComplex/Compo/EditJoint.razor index 1489955..18b71de 100644 --- a/WebWindowComplex/Compo/EditJoint.razor +++ b/WebWindowComplex/Compo/EditJoint.razor @@ -1,10 +1,23 @@ @using static WebWindowComplex.LayoutConst
- + @if (CurrRec.ParentArea is Frame && + (CurrRec.ParentArea.ParentWindow.AreaList.First().SelShapeIndex == (int)Json.WindowConst.Shapes.DOUBLEARC || + CurrRec.ParentArea.ParentWindow.AreaList.First().SelShapeIndex == (int)Json.WindowConst.Shapes.ARC_FULL || + CurrRec.ParentArea.ParentWindow.AreaList.First().SelShapeIndex == (int)Json.WindowConst.Shapes.THREECENTERARC) && + (CurrRec.nIndex == 3 || CurrRec.nIndex == 4)) + { + + } + else + { + + }
\ No newline at end of file diff --git a/WebWindowComplex/Compo/EditSplitDimensions.razor b/WebWindowComplex/Compo/EditSplitDimensions.razor index 621a0c8..6f0c035 100644 --- a/WebWindowComplex/Compo/EditSplitDimensions.razor +++ b/WebWindowComplex/Compo/EditSplitDimensions.razor @@ -1,8 +1,10 @@ - +@using EgwCoreLib.Razor +
@Name - + @* *@ +