@if (currStep != CompileStep.Template) {
}
@if (string.IsNullOrEmpty(CurrJwd)) { @if (currStep == CompileStep.Template) { @foreach (var item in IN_TemplateDTOList) { string colorClass = ""; @if (SelTemplateDTO != null && item.Index == SelTemplateDTO.Index) colorClass = "table-success"; else colorClass = ""; }
# Image Description
@item.Index @item.Description
} } @if (currStep == CompileStep.Gerarchia) {
@for (int i = 0; i < ItemTableList.Count; i++) { @for (int j = 0; j < m_maxCol; j++) { CompileStep cs = CompileStep.Frame; int indSash = -1; @if (j + 1 == ItemTableList[i].Col) { @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FRAME) { cs = CompileStep.Frame; } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SPLIT) { cs = CompileStep.Split; } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SASH) { cs = CompileStep.Sash; indSash = ItemTableList[i].NumSash; } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL) { cs = CompileStep.Fill; } } else { } } }
@FillTable(i, j)
} else if (currStep == CompileStep.Frame) { @if (m_CurrWindow != null) { 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
}
@if (m_SashList.Count == 0) {
Bottom rail
Quantity
}
} else if (currStep == CompileStep.Split) {
@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")
}
Split
@if (currSplit.nSplitQty == 1) {
}
Number
@foreach (var dim in currSplit.SplitPositionList) { string desc = ""; @if (currSplit.SelSplitShape == Json.WindowConst.SplitShapes.VERTICAL) { @if (currSplit.SplitPositionList.IndexOf(dim) == 0) { desc = "Larg. area sx split"; } else { desc = "Larg. area dx split"; } } else { @if (currSplit.SplitPositionList.IndexOf(dim) == 0) { desc = "Altez. area sotto split"; } else { desc = "Altez. area sopra split"; } }
@desc %
}
} @for (int i = 0; i < SplittedList.Count; i++) { Splitted currSplitted = SplittedList[i];
Area split
@for (int j = 0; j < SashList.Count; j++) { int Index = j;
}
}
} else if (currStep == CompileStep.Sash) { @if (currSash >= SashList.Count || currSash == -1) { currStep = CompileStep.Gerarchia; } else { Sash item = SashList[currSash];
Number
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 %
@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) {
}
@for (int i = 0; i < item.AreaList.Count; i++) { Area anta; @if (item.AreaList[i] is Splitted) { anta = item.AreaList[i]; } else { anta = item; } @if (!(anta.AreaList[0] is Split)) {
Anta @(i + 1)
} }
Hardware
} } else if (currStep == CompileStep.Fill) {
Fill Area
@for (int i = 0; i < FillList.Count; i += 2) { Fill currFill = FillList[i];
@if (FillList.Count == 1) {
Fill
} else {
Fill @(FillList.IndexOf(currFill) + 1)
}
@if (i + 1 < FillList.Count) { Fill nextFill = FillList[i + 1];
@if (FillList.Count == 1) {
Fill
} else {
Fill @(FillList.IndexOf(nextFill) + 1)
}
} }
} else if (currStep == CompileStep.General) {
Generic
Fill type
Color
@if (m_SashList.Count > 0) {
Hardware
}
}
@if (currStep != CompileStep.Template) {
@outSvg
}