@if (currStep != CompileStep.Template) {
}
@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.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 (m_SashList.Count == 0) {
Bottom rail
Quantity
}
} else if (currStep == CompileStep.Split) { int numSplit = 0;
@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 if (currSplit.ParentArea is Splitted) { for(int j = 0; j < SplittedList.Count; j++) { if (SplittedList[j].Equals(currSplit.ParentArea)) { numSplit++;
@("Area di split " + numSplit)
} } } else {
@("Frame")
}
Split
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 %
}
}
} else if (currStep == CompileStep.Sash) { @if (currSash >= SashList.Count || currSash == -1) { currStep = CompileStep.Frame; } 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)
} }
} } 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
}