197 lines
8.9 KiB
Plaintext
197 lines
8.9 KiB
Plaintext
@using WebWindowComplex.Models
|
|
@using static WebWindowComplex.Json.WindowConst
|
|
|
|
<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>@Traduci("CWSash_SashGoup") @(SashGroupList.Count > 1 ? (SashGroupList.IndexOf(CurrSashGroup) + 1) : "")</h5>
|
|
</div>
|
|
@if (!BaseUser)
|
|
{
|
|
<div class="px-2">
|
|
<div class="input-group mb-2 justify-content-center">
|
|
<button class="btn btn-outline-secondary btn-sm" @onclick="() => RemoveArea()">@Traduci("CWSash_RemoveSash")</button>
|
|
</div>
|
|
</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 pb-3">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="d-flex justify-content-start align-items-center" style="min-height: 2.5rem;">
|
|
<h6 class="fw-bold">@Traduci("CWSash_Tipology")</h6>
|
|
</div>
|
|
@if (BaseUser)
|
|
{
|
|
<div class="row">
|
|
@foreach (var i in CurrSashGroup.OrientationSashTypeList)
|
|
{
|
|
<div class="col-auto">
|
|
<button type="button"
|
|
class="btn-iconeOff @ButtonTipologyCss(i.Id) mx-1 px-1 py-1">
|
|
<img class="img-fluid" src="@GetImageTipologyPath(i.Name)" title="@Traduci("CWSash_"+i.Name)" width="40" />
|
|
</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
@foreach (var i in CurrSashGroup.OrientationSashTypeList)
|
|
{
|
|
<div class="col-auto">
|
|
<button type="button"
|
|
class="btn-icone @ButtonTipologyCss(i.Id) mx-1 px-1 py-1" @onclick="() => SelTipologySash(i.Id)">
|
|
<img class="img-fluid" src="@GetImageTipologyPath(i.Name)" title="@Traduci("CWSash_" + i.Name)" width="40" />
|
|
</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">@Traduci("CWSash_QtySash")</span>
|
|
@if (BaseUser)
|
|
{
|
|
<input type="number" readonly class="form-control" value="@SashQty">
|
|
}
|
|
else
|
|
{
|
|
<input type="number" class="form-control" @bind="@SashQty">
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">@Traduci("CWSash_QtyBottomR")</span>
|
|
@if (BaseUser)
|
|
{
|
|
<input type="number" readonly class="form-control" value="@SashBottomRailQty">
|
|
}
|
|
else
|
|
{
|
|
@if (CurrSashGroup.SashBottomRailQty > 0)
|
|
{
|
|
<BottomRail CurrArea="CurrSashGroup" EC_UpdateBottomRail="UpdateBottomRail"></BottomRail>
|
|
}
|
|
<input type="number" class="form-control" @bind="@SashBottomRailQty">
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="row justify-content-between align-items-center">
|
|
<div class="col d-flex justify-content-start align-items-center">
|
|
<h6 class="fw-bold">@Traduci("CWSash_Hardware")</h6>
|
|
</div>
|
|
</div>
|
|
@if (BaseUser)
|
|
{
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">@Traduci("CWSash_Family")</span>
|
|
<input type="text" readonly class="form-control" value="@CurrSashGroup.SelHardware.FamilyName">
|
|
</div>
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text">@Traduci("CWSash_Type")</span>
|
|
<input type="text" readonly class="form-control" value="@CurrSashGroup.SelHardware.Description">
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="input-group mb-2">
|
|
<label class="input-group-text">@Traduci("CWSash_Family")</label>
|
|
<select class="form-select" @bind="@FamilyHardware">
|
|
@if (Sash.s_FamilyHardwareList == null || Sash.s_FamilyHardwareList.Count == 0)
|
|
{
|
|
<option value="000000">CUSTOM</option>
|
|
}
|
|
else
|
|
{
|
|
@foreach (var familyHw in Sash.s_FamilyHardwareList)
|
|
{
|
|
<option value="@familyHw">@familyHw</option>
|
|
}
|
|
}
|
|
</select>
|
|
</div>
|
|
@if (string.IsNullOrEmpty(CurrSashGroup.SashShape))
|
|
{
|
|
<div class="input-group mb-2">
|
|
<label class="input-group-text">@Traduci("CWSash_Type")</label>
|
|
<select class="form-select">
|
|
<option value="000000">Custom HW</option>
|
|
</select>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="input-group mb-2">
|
|
<label class="input-group-text">@Traduci("CWSash_Type")</label>
|
|
<select class="form-select" @bind="SelHwType">
|
|
<option value="000000">Custom HW</option>
|
|
@foreach (var hlItem in CurrSashGroup.HardwareList)
|
|
{
|
|
<option value="@hlItem.Id">@hlItem.Description</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
}
|
|
|
|
}
|
|
</div>
|
|
<div class="col-md-12 col-lg-6">
|
|
<AreaHwOption EC_UpdateHwOpt="UpdateOpt"
|
|
EC_FirstHwOptionList="FirstHwOptionList">
|
|
</AreaHwOption>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card shadow-sm rounded mb-4">
|
|
<div class="card-body py-2">
|
|
<div class="d-flex justify-content-end align-items-center">
|
|
<div class="col-md-3">
|
|
<select class="form-select" @bind="@MeasureType">
|
|
<option value="@MeasureTypes.ABSOLUTE">@Traduci("CWSash_Absolute") (mm)</option>
|
|
<option value="@MeasureTypes.PROPORTIONAL">@Traduci("CWSash_Proportional") (*)</option>
|
|
<option value="@MeasureTypes.PERCENTAGE">@Traduci("CWSash_Percentage") (%)</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<select class="form-select" @bind="@ChangeType">
|
|
<option value="0">@Traduci("CWSash_SashMeasure")</option>
|
|
<option value="1">@Traduci("CWSash_GlassMeasure")</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
@for (int i = 0; i < CurrSashGroup.SashList.Count; i++)
|
|
{
|
|
<div class="@AreaSashCss(i)">
|
|
<AreaSash CurrSashDim="CurrSashGroup.SashList[i]"
|
|
IndexSash="i"
|
|
CurrOpening="@GetCurrOpening(CurrSashGroup.SashList[i])"
|
|
EC_UpdateSash="UpdateSash"
|
|
EC_UpdateSashDim="UpdateSashDimension"
|
|
EC_ReqResetDict="ResetDict"
|
|
EC_EditView="EditView">
|
|
</AreaSash>
|
|
</div>
|
|
@if (i < CurrSashGroup.SashList.Count - 1)
|
|
{
|
|
<hr />
|
|
}
|
|
}
|
|
</div>
|
|
</div> |