Gestito parametro di ingresso lista Profili
This commit is contained in:
@@ -52,7 +52,7 @@ namespace WebWindowComplex
|
||||
/// Preselezione valori
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public SelectPayload? CurrSelection { get; set; } = null;
|
||||
public SelectPayload? SelectionData { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Richiesta azione al parent
|
||||
@@ -557,6 +557,7 @@ namespace WebWindowComplex
|
||||
try
|
||||
{
|
||||
WindowFromJson = JsonConvert.DeserializeObject<JsonWindow>(LiveData.CurrJwd, new PolymorphicJsonConverter()) ?? new JsonWindow("", "", "", "");
|
||||
UpdateInputList(WindowFromJson);
|
||||
setCurrWindow(WindowFromJson);
|
||||
//SOLO SE non sono in edit...
|
||||
if (!editLock)
|
||||
@@ -748,18 +749,28 @@ namespace WebWindowComplex
|
||||
/// <summary>
|
||||
/// Metodo per settare i parmateri di ingresso selezionati
|
||||
/// </summary>
|
||||
protected void UpdateSelParameter()
|
||||
protected void UpdateInputList(JsonWindow WindowFromJson)
|
||||
{
|
||||
Frame.m_AllThresholdList = ListPayload.Threshold;
|
||||
//Frame.m_AllThresholdList = ListPayload.Threshold;
|
||||
string profile = WindowFromJson.ProfilePath;
|
||||
Window.m_ParameterList = ListPayload.ProfileList.FirstOrDefault(x => x.ProfileName.Equals(profile)).ParameterDict;
|
||||
Frame.m_AllThresholdList = ListPayload.ProfileList.FirstOrDefault(x => x.ProfileName.Equals(profile)).ThresholdList;
|
||||
Sash.m_HardwareCompleteList = ListPayload.Hardware;
|
||||
Sash.s_FamilyHardwareList = ListPayload.FamilyHardware;
|
||||
if (CurrSelection != null && CurrSelection.IsValid())
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Metodo per settare i parmateri di ingresso selezionati
|
||||
/// </summary>
|
||||
protected void UpdateSelParameter()
|
||||
{
|
||||
if (SelectionData != null && SelectionData.IsValid())
|
||||
{
|
||||
SelFamilyHardware = CurrSelection.FamilyHardware ?? "";
|
||||
SelColorMaterial = CurrSelection.ColorMaterial ?? "";
|
||||
SelMaterial = CurrSelection.Material ?? "";
|
||||
SelGlass = CurrSelection.Glass ?? "";
|
||||
SelProfile = CurrSelection.Profile ?? "";
|
||||
SelFamilyHardware = SelectionData.FamilyHardware ?? "";
|
||||
SelColorMaterial = SelectionData.ColorMaterial ?? "";
|
||||
SelMaterial = SelectionData.Material ?? "";
|
||||
SelGlass = SelectionData.Glass ?? "";
|
||||
SelProfile = SelectionData.Profile ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user