CurrArgs)
{
m_CurrArgs = CurrArgs;
// chiamo la chiamata POST alla API, che manda la richiesta via REDIS
- if (m_CurrArgs != null)
+ if (currJwd != null)
{
CalcRequestDTO calcRequestDTO = new CalcRequestDTO();
calcRequestDTO.EnvType = EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW;
@@ -148,6 +199,18 @@ namespace Test.UI.Components.Pages
}
}
+ private void SetTemplate(TemplateSelectDTO selTemp)
+ {
+ string rawVal = "";
+ currSel = selTemp;
+ // brutale,d a rivedere...
+ if (File.Exists(selTemp.JwdFileName))
+ {
+ rawVal = File.ReadAllText(selTemp.JwdFileName);
+ }
+ SelTemplate = new Template(selTemp.Index, selTemp.Description, selTemp.SVGFileName, rawVal);
+ }
+
#endregion Private Methods
}
}
\ No newline at end of file
diff --git a/Test.UI/Components/Pages/Gerarchia.razor b/Test.UI/Components/Pages/Gerarchia.razor
index ee48333..b5548ca 100644
--- a/Test.UI/Components/Pages/Gerarchia.razor
+++ b/Test.UI/Components/Pages/Gerarchia.razor
@@ -8,9 +8,16 @@
IN_FamilyHardwareList="@AvailFamilyHardwareList"
IN_SelFamilyHardware="@SelFamilyHardware"
IN_HardwareList="@AvailHardwareList"
+ IN_ColorMaterialList="@AvailColorMaterialList"
+ IN_SelColorMaterial="@SelColorMaterial"
+ IN_MaterialList="@AvailMaterialList"
+ IN_SelMaterial="@SelMaterial"
+ IN_GlassList="@AvailGlassList"
+ IN_SelGlass="@SelGlass"
EC_OnUpdate="SaveJWD"
EC_OnSelectedTemplate="SetTemplate"
- LiveSVG="@currSvg">
+ LiveSVG="@currSvg"
+ CurrJwd="@InitialJwd">
@*
diff --git a/Test.UI/Components/Pages/Gerarchia.razor.cs b/Test.UI/Components/Pages/Gerarchia.razor.cs
index 0e9e26b..9984302 100644
--- a/Test.UI/Components/Pages/Gerarchia.razor.cs
+++ b/Test.UI/Components/Pages/Gerarchia.razor.cs
@@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Components;
using Newtonsoft.Json;
using NLog;
using System.Diagnostics;
-using WebWindow.Base;
+using System.Security.AccessControl;
using WebWindowComplex;
using WebWindowComplex.DTO;
@@ -15,7 +15,8 @@ namespace Test.UI.Components.Pages
{
#region Public Properties
- public Template SelTemplate { get; set; } = new Template(0, "---SELECT---", "", "");
+ public string InitialJwd = "";
+ public Template SelTemplate { get; set; } = new Template(0, "---SELECT---", "", "");
#endregion Public Properties
@@ -29,7 +30,7 @@ namespace Test.UI.Components.Pages
#endregion Public Methods
#region Protected Fields
-
+
protected string currJwd = "...";
protected Dictionary m_CurrArgs = new Dictionary();
@@ -39,9 +40,35 @@ namespace Test.UI.Components.Pages
protected List AvailTemplateList { get; set; } = new List();
protected List AvailHardwareList { get; set; } = new List();
-
- protected List AvailFamilyHardwareList { get; set; } = new List();
+ protected List AvailFamilyHardwareList { get; set; } = new List()
+ {
+ new string("Natura"),
+ new string("Optima")
+ };
+ protected List AvailColorMaterialList { get; set; } = new List()
+ {
+ new string("White"),
+ new string("Black"),
+ new string("Blu")
+ };
+ protected List AvailMaterialList { get; set; } = new List()
+ {
+ new string("Pine"),
+ new string("Fir")
+ };
+ protected List AvailGlassList { get; set; } = new List()
+ {
+ new string("4/12/4"),
+ new string("4/16/4"),
+ new string("4/12/4/12/4"),
+ new string("4/16/4/16/4"),
+ new string("4T/12/4T"),
+ new string("4T/16/4T")
+ };
protected string SelFamilyHardware { get; set; } = "";
+ protected string SelColorMaterial { get; set; } = "";
+ protected string SelMaterial { get; set; } = "";
+ protected string SelGlass { get; set; } = "";
[Inject]
protected IConfiguration Config { get; set; } = null!;
@@ -64,9 +91,10 @@ namespace Test.UI.Components.Pages
protected override async Task OnInitializedAsync()
{
ConfInit();
- AvailFamilyHardwareList.Add("Natura");
- AvailFamilyHardwareList.Add("Optima");
SelFamilyHardware = "Natura";
+ SelColorMaterial = "Black";
+ SelMaterial = "Pine";
+ SelGlass = "4T/16/4T";
DLService.CalcDonePipe.EA_NewMessage += CalcDonePipe_EA_NewMessage;
await ReloadData();
}
@@ -128,18 +156,20 @@ namespace Test.UI.Components.Pages
//return base.OnInitializedAsync();
AvailTemplateList = new List();
AvailHardwareList = new List();
- await Task.Delay(100);
// brutale, da rivedere...
- if (File.Exists(cFileTemplate))
+ if (string.IsNullOrEmpty(InitialJwd))
{
- string rawVal = File.ReadAllText(cFileTemplate);
- var rawList = JsonConvert.DeserializeObject>(rawVal) ?? new List();
-
- // calcolo URL immagini... DTO interno da rivedere?
- foreach (var item in rawList)
+ if (File.Exists(cFileTemplate))
{
- item.ImageUrl = ICService.ImageUrl($"{apiUrl}/{imgBasePath}", false, item.SVGFileName);
- AvailTemplateList.Add(item);
+ string rawVal = File.ReadAllText(cFileTemplate);
+ var rawList = JsonConvert.DeserializeObject>(rawVal) ?? new List();
+
+ // calcolo URL immagini... DTO interno da rivedere?
+ foreach (var item in rawList)
+ {
+ item.ImageUrl = ICService.ImageUrl($"{apiUrl}/{imgBasePath}", false, item.SVGFileName);
+ AvailTemplateList.Add(item);
+ }
}
}
if (File.Exists(cFileHardware))
@@ -151,13 +181,14 @@ namespace Test.UI.Components.Pages
AvailHardwareList.Add(item);
}
}
+ await Task.Delay(100);
}
private async Task SaveJWD(Dictionary CurrArgs)
{
m_CurrArgs = CurrArgs;
// chiamo la chiamata POST alla API, che manda la richiesta via REDIS
- if (currSel != null)
+ if (currJwd != null)
{
CalcRequestDTO calcRequestDTO = new CalcRequestDTO();
calcRequestDTO.EnvType = EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW;
diff --git a/Test.UI/Components/Pages/TestComponentJWD.razor b/Test.UI/Components/Pages/TestComponentJWD.razor
index 642a88d..20595ce 100644
--- a/Test.UI/Components/Pages/TestComponentJWD.razor
+++ b/Test.UI/Components/Pages/TestComponentJWD.razor
@@ -8,8 +8,18 @@
IN_FamilyHardwareList="@AvailFamilyHardwareList"
IN_SelFamilyHardware="@SelFamilyHardware"
IN_HardwareList="@AvailHardwareList"
+ IN_ColorMaterialList="@AvailColorMaterialList"
+ IN_SelColorMaterial="@SelColorMaterial"
+ IN_MaterialList="@AvailMaterialList"
+ IN_SelMaterial="@SelMaterial"
+ IN_GlassList="@AvailGlassList"
+ IN_SelGlass="@SelGlass"
EC_OnUpdate="SaveJWD"
EC_OnSelectedTemplate="SetTemplate"
LiveSVG="@currSvg"
CurrJwd="@InitialJwd">
+
+
+ @m_CurrArgs.GetValueOrDefault("Jwd")
+
\ No newline at end of file
diff --git a/Test.UI/Components/Pages/TestComponentJWD.razor.cs b/Test.UI/Components/Pages/TestComponentJWD.razor.cs
index f19445f..8585949 100644
--- a/Test.UI/Components/Pages/TestComponentJWD.razor.cs
+++ b/Test.UI/Components/Pages/TestComponentJWD.razor.cs
@@ -40,9 +40,35 @@ namespace Test.UI.Components.Pages
protected List AvailTemplateList { get; set; } = new List();
protected List AvailHardwareList { get; set; } = new List();
-
- protected List AvailFamilyHardwareList { get; set; } = new List();
+ protected List AvailFamilyHardwareList { get; set; } = new List()
+ {
+ new string("Natura"),
+ new string("Optima")
+ };
+ protected List AvailColorMaterialList { get; set; } = new List()
+ {
+ new string("White"),
+ new string("Black"),
+ new string("Blu")
+ };
+ protected List AvailMaterialList { get; set; } = new List()
+ {
+ new string("Pine"),
+ new string("Fir")
+ };
+ protected List AvailGlassList { get; set; } = new List()
+ {
+ new string("4/12/4"),
+ new string("4/16/4"),
+ new string("4/12/4/12/4"),
+ new string("4/16/4/16/4"),
+ new string("4T/12/4T"),
+ new string("4T/16/4T")
+ };
protected string SelFamilyHardware { get; set; } = "";
+ protected string SelColorMaterial { get; set; } = "";
+ protected string SelMaterial { get; set; } = "";
+ protected string SelGlass { get; set; } = "";
[Inject]
protected IConfiguration Config { get; set; } = null!;
@@ -65,9 +91,10 @@ namespace Test.UI.Components.Pages
protected override async Task OnInitializedAsync()
{
ConfInit();
- AvailFamilyHardwareList.Add("Natura");
- AvailFamilyHardwareList.Add("Optima");
SelFamilyHardware = "Natura";
+ SelColorMaterial = "Black";
+ SelColorMaterial = "Pine";
+ SelGlass = "4T/16/4T";
InitialJwd = File.ReadAllText("Data\\AntaDoppia.jwd");
currJwd = InitialJwd;
DLService.CalcDonePipe.EA_NewMessage += CalcDonePipe_EA_NewMessage;
diff --git a/Test.UI/Components/Pages/TestComponentTemplate.razor b/Test.UI/Components/Pages/TestComponentTemplate.razor
index 89f1f0e..fc79f2a 100644
--- a/Test.UI/Components/Pages/TestComponentTemplate.razor
+++ b/Test.UI/Components/Pages/TestComponentTemplate.razor
@@ -8,8 +8,18 @@
IN_FamilyHardwareList="@AvailFamilyHardwareList"
IN_SelFamilyHardware="@SelFamilyHardware"
IN_HardwareList="@AvailHardwareList"
+ IN_ColorMaterialList="@AvailColorMaterialList"
+ IN_SelColorMaterial="@SelColorMaterial"
+ IN_MaterialList="@AvailMaterialList"
+ IN_SelMaterial="@SelMaterial"
+ IN_GlassList="@AvailGlassList"
+ IN_SelGlass="@SelGlass"
EC_OnUpdate="SaveJWD"
EC_OnSelectedTemplate="SetTemplate"
LiveSVG="@currSvg"
CurrJwd="@InitialJwd">
+
+
+ @m_CurrArgs.GetValueOrDefault("Jwd")
+
diff --git a/Test.UI/Components/Pages/TestComponentTemplate.razor.cs b/Test.UI/Components/Pages/TestComponentTemplate.razor.cs
index 30460c9..b4db428 100644
--- a/Test.UI/Components/Pages/TestComponentTemplate.razor.cs
+++ b/Test.UI/Components/Pages/TestComponentTemplate.razor.cs
@@ -40,9 +40,35 @@ namespace Test.UI.Components.Pages
protected List AvailTemplateList { get; set; } = new List();
protected List AvailHardwareList { get; set; } = new List();
-
- protected List AvailFamilyHardwareList { get; set; } = new List();
+ protected List AvailFamilyHardwareList { get; set; } = new List()
+ {
+ new string("Natura"),
+ new string("Optima")
+ };
+ protected List AvailColorMaterialList { get; set; } = new List()
+ {
+ new string("White"),
+ new string("Black"),
+ new string("Blu")
+ };
+ protected List AvailMaterialList { get; set; } = new List()
+ {
+ new string("Pine"),
+ new string("Fir")
+ };
+ protected List AvailGlassList { get; set; } = new List()
+ {
+ new string("4/12/4"),
+ new string("4/16/4"),
+ new string("4/12/4/12/4"),
+ new string("4/16/4/16/4"),
+ new string("4T/12/4T"),
+ new string("4T/16/4T")
+ };
protected string SelFamilyHardware { get; set; } = "";
+ protected string SelColorMaterial { get; set; } = "";
+ protected string SelMaterial { get; set; } = "";
+ protected string SelGlass { get; set; } = "";
[Inject]
protected IConfiguration Config { get; set; } = null!;
@@ -65,11 +91,10 @@ namespace Test.UI.Components.Pages
protected override async Task OnInitializedAsync()
{
ConfInit();
- AvailFamilyHardwareList.Add("Natura");
- AvailFamilyHardwareList.Add("Optima");
SelFamilyHardware = "Natura";
- //InitialJwd = File.ReadAllText("Data\\AntaDoppia.jwd");
- //currJwd = InitialJwd;
+ SelColorMaterial = "Black";
+ SelMaterial = "Pine";
+ SelGlass = "4T/16/4T";
DLService.CalcDonePipe.EA_NewMessage += CalcDonePipe_EA_NewMessage;
await ReloadData();
}
diff --git a/Test.UI/Components/_Imports.razor b/Test.UI/Components/_Imports.razor
index f1e6548..2d121d4 100644
--- a/Test.UI/Components/_Imports.razor
+++ b/Test.UI/Components/_Imports.razor
@@ -11,6 +11,5 @@
@using Test.UI.Components
@using WebWindowConfigurator
@using WebAedificaConfigurator
-@using WebWindowJWD
@using WebWindowComplex
@using WebWindowTest
\ No newline at end of file
diff --git a/Test.UI/Data/AntaDoppia.jwd b/Test.UI/Data/AntaDoppia.jwd
index 1fdcc46..12d9235 100644
--- a/Test.UI/Data/AntaDoppia.jwd
+++ b/Test.UI/Data/AntaDoppia.jwd
@@ -1,7 +1,11 @@
{
"ProfilePath": "Profilo78",
+ "Material": "Pine",
+ "ColorMaterial": "Black",
+ "Glass": "4T/16/4T",
"AreaList": [
{
+ "IdGroup": 1,
"Shape": "RECTANGLE",
"DimensionList": [
{
@@ -37,14 +41,17 @@
"BottomRailQty": 0,
"AreaList": [
{
+ "IdGroup": 2,
"bIsSashVertical": true,
"SashList": [
{
+ "SashId": 1,
"OpeningType": "TURNONLY_LEFT",
"bHasHandle": false,
"dDimension": 50.0
},
{
+ "SashId": 2,
"OpeningType": "TILTTURN_RIGHT",
"bHasHandle": true,
"dDimension": 50.0
@@ -69,11 +76,13 @@
"JointType": "FULL_V"
}
],
- "Hardware": "102111",
+ "Hardware": "000559",
"AreaList": [
{
+ "IdGroup": 3,
"AreaList": [
{
+ "IdGroup": 4,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
@@ -82,8 +91,10 @@
"AreaType": "SPLITTED"
},
{
+ "IdGroup": 5,
"AreaList": [
{
+ "IdGroup": 6,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
diff --git a/Test.UI/Data/AntaSingola.jwd b/Test.UI/Data/AntaSingola.jwd
index 46c2320..5748335 100644
--- a/Test.UI/Data/AntaSingola.jwd
+++ b/Test.UI/Data/AntaSingola.jwd
@@ -1,5 +1,8 @@
{
"ProfilePath": "Profilo78",
+ "Material": "Pine",
+ "ColorMaterial": "Black",
+ "Glass": "4T/16/4T",
"AreaList": [
{
"Shape": "RECTANGLE",
@@ -35,11 +38,13 @@
],
"BottomRail": false,
"BottomRailQty": 0,
+ "IdGroup": 1,
"AreaList": [
{
"bIsSashVertical": true,
"SashList": [
{
+ "SashId": 1,
"OpeningType": "TILTTURN_LEFT",
"bHasHandle": true,
"dDimension": 100.0
@@ -64,10 +69,12 @@
"JointType": "FULL_H"
}
],
- "Hardware": "101111",
+ "Hardware": "000558",
+ "IdGroup": 2,
"AreaList": [
{
"FillType": "GLASS",
+ "IdGroup": 3,
"AreaList": [],
"AreaType": "FILL"
}
diff --git a/Test.UI/Data/FinDueAnteBottomFisso.jwd b/Test.UI/Data/FinDueAnteBottomFisso.jwd
index 9ddb068..2940a11 100644
--- a/Test.UI/Data/FinDueAnteBottomFisso.jwd
+++ b/Test.UI/Data/FinDueAnteBottomFisso.jwd
@@ -1,7 +1,11 @@
{
"ProfilePath": "Profilo78",
+ "Material": "Pine",
+ "ColorMaterial": "Black",
+ "Glass": "4T/16/4T",
"AreaList": [
{
+ "IdGroup": 1,
"Shape": "RECTANGLE",
"DimensionList": [
{
@@ -37,8 +41,11 @@
"BottomRailQty": 0,
"AreaList": [
{
+ "IdGroup": 2,
"SplitShape": "HORIZONTAL",
- "SplitPositionList": [
+ "SplitStartVert": false,
+ "SplitVertList": [],
+ "SplitHorizList": [
{
"bIsRelative": true,
"dDimension": 40.0
@@ -50,8 +57,10 @@
],
"AreaList": [
{
+ "IdGroup": 3,
"AreaList": [
{
+ "IdGroup": 4,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
@@ -60,16 +69,20 @@
"AreaType": "SPLITTED"
},
{
+ "IdGroup": 5,
"AreaList": [
{
+ "IdGroup": 6,
"bIsSashVertical": true,
"SashList": [
{
+ "SashId": 1,
"OpeningType": "TURNONLY_LEFT",
"bHasHandle": false,
"dDimension": 50.0
},
{
+ "SashId": 2,
"OpeningType": "TILTTURN_RIGHT",
"bHasHandle": true,
"dDimension": 50.0
@@ -94,11 +107,13 @@
"JointType": "FULL_H"
}
],
- "Hardware": "102112",
+ "Hardware": "000559",
"AreaList": [
{
+ "IdGroup": 7,
"AreaList": [
{
+ "IdGroup": 8,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
@@ -107,8 +122,10 @@
"AreaType": "SPLITTED"
},
{
+ "IdGroup": 9,
"AreaList": [
{
+ "IdGroup": 10,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
diff --git a/Test.UI/Data/FinestraDueAnteSeparate.jwd b/Test.UI/Data/FinestraDueAnteSeparate.jwd
index 0cfd829..b051b18 100644
--- a/Test.UI/Data/FinestraDueAnteSeparate.jwd
+++ b/Test.UI/Data/FinestraDueAnteSeparate.jwd
@@ -1,7 +1,11 @@
{
"ProfilePath": "Profilo78",
+ "Material": "Pine",
+ "ColorMaterial": "Black",
+ "Glass": "4T/16/4T",
"AreaList": [
{
+ "IdGroup": 1,
"Shape": "DOUBLECHAMFER",
"DimensionList": [
{
@@ -42,8 +46,10 @@
"BottomRailQty": 0,
"AreaList": [
{
+ "IdGroup": 2,
"SplitShape": "VERTICAL",
- "SplitPositionList": [
+ "SplitStartVert": true,
+ "SplitVertList": [
{
"bIsRelative": true,
"dDimension": 50.0
@@ -53,13 +59,17 @@
"dDimension": 50.0
}
],
+ "SplitHorizList": [],
"AreaList": [
{
+ "IdGroup": 3,
"AreaList": [
{
+ "IdGroup": 4,
"bIsSashVertical": true,
"SashList": [
{
+ "SashId": 1,
"OpeningType": "TILTTURN_LEFT",
"bHasHandle": true,
"dDimension": 100.0
@@ -89,6 +99,7 @@
"Hardware": "000000",
"AreaList": [
{
+ "IdGroup": 5,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
@@ -100,11 +111,14 @@
"AreaType": "SPLITTED"
},
{
+ "IdGroup": 6,
"AreaList": [
{
+ "IdGroup": 7,
"bIsSashVertical": true,
"SashList": [
{
+ "SashId": 1,
"OpeningType": "TILTTURN_RIGHT",
"bHasHandle": true,
"dDimension": 100.0
@@ -134,6 +148,7 @@
"Hardware": "000000",
"AreaList": [
{
+ "IdGroup": 8,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
diff --git a/Test.UI/Data/FinestraSplitGrid.jwd b/Test.UI/Data/FinestraSplitGrid.jwd
new file mode 100644
index 0000000..6f5f99e
--- /dev/null
+++ b/Test.UI/Data/FinestraSplitGrid.jwd
@@ -0,0 +1,151 @@
+{
+ "ProfilePath": "Profilo78",
+ "Material": "Pine",
+ "ColorMaterial": "Black",
+ "Glass": "4T/16/4T",
+ "AreaList": [
+ {
+ "IdGroup": 1,
+ "Shape": "RECTANGLE",
+ "DimensionList": [
+ {
+ "nIndex": 1,
+ "sName": "Width",
+ "dValue": 1500.0
+ },
+ {
+ "nIndex": 2,
+ "sName": "Height",
+ "dValue": 1800.0
+ }
+ ],
+ "JointList": [
+ {
+ "nIndex": 1,
+ "JointType": "FULL_H"
+ },
+ {
+ "nIndex": 2,
+ "JointType": "FULL_H"
+ },
+ {
+ "nIndex": 3,
+ "JointType": "FULL_H"
+ },
+ {
+ "nIndex": 4,
+ "JointType": "FULL_H"
+ }
+ ],
+ "BottomRail": false,
+ "BottomRailQty": 0,
+ "AreaList": [
+ {
+ "IdGroup": 2,
+ "SplitShape": "GRID",
+ "SplitStartVert": false,
+ "SplitVertList": [
+ {
+ "bIsRelative": true,
+ "dDimension": 50.0
+ },
+ {
+ "bIsRelative": true,
+ "dDimension": 50.0
+ }
+ ],
+ "SplitHorizList": [
+ {
+ "bIsRelative": true,
+ "dDimension": 30.0
+ },
+ {
+ "bIsRelative": true,
+ "dDimension": 40.0
+ },
+ {
+ "bIsRelative": true,
+ "dDimension": 30.0
+ }
+ ],
+ "AreaList": [
+ {
+ "IdGroup": 3,
+ "AreaList": [
+ {
+ "IdGroup": 4,
+ "FillType": "GLASS",
+ "AreaList": [],
+ "AreaType": "FILL"
+ }
+ ],
+ "AreaType": "SPLITTED"
+ },
+ {
+ "IdGroup": 5,
+ "AreaList": [
+ {
+ "IdGroup": 6,
+ "FillType": "GLASS",
+ "AreaList": [],
+ "AreaType": "FILL"
+ }
+ ],
+ "AreaType": "SPLITTED"
+ },
+ {
+ "IdGroup": 7,
+ "AreaList": [
+ {
+ "IdGroup": 8,
+ "FillType": "GLASS",
+ "AreaList": [],
+ "AreaType": "FILL"
+ }
+ ],
+ "AreaType": "SPLITTED"
+ },
+ {
+ "IdGroup": 9,
+ "AreaList": [
+ {
+ "IdGroup": 10,
+ "FillType": "GLASS",
+ "AreaList": [],
+ "AreaType": "FILL"
+ }
+ ],
+ "AreaType": "SPLITTED"
+ },
+ {
+ "IdGroup": 11,
+ "AreaList": [
+ {
+ "IdGroup": 12,
+ "FillType": "GLASS",
+ "AreaList": [],
+ "AreaType": "FILL"
+ }
+ ],
+ "AreaType": "SPLITTED"
+ },
+ {
+ "IdGroup": 13,
+ "AreaList": [
+ {
+ "IdGroup": 14,
+ "FillType": "GLASS",
+ "AreaList": [],
+ "AreaType": "FILL"
+ }
+ ],
+ "AreaType": "SPLITTED"
+ }
+ ],
+ "AreaType": "SPLIT"
+ }
+ ],
+ "AreaType": "FRAME"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Test.UI/Data/FinestraSplitVert.jwd b/Test.UI/Data/FinestraSplitVert.jwd
index b8dc284..60e1e4b 100644
--- a/Test.UI/Data/FinestraSplitVert.jwd
+++ b/Test.UI/Data/FinestraSplitVert.jwd
@@ -1,7 +1,11 @@
{
"ProfilePath": "Profilo78",
+ "Material": "Pine",
+ "ColorMaterial": "Black",
+ "Glass": "4T/16/4T",
"AreaList": [
{
+ "IdGroup": 1,
"Shape": "RECTANGLE",
"DimensionList": [
{
@@ -37,8 +41,10 @@
"BottomRailQty": 0,
"AreaList": [
{
+ "IdGroup": 2,
"SplitShape": "VERTICAL",
- "SplitPositionList": [
+ "SplitStartVert": true,
+ "SplitVertList": [
{
"bIsRelative": true,
"dDimension": 50.0
@@ -48,10 +54,13 @@
"dDimension": 50.0
}
],
+ "SplitHorizList": [],
"AreaList": [
{
+ "IdGroup": 3,
"AreaList": [
{
+ "IdGroup": 4,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
@@ -60,8 +69,10 @@
"AreaType": "SPLITTED"
},
{
+ "IdGroup": 5,
"AreaList": [
{
+ "IdGroup": 6,
"FillType": "GLASS",
"AreaList": [],
"AreaType": "FILL"
diff --git a/Test.UI/Data/FinestraSplitVertOriz.jwd b/Test.UI/Data/FinestraSplitVertOriz.jwd
deleted file mode 100644
index e8380b3..0000000
--- a/Test.UI/Data/FinestraSplitVertOriz.jwd
+++ /dev/null
@@ -1,141 +0,0 @@
-{
- "ProfilePath": "Profilo78",
- "AreaList": [
- {
- "Shape": "RECTANGLE",
- "DimensionList": [
- {
- "nIndex": 1,
- "sName": "Width",
- "dValue": 1500.0
- },
- {
- "nIndex": 2,
- "sName": "Height",
- "dValue": 1800.0
- }
- ],
- "JointList": [
- {
- "nIndex": 1,
- "JointType": "FULL_H"
- },
- {
- "nIndex": 2,
- "JointType": "FULL_H"
- },
- {
- "nIndex": 3,
- "JointType": "FULL_H"
- },
- {
- "nIndex": 4,
- "JointType": "FULL_H"
- }
- ],
- "BottomRail": false,
- "BottomRailQty": 0,
- "AreaList": [
- {
- "SplitShape": "VERTICAL",
- "SplitPositionList": [
- {
- "bIsRelative": true,
- "dDimension": 50.0
- },
- {
- "bIsRelative": true,
- "dDimension": 50.0
- }
- ],
- "AreaList": [
- {
- "AreaList": [
- {
- "SplitShape": "HORIZONTAL",
- "SplitPositionList": [
- {
- "bIsRelative": true,
- "dDimension": 40.0
- },
- {
- "bIsRelative": true,
- "dDimension": 60.0
- }
- ],
- "AreaList": [
- {
- "AreaList": [
- {
- "FillType": "GLASS",
- "AreaList": [],
- "AreaType": "FILL"
- }
- ],
- "AreaType": "SPLITTED"
- },
- {
- "AreaList": [
- {
- "FillType": "GLASS",
- "AreaList": [],
- "AreaType": "FILL"
- }
- ],
- "AreaType": "SPLITTED"
- }
- ],
- "AreaType": "SPLIT"
- }
- ],
- "AreaType": "SPLITTED"
- },
- {
- "AreaList": [
- {
- "SplitShape": "HORIZONTAL",
- "SplitPositionList": [
- {
- "bIsRelative": true,
- "dDimension": 40.0
- },
- {
- "bIsRelative": true,
- "dDimension": 60.0
- }
- ],
- "AreaList": [
- {
- "AreaList": [
- {
- "FillType": "GLASS",
- "AreaList": [],
- "AreaType": "FILL"
- }
- ],
- "AreaType": "SPLITTED"
- },
- {
- "AreaList": [
- {
- "FillType": "GLASS",
- "AreaList": [],
- "AreaType": "FILL"
- }
- ],
- "AreaType": "SPLITTED"
- }
- ],
- "AreaType": "SPLIT"
- }
- ],
- "AreaType": "SPLITTED"
- }
- ],
- "AreaType": "SPLIT"
- }
- ],
- "AreaType": "FRAME"
- }
- ]
-}
\ No newline at end of file
diff --git a/Test.UI/Data/Setup.json b/Test.UI/Data/Setup.json
index f11b42d..3a4469d 100644
--- a/Test.UI/Data/Setup.json
+++ b/Test.UI/Data/Setup.json
@@ -25,9 +25,9 @@
},
{
"Index": 5,
- "Description": "Finestra con split verticale e orizzontale",
- "SVGFileName": "FinestraSplitVertOriz.svg",
- "JwdFileName": "Data/FinestraSplitVertOriz.jwd"
+ "Description": "Finestra con split grid",
+ "SVGFileName": "FinestraSplitGrid.svg",
+ "JwdFileName": "Data/FinestraSplitGrid.jwd"
},
{
"Index": 6,
diff --git a/Test.UI/Hardware/Setup.json b/Test.UI/Hardware/Setup.json
index b232b3f..c937c0f 100644
--- a/Test.UI/Hardware/Setup.json
+++ b/Test.UI/Hardware/Setup.json
@@ -1,119 +1,48 @@
[
{
- "sId": "101111",
+ "sId": "000558",
"sFamily": "Natura",
- "sName": "Natura_ANTA_RIBALTA_RECTANGLE_1SASH_2T_12_2T",
+ "sName": "Profilo78_Rect_Sash",
"sOpeningType": "ANTA_RIBALTA",
"sShape": "RECTANGLE",
"nSashQty": "1",
"nSashPosition": "1"
},
{
- "sId": "101112",
+ "sId": "000562",
"sFamily": "Natura",
- "sName": "Natura_ANTA_RIBALTA_RECTANGLE_1SASH_3T_12_3T",
- "sOpeningType": "ANTA_RIBALTA",
- "sShape": "RECTANGLE",
- "nSashQty": "1",
- "nSashPosition": "1"
- },
- {
- "sId": "101121",
- "sFamily": "Natura",
- "sName": "Natura_ANTA_BANDIERA_RECTANGLE_1SASH_2T_12_2T",
+ "sName": "Profilo78_Rect_Sash",
"sOpeningType": "ANTA_BANDIERA",
"sShape": "RECTANGLE",
"nSashQty": "1",
"nSashPosition": "1"
},
{
- "sId": "101122",
+ "sId": "000559",
"sFamily": "Natura",
- "sName": "Natura_ANTA_BANDIERA_RECTANGLE_1SASH_3T_12_3T",
- "sOpeningType": "ANTA_BANDIERA",
- "sShape": "RECTANGLE",
- "nSashQty": "1",
- "nSashPosition": "1"
- },
- {
- "sId": "101211",
- "sFamily": "Natura",
- "sName": "Natura_ANTA_RIBALTA_CHAMFER_1SASH_3T_12_3T",
- "sOpeningType": "ANTA_RIBALTA",
- "sShape": "CHAMFER",
- "nSashQty": "1",
- "nSashPosition": "1"
- },
- {
- "sId": "102111",
- "sFamily": "Natura",
- "sName": "Natura_ANTA_RIBALTA_RECTANGLE_2SASH_3T_12_3T",
+ "sName": "Profilo78_Rect_DoubleSash",
"sOpeningType": "ANTA_RIBALTA",
"sShape": "RECTANGLE",
"nSashQty": "2",
"nSashPosition": "1"
},
{
- "sId": "102112",
+ "sId": "000563",
"sFamily": "Natura",
- "sName": "Natura_ANTA_RIBALTA_RECTANGLE_2SASH_2T_18_2T",
- "sOpeningType": "ANTA_RIBALTA",
- "sShape": "RECTANGLE",
- "nSashQty": "2",
- "nSashPosition": "1"
- },
- {
- "sId": "102121",
- "sFamily": "Natura",
- "sName": "Natura_ANTA_BANDIERA_RECTANGLE_2SASH_3T_12_3T",
+ "sName": "Profilo78_TurnOnly_Rect_DoubleSash",
"sOpeningType": "ANTA_BANDIERA",
"sShape": "RECTANGLE",
"nSashQty": "2",
"nSashPosition": "1"
},
{
- "sId": "102221",
+ "sId": "000560",
"sFamily": "Natura",
- "sName": "Natura_ANTA_BANDIERA_CHAMFER_2SASH_3T_12_3T",
- "sOpeningType": "ANTA_BANDIERA",
- "sShape": "CHAMFER",
- "nSashQty": "2",
- "nSashPosition": "1"
- },
- {
- "sId": "201111",
- "sFamily": "Optima",
- "sName": "Optima_ANTA_RIBALTA_RECTANGLE_1SASH_3T_12_3T",
+ "sName": "Profilo78_Rect_TripleSash",
"sOpeningType": "ANTA_RIBALTA",
"sShape": "RECTANGLE",
- "nSashQty": "1",
- "nSashPosition": "1"
- },
- {
- "sId": "201221",
- "sFamily": "Optima",
- "sName": "Optima_ANTA_BANDIERA_RECTANGLE_1SASH_3T_12_3T",
- "sOpeningType": "ANTA_BANDIERA",
- "sShape": "CHAMFER",
- "nSashQty": "1",
- "nSashPosition": "1"
- },
- {
- "sId": "202111",
- "sFamily": "Optima",
- "sName": "Optima_ANTA_RIBALTA_RECTANGLE_2SASH_3T_12_3T",
- "sOpeningType": "ANTA_RIBALTA",
- "sShape": "RECTANGLE",
- "nSashQty": "2",
- "nSashPosition": "1"
- },
- {
- "sId": "202211",
- "sFamily": "Optima",
- "sName": "Optima_ANTA_RIBALTA_CHAMFER_2SASH_3T_12_3T",
- "sOpeningType": "ANTA_RIBALTA",
- "sShape": "CHAMFER",
- "nSashQty": "2",
+ "nSashQty": "3",
"nSashPosition": "1"
}
+
]
\ No newline at end of file
diff --git a/Test.UI/Properties/PublishProfiles/IISProfile.pubxml b/Test.UI/Properties/PublishProfiles/IISProfile.pubxml
new file mode 100644
index 0000000..30fae91
--- /dev/null
+++ b/Test.UI/Properties/PublishProfiles/IISProfile.pubxml
@@ -0,0 +1,25 @@
+
+
+
+
+ MSDeploy
+ true
+ Release
+ Any CPU
+ https://iis01.egalware.com/Lux/test/
+ false
+ 8f1d6298-c1e6-44e6-82bd-4128ae17c0c7
+ false
+ https://IIS01.egalware.com:8172/MsDeploy.axd
+ Default Web Site/Lux/test
+
+ true
+ WMSVC
+ true
+ true
+ jenkins
+ <_SavePWD>true
+ <_TargetId>IISWebDeploy
+ net8.0
+
+
\ No newline at end of file
diff --git a/Test.UI/Test.UI.csproj b/Test.UI/Test.UI.csproj
index 435a85f..e3221e7 100644
--- a/Test.UI/Test.UI.csproj
+++ b/Test.UI/Test.UI.csproj
@@ -34,7 +34,6 @@
-
diff --git a/WebWindow.Base/WebWindow.Base.csproj b/WebWindow.Base/WebWindow.Base.csproj
index 74a0418..ceaacca 100644
--- a/WebWindow.Base/WebWindow.Base.csproj
+++ b/WebWindow.Base/WebWindow.Base.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 2.7.9.1615
+ 2.7.9.2909
Annamaria Sassi
Egalware
Componente gestione JWD per LUX
@@ -28,3 +28,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebWindowComplex/ItemTable.cs b/WebWindowComplex/ItemTable.cs
index 2a4692c..7c6e185 100644
--- a/WebWindowComplex/ItemTable.cs
+++ b/WebWindowComplex/ItemTable.cs
@@ -12,12 +12,12 @@ namespace WebWindowComplex
private AreaTypes m_type;
public AreaTypes Type
{
- get
+ get
{
return m_type;
}
- set
- {
+ set
+ {
m_type = value;
}
}
@@ -95,7 +95,7 @@ namespace WebWindowComplex
}
}
- public ItemTable(AreaTypes elementType, string s_description,int n_row, int n_col, int n_numSash, int n_numChild)
+ public ItemTable(AreaTypes elementType, string s_description, int n_row, int n_col, int n_numSash, int n_numChild)
{
Type = elementType;
m_desc = s_description;
diff --git a/WebWindowComplex/Json/JsonUtility.cs b/WebWindowComplex/Json/JsonUtility.cs
index 429b986..bc198a5 100644
--- a/WebWindowComplex/Json/JsonUtility.cs
+++ b/WebWindowComplex/Json/JsonUtility.cs
@@ -24,6 +24,48 @@ namespace WebWindowComplex.Json
}
}
+ private string m_sMaterial;
+ [JsonProperty]
+ public string Material
+ {
+ get
+ {
+ return m_sMaterial;
+ }
+ set
+ {
+ m_sMaterial = value;
+ }
+ }
+
+ private string m_sColorMaterial;
+ [JsonProperty]
+ public string ColorMaterial
+ {
+ get
+ {
+ return m_sColorMaterial;
+ }
+ set
+ {
+ m_sColorMaterial = value;
+ }
+ }
+
+ private string m_sGlass;
+ [JsonProperty]
+ public string Glass
+ {
+ get
+ {
+ return m_sGlass;
+ }
+ set
+ {
+ m_sGlass = value;
+ }
+ }
+
private List m_AreaList = new List();
[JsonProperty]
public List AreaList
@@ -38,16 +80,25 @@ namespace WebWindowComplex.Json
}
}
- public JsonWindow(string ProfilePath)
+ public JsonWindow(string ProfilePath, string Material, string ColorMaterial, string Glass)
{
m_sProfilePath = ProfilePath;
+ m_sMaterial = Material;
+ m_sColorMaterial = ColorMaterial;
+ m_sGlass = Glass;
}
internal Window Deserialize()
{
- Window Window = new Window() { sProfilePath = m_sProfilePath };
+ Window Window = new Window()
+ {
+ sProfilePath = m_sProfilePath,
+ sMaterial = m_sMaterial,
+ sColorMaterial = m_sColorMaterial,
+ sGlass = m_sGlass
+ };
foreach (var Area in AreaList)
- Window.AreaList.Add((Frame)Area.Deserialize(null,Window));
+ Window.AreaList.Add((Frame)Area.Deserialize(null, Window));
return Window;
}
}
@@ -402,7 +453,7 @@ namespace WebWindowComplex.Json
{
Split.AreaList.Add(AreaDeserealized);
}
- }
+ }
return Split;
}
}
@@ -426,7 +477,7 @@ namespace WebWindowComplex.Json
Split.AreaList.Add(AreaDeserealized);
}
}
-
+
return Split;
}
}
@@ -470,7 +521,7 @@ namespace WebWindowComplex.Json
{
Fill.AreaList.Add(AreaDeserealized);
}
- }
+ }
return Fill;
}
}
diff --git a/WebWindowComplex/ParametriOpzioni.cs b/WebWindowComplex/ParametriOpzioni.cs
new file mode 100644
index 0000000..b055d1e
--- /dev/null
+++ b/WebWindowComplex/ParametriOpzioni.cs
@@ -0,0 +1,196 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WebWindowComplex
+{
+ public partial class ParametriOpzioni
+ {
+ private ParametriOpzioniParametri[] itemsField;
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute("Parametri", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public ParametriOpzioniParametri[] Items
+ {
+ get
+ {
+ return this.itemsField;
+ }
+ set
+ {
+ this.itemsField = value;
+ }
+ }
+ }
+
+ public partial class ParametriOpzioniParametri
+ {
+ private string nomeParametroField;
+
+ private string descrizioneParametroField;
+
+ private string valoreCorrenteField;
+
+ private string tipoField;
+
+ private string visibleField;
+
+ private string ricalcolaSeModificatoField;
+
+ private ParametriOpzioniParametriOpzioni[] opzioniField;
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string NomeParametro
+ {
+ get
+ {
+ return this.nomeParametroField;
+ }
+ set
+ {
+ this.nomeParametroField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string DescrizioneParametro
+ {
+ get
+ {
+ return this.descrizioneParametroField;
+ }
+ set
+ {
+ this.descrizioneParametroField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string ValoreCorrente
+ {
+ get
+ {
+ return this.valoreCorrenteField;
+ }
+ set
+ {
+ this.valoreCorrenteField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string Tipo
+ {
+ get
+ {
+ return this.tipoField;
+ }
+ set
+ {
+ this.tipoField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string Visible
+ {
+ get
+ {
+ return this.visibleField;
+ }
+ set
+ {
+ this.visibleField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string RicalcolaSeModificato
+ {
+ get
+ {
+ return this.ricalcolaSeModificatoField;
+ }
+ set
+ {
+ this.ricalcolaSeModificatoField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute("Opzioni", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public ParametriOpzioniParametriOpzioni[] Opzioni
+ {
+ get
+ {
+ return this.opzioniField;
+ }
+ set
+ {
+ this.opzioniField = value;
+ }
+ }
+ }
+
+ public partial class ParametriOpzioniParametriOpzioni
+ {
+ private string nomeParametroField;
+
+ private string descrizioneOpzioneField;
+
+ private string valoreField;
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string NomeParametro
+ {
+ get
+ {
+ return this.nomeParametroField;
+ }
+ set
+ {
+ this.nomeParametroField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string DescrizioneOpzione
+ {
+ get
+ {
+ return this.descrizioneOpzioneField;
+ }
+ set
+ {
+ this.descrizioneOpzioneField = value;
+ }
+ }
+
+ ///
+ //[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string Valore
+ {
+ get
+ {
+ return this.valoreField;
+ }
+ set
+ {
+ this.valoreField = value;
+ }
+ }
+ }
+
+}
+
+
diff --git a/WebWindowComplex/SplitParent.cs b/WebWindowComplex/SplitParent.cs
deleted file mode 100644
index 4f4a602..0000000
--- a/WebWindowComplex/SplitParent.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace WebWindowComplex
-{
- public class SplitParent
- {
- private Json.WindowConst.AreaTypes m_Type;
- public Json.WindowConst.AreaTypes Type
- {
- get
- {
- return m_Type;
- }
- set
- {
- m_Type = value;
- }
- }
-
- private string m_Description;
- public string Description
- {
- get
- {
- return m_Description;
- }
- set
- {
- m_Description = value;
- }
- }
-
- ///
- /// Proprietà per sapere se sono in un'anta
- ///
- private bool m_IntoSash;
- public bool IntoSash
- {
- get
- {
- return m_IntoSash;
- }
- set
- {
- m_IntoSash = value;
- }
- }
-
- private Area m_Split;
- public Area Split
- {
- get
- {
- return m_Split;
- }
- set
- {
- m_Split = value;
- }
- }
-
- private Area m_Splitted;
- public Area Splitted
- {
- get
- {
- return m_Splitted;
- }
- set
- {
- m_Splitted = value;
- }
- }
-
- public SplitParent(Json.WindowConst.AreaTypes vType,string sDescrip, bool b_IntoSash, Area v_Split, Area v_Splitted)
- {
- Type = vType;
- Description = sDescrip;
- IntoSash = b_IntoSash;
- Split = v_Split;
- Splitted = v_Splitted;
- }
- }
-}
diff --git a/WebWindowComplex/TableComp.razor b/WebWindowComplex/TableComp.razor
index a56c256..1dd914a 100644
--- a/WebWindowComplex/TableComp.razor
+++ b/WebWindowComplex/TableComp.razor
@@ -3,18 +3,21 @@
- changeHandle(sash)">
+ changeHandle(sash, item)">
@@ -603,7 +483,7 @@
int IndexModify = i * 2 + j;
-
+
}
@@ -621,19 +501,19 @@
Sash joints
-
+
-
+
-
+
@foreach (Joint joint in item.JointList)
{
-
+
-
+
-
+
@@ -796,11 +676,12 @@
Generic
-
-
-
+
}
else if (currStep == CompileStep.Frame)
{
@@ -153,101 +153,117 @@
m_PreviousWindow = m_CurrWindow;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Dimension
- @foreach (FrameDimension dimension in FrameWindow.DimensionList)
- {
-
- @dimension.sName
-
- mm
-
- }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
Frame joints
-
-
-
-
-
-
-
-
-
-
-
- @foreach (Joint joint in FrameWindow.JointList)
- {
-
-
-
-
-
-
-
-
- }
-
-
-
- @if (!(FrameWindow.AreaList[0] is Split))
- {
+
-
Frame
+
Dimension
+ @foreach (FrameDimension dimension in FrameWindow.DimensionList)
+ {
+
+ @dimension.sName
+
+ mm
+
+ }
+
+
+
+
+
+
+
Threshold
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Frame joints
+
+
+
+
+
+
+
+
+
+
+
+ @foreach (Joint joint in FrameWindow.JointList)
+ {
+
+
+
+
+
+
+
+
+ }
+
+
+
+ @if (!(FrameWindow.AreaList[0] is Split))
+ {
+
+
+
+
Frame
+
+
+
+
+
+
+ }
+
+ @if (m_SashList.Count == 0)
+ {
+
+
+
+
+
Bottom rail
+
+ Quantity
+
+
}
- @if (m_SashList.Count == 0)
- {
-
-
-
-
-
Bottom rail
-
- Quantity
-
-
-
-
-
-
- }
}
@@ -260,86 +276,97 @@
@for (int i = 0; i < SplitList.Count; i++)
{
Split currSplit = SplitList[i];
-
+
- @if ((currSplit.ParentArea is Splitted || currSplit.ParentArea is Sash) && SashList.Count > 0)
- {
- @for (int j = 0; j < SashList.Count; j++)
- {
- @if (SashList[j].Equals(currSplit.ParentArea))
- {
-
@("Sash " + (j + 1))
- }
- else if (SashList[j].Equals(currSplit.ParentArea.ParentArea))
- {
- @for (int k = 0; k < SashList[j].AreaList.Count; k++)
- {
- @if (SashList[j].AreaList[k].AreaList[0].Equals(currSplit))
- {
-
@("Sash " + (j + 1) + " - anta " + (k + 1))
- }
- }
- }
- }
-
- }
- else
- {
-
@("Frame")
- }
+
@(descParentSplit(currSplit))
Split
- @if (currSplit.nSplitQty == 1)
+ @if ((currSplit.nSplitQtyVert == 1 && currSplit.nSplitQtyHoriz == 1) ||
+ (currSplit.nSplitQtyVert == 1 && currSplit.nSplitQtyHoriz == 0) ||
+ (currSplit.nSplitQtyVert == 0 && currSplit.nSplitQtyHoriz == 1))
{
}
-
}
-
+
+
@for (int i = 0; i < SplittedList.Count; i++)
{
Splitted currSplitted = SplittedList[i];
@@ -360,7 +388,7 @@
-
+
@for (int j = 0; j < SashList.Count; j++)
@@ -368,11 +396,11 @@
int Index = j;
-
+
}
-
+
@@ -393,157 +421,101 @@
{
Sash item = SashList[currSash];
-
-
-
-
-
-
-
Orientation
-
-
-
-
-
-
-
+
+
+
-
-
-
-
Bottom rail
-
- Quantity
-
-
-
-
-
-
-
- @for (int i = 0; i <= item.SashList.Count / 2; i++)
- {
- for (int j = 0; j < 2 && (i * 2 + j <= item.SashList.Count - 1); j++)
- {
- SashDimension sash = item.SashList[i * 2 + j];
-
-
-
- @if (item.SashList.Count == 1)
- {
-
Opening
- }
- else
- {
-
Sash opening @(i * 2 + j + 1)
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dimension
-
- %
-
-
-
- changeHandle(sash)">
-
-
-
-
-
-
- @for (int k = 1; k <= i * 2 + j; k++)
- {
- int IndexCopy = k;
- int IndexModify = i * 2 + j;
-
-
-
-
-
- }
-
-
-
-
- }
- }
-
-
-
-
-
-
Sash joints
-
-
-
-
-
-
-
-
-
-
-
- @foreach (Joint joint in item.JointList)
- {
+
+
+
+
+
Orientation
-
-
-
-
-
+
+
+
+
- }
+
+
+
+
+
+
+
Bottom rail
+
+ Quantity
+
+
+
-
- @for (int i = 0; i < item.AreaList.Count; i++)
+
+ @for (int i = 0; i <= item.SashList.Count / 2; i++)
{
- Area anta;
- @if (item.AreaList[i] is Splitted)
+ for (int j = 0; j < 2 && (i * 2 + j <= item.SashList.Count - 1); j++)
{
- anta = item.AreaList[i];
- }
- else
- {
- anta = item;
- }
- @if (!(anta.AreaList[0] is Split))
- {
-
+ SashDimension sash = item.SashList[i * 2 + j];
+
-
Anta @(i + 1)
+ @if (item.SashList.Count == 1)
+ {
+
Opening
+ }
+ else
+ {
+
Sash opening @(i * 2 + j + 1)
+ }
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Dimension
+
+ %
+
+
+
+ changeHandle(sash, item)">
+
+
+
+
+
+
+ @for (int k = 1; k <= i * 2 + j; k++)
+ {
+ int IndexCopy = k;
+ int IndexModify = i * 2 + j;
+
+
+
+
+
+ }
@@ -551,33 +523,91 @@
}
}
-
-