@if (string.IsNullOrEmpty(CurrJwd))
{
@if (currStep == CompileStep.Template)
{
| # |
Image |
Description |
@foreach (var item in IN_TemplateDTOList)
{
string colorClass = "";
@if (SelTemplateDTO != null && item.Index == SelTemplateDTO.Index)
colorClass = "table-success";
else
colorClass = "";
DoSelect(item)">
| @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
}
Threshold
Frame joints
@foreach (Joint joint in FrameWindow.JointList)
{
}
@if (!(FrameWindow.AreaList[0] is Split) || (SashList.Count == 0 && SplitList.Count == 0))
{
Area frame
@if (!(FrameWindow.AreaList[0] is Split))
{
}
@if(SashList.Count == 0 && SplitList.Count == 0)
{
}
}
@if (m_SashList.Count == 0)
{
}
}
else if (currStep == CompileStep.Split)
{
@for (int i = 0; i < SplitList.Count; i++)
{
Split currSplit = SplitList[i];
@(descParentSplit(currSplit))
Split
@if ((currSplit.nSplitQtyVert == 1 && currSplit.nSplitQtyHoriz == 0) || (currSplit.nSplitQtyVert == 0 && currSplit.nSplitQtyHoriz == 1))
{
}
@if (currSplit.nSplitQtyVert > 0)
{
}
@if (currSplit.nSplitQtyHoriz > 0)
{
}
@if (currSplit.SplitVertList.Count > 0)
{
@foreach (var dim in currSplit.SplitVertList)
{
Width
%
}
}
@if (currSplit.SplitHorizList.Count > 0)
{
@foreach (var dim in currSplit.SplitHorizList)
{
Height
%
}
}
@if(currSplit.SelSplitShape == Json.WindowConst.SplitShapes.GRID)
{
}
}
@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];
Orientation
@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];
Area anta = item.AreaList[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)
{
}
Hardware
}
}
else if (currStep == CompileStep.Fill)
{
Area Fill
@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
}
}