@if (string.IsNullOrEmpty(LiveData.CurrJwd))
{
@if (currStep == CompileStep.Template && ListPayload.TemplateDTO != null)
{
| # |
Image |
Description |
@foreach (var item in ListPayload.TemplateDTO)
{
string colorClass = "";
@if (SelTemplateDTO != null && item.Index == SelTemplateDTO.Index)
colorClass = "table-success";
else
colorClass = "";
DoSelect(item)">
| @item.Index |
 |
@item.Description |
}
}
}
@if (currStep == CompileStep.Tree)
{
@for (int i = 0; i < ItemTableList.Count; i++)
{
@for (int j = 0; j < m_maxCol; j++)
{
CompileStep cs = CompileStep.Frame;
int ind = -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;
ind = ItemTableList[i].IndexItem;
}
else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SASH)
{
cs = CompileStep.Sash;
ind = ItemTableList[i].IndexItem;
}
else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL)
{
cs = CompileStep.Fill;
ind = ItemTableList[i].IndexItem;
}
|
|
}
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
Joints
@foreach (Joint joint in FrameWindow.JointList)
{
}
@if (m_SashList.Count == 0)
{
Bottom rail
}
@if (!(FrameWindow.AreaList[0] is Split) || (SashList.Count == 0 && SplitList.Count == 0))
{
Area frame
@if (SashList.Count == 0 && SplitList.Count == 0)
{
}
@if (!(FrameWindow.AreaList[0] is Split))
{
}
}
}
else if (currStep == CompileStep.Split)
{
@if (currSplit >= SplitList.Count || currSplit == -1)
{
currStep = CompileStep.Tree;
}
else
{
Split item = SplitList[currSplit];
Split
@if ((item.nSplitQtyVert == 1 && item.nSplitQtyHoriz == 0) || (item.nSplitQtyVert == 0 && item.nSplitQtyHoriz == 1))
{
}
@if (item.nSplitQtyVert > 0)
{
}
@if (item.nSplitQtyHoriz > 0)
{
}
@if (item.SplitVertList.Count > 0 && item.SplitHorizList.Count > 0)
{
@foreach (var dim in item.SplitVertList)
{
Width
%
}
@foreach (var dim in item.SplitHorizList)
{
Height
%
}
}
else if (item.SplitHorizList.Count > 0)
{
@foreach (var dim in item.SplitHorizList)
{
}
}
else if (item.SplitVertList.Count > 0)
{
@foreach (var dim in item.SplitVertList)
{
}
}
@if (item.SelSplitShape == Json.WindowConst.SplitShapes.GRID)
{
}
}
}
else if (currStep == CompileStep.Sash)
{
@if (currSash >= SashList.Count || currSash == -1)
{
currStep = CompileStep.Tree;
}
else
{
Sash item = SashList[currSash];
@if (SashList.Count > 1)
{
Window @(currSash + 1)
}
else
{
Window
}
Joints
@foreach (Joint joint in item.JointList)
{
}
@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;
@if (item.AreaList[i * 2 + j] is Splitted)
{
anta = item.AreaList[i * 2 + j];
}
else
{
anta = item;
}
@if (item.SashList.Count == 1)
{
Sash
}
else
{
Sash @(i * 2 + j + 1)
}
Dimension
%
@if (!(anta.AreaList[0] is Split))
{
}
@for (int k = 0; k <= item.SashList.Count - 1; k++)
{
@if (k != i * 2 + j)
{
int IndexCopy = k;
int IndexModify = i * 2 + j;
}
}
}
}
}
}
else if (currStep == CompileStep.Fill)
{
@if (currFill >= FillList.Count || currFill == -1)
{
currStep = CompileStep.Tree;
}
else
{
Fill item = FillList[currFill];
Fill @(currFill + 1)
Selected all fill
@for (int i = 0; i < SplittedList.Count; i++)
{
Splitted currSplitted = SplittedList[i];
@if (currSplitted.AreaList[0].Equals(item))
{
@if (SplittedList.Count > 1)
{
Area split @(i + 1)
}
else
{
Area split
}
@for (int j = 0; j < SashList.Count; j++)
{
int Index = j;
}
}
}
}
}
else if (currStep == CompileStep.General)
{
Fill type
Color
}