Aggiornato AGBOptionText per testi non editabili

This commit is contained in:
Annamaria Sassi
2025-11-07 10:36:56 +01:00
parent a08b8d4eb5
commit 4e21a36fef
3 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -78,9 +78,9 @@ namespace WebWindowComplex.Compo
{
if (FrameWindow.SelShapeIndex != value)
{
FrameWindow.SelShapeIndex = value;
// richiesta reset dict shape
_ = EC_ReqResetDictShape.InvokeAsync(true);
FrameWindow.SelShapeIndex = value;
foreach(var s in SashList)
{
s.SelHardwareFromId = "000000";
+15 -6
View File
@@ -1,9 +1,18 @@
<div class="input-group mb-2">
<label class="input-group-text">@(CurrOpt.sName)</label>
<select class="form-select" @bind="CurrValue">
@foreach (var currValueCombo in CurrOpt.ValueList)
{
<option value="@currValueCombo">@currValueCombo</option>
}
</select>
@if (CurrOpt.ValueList.Count > 0)
{
<select class="form-select" @bind="CurrValue">
@foreach (var currValueCombo in CurrOpt.ValueList)
{
<option value="@currValueCombo">@currValueCombo</option>
}
</select>
}
else
{
<select class="form-select" @bind="CurrValue">
<option value="@CurrOpt.sValue">@CurrOpt.sValue</option>
</select>
}
</div>
+10 -3
View File
@@ -50,9 +50,16 @@ namespace WebWindowComplex.Models
public AGBOptionText(ParametriOpzioniParametri HdwOptionParam) : base(HdwOptionParam)
{
m_Type = HwOptionTypes.TEXT;
foreach (var Value in HdwOptionParam.Opzioni)
m_ValueList.Add(Value.Valore);
m_sValue = m_ValueList.FirstOrDefault(x => x == HdwOptionParam.ValoreCorrente) ?? "";
if(HdwOptionParam.Opzioni != null)
{
foreach (var Value in HdwOptionParam.Opzioni)
m_ValueList.Add(Value.Valore);
m_sValue = m_ValueList.FirstOrDefault(x => x == HdwOptionParam.ValoreCorrente) ?? "";
}
else
{
m_sValue = HdwOptionParam.ValoreCorrente;
}
}
#endregion Public Constructors