31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
@using static WebWindowComplex.LayoutConst
|
|
<div class="input-group mb-2">
|
|
@if (User)
|
|
{
|
|
<span class="input-group-text">@((PositionJoints)(CurrRec.nIndex - 1))</span>
|
|
<input type="text" readonly class="form-control" value="@(CurrRec.JointTypeList.FirstOrDefault(x => x.Id == (int)CurrRec.SelJointType))">
|
|
}
|
|
else
|
|
{
|
|
<label class="input-group-text">@((PositionJoints)(CurrRec.nIndex - 1))</label>
|
|
@if (CurrRec.ParentArea is Frame &&
|
|
(CurrRec.ParentArea.ParentWindow.AreaList.First().SelShapeIndex == (int)Json.WindowConst.Shapes.DOUBLEARC ||
|
|
CurrRec.ParentArea.ParentWindow.AreaList.First().SelShapeIndex == (int)Json.WindowConst.Shapes.ARC_FULL ||
|
|
CurrRec.ParentArea.ParentWindow.AreaList.First().SelShapeIndex == (int)Json.WindowConst.Shapes.THREECENTERARC) &&
|
|
(CurrRec.nIndex == 3 || CurrRec.nIndex == 4))
|
|
{
|
|
<select class="form-select" @bind="@CurrJoint">
|
|
<option value="@(CurrJoint)">@(CurrRec.JointTypeList.First(x => x.Id == CurrJoint).Name)</option>
|
|
</select>
|
|
}
|
|
else
|
|
{
|
|
<select class="form-select" @bind="@CurrJoint">
|
|
@foreach (var typeJoint in CurrRec.JointTypeList)
|
|
{
|
|
<option value="@(typeJoint.Id)">@(typeJoint.Name)</option>
|
|
}
|
|
</select>
|
|
}
|
|
}
|
|
</div> |