@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)
{
}
else if (currStep == CompileStep.Frame)
{
@if (m_CurrWindow != null)
{
m_PreviousWindow = m_CurrWindow;
}
}
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];
}
}
else if (currStep == CompileStep.General)
{
}