137 lines
5.9 KiB
Plaintext
137 lines
5.9 KiB
Plaintext
|
|
<div class="card shadow-sm rounded mb-4">
|
|
<div class="card-header bg-light bg-opacity-25">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<div class="px-2">
|
|
<h5>@(descParentSplit(CurrItem))</h5>
|
|
</div>
|
|
<div class="px-2">
|
|
<button class="btn btn-close" @onclick="ReqClose"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body py-2">
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<h5>Split</h5>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
@if ((CurrItem.nSplitQtyVert == 1 && CurrItem.nSplitQtyHoriz == 0) || (CurrItem.nSplitQtyVert == 0 && CurrItem.nSplitQtyHoriz == 1))
|
|
{
|
|
<div class="input-group mb-2 justify-content-center">
|
|
<button class="btn btn-outline-secondary btn-sm" @onclick="() => SwapTwoAree(CurrItem)">Swap Aree</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<div class="input-group mb-2 justify-content-center">
|
|
<button class="btn btn-outline-secondary btn-sm" @onclick="() => RemoveArea(CurrItem)">Remove split</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<label class="input-group-text">Shape</label>
|
|
<select class="form-select" @bind="@CurrItem.SelSplitShapeIndex">
|
|
@foreach (var shapeType in CurrItem.SplitShapeList)
|
|
{
|
|
<option value=@(shapeType.Id)>@(shapeType.Name)</option>
|
|
}
|
|
@* <option value="0">Vertical</option>
|
|
<option value="1">Horizontal</option>
|
|
<option value="2">Grid</option>
|
|
<option value="3">Custom</option> *@
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
@if (CurrItem.nSplitQtyVert > 0)
|
|
{
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">QtyVert</span>
|
|
<input type="number" class="form-control" @bind="@CurrItem.nSplitQtyVert">
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (CurrItem.nSplitQtyHoriz > 0)
|
|
{
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">QtyHoriz</span>
|
|
<input type="number" class="form-control" @bind="@CurrItem.nSplitQtyHoriz">
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="row">
|
|
@if (CurrItem.SplitVertList.Count > 0 && CurrItem.SplitHorizList.Count > 0)
|
|
{
|
|
<div class="col-md-12 col-lg-6">
|
|
@foreach (var dim in CurrItem.SplitVertList)
|
|
{
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">Width</span>
|
|
<input type="number" class="form-control" @bind="@dim.dDimension">
|
|
<span class="input-group-text">%</span>
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="col-md-12 col-lg-6">
|
|
@foreach (var dim in CurrItem.SplitHorizList)
|
|
{
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">Height</span>
|
|
<input type="number" class="form-control" @bind="@dim.dDimension">
|
|
<span class="input-group-text">%</span>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
else if (CurrItem.SplitHorizList.Count > 0)
|
|
{
|
|
@foreach (var dim in CurrItem.SplitHorizList)
|
|
{
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">Height</span>
|
|
<input type="number" class="form-control" @bind="@dim.dDimension">
|
|
<span class="input-group-text">%</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
else if (CurrItem.SplitVertList.Count > 0)
|
|
{
|
|
@foreach (var dim in CurrItem.SplitVertList)
|
|
{
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">Width</span>
|
|
<input type="number" class="form-control" @bind="@dim.dDimension">
|
|
<span class="input-group-text">%</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
@if (CurrItem.SelSplitShape == Json.WindowConst.SplitShapes.GRID)
|
|
{
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="d-flex justify-content-start fs-5 mb-2">
|
|
<div class="px-1">
|
|
<input class="form-check-input ml-auto" type="checkbox" name="SplitStartVert" checked="@CurrItem.bSplitStartVert" @oninput="(ChangeEventArgs e) => ChangeStartVert(e, CurrItem)">
|
|
</div>
|
|
<div class="px-2">
|
|
<label class="form-check-label fs-6 text-dark">StartVert</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|