Eliminato template da WebWindowComplex
This commit is contained in:
@@ -84,12 +84,6 @@ namespace WebWindowComplex
|
||||
[Parameter]
|
||||
public EventCallback<bool> EC_OnClose { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Evento selezione template
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<TemplateSelectDTO> EC_OnSelectedTemplate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Sollevo evento errore validazione con una lista di errori rilevati
|
||||
/// </summary>
|
||||
@@ -175,7 +169,6 @@ namespace WebWindowComplex
|
||||
protected string SelGlass { get; set; } = "";
|
||||
protected string SelMaterial { get; set; } = ""!;
|
||||
protected string SelProfile { get; set; } = "";
|
||||
protected TemplateSelectDTO? SelTemplateDTO { get; set; } = null;
|
||||
|
||||
protected List<Split> SplitList
|
||||
{
|
||||
@@ -509,6 +502,7 @@ namespace WebWindowComplex
|
||||
{
|
||||
if (m_CurrWindow != null)
|
||||
{
|
||||
isLoadingHwOpt = true;
|
||||
#if DEBUG
|
||||
var CurrJwd = JsonConvert.SerializeObject(m_CurrWindow.Serialize(), Formatting.Indented);
|
||||
#else
|
||||
@@ -580,17 +574,6 @@ namespace WebWindowComplex
|
||||
await EC_OnClose.InvokeAsync(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Selezione del template
|
||||
/// </summary>
|
||||
/// <param name="newSel"> template selezionato </param>
|
||||
protected async void DoSelect(TemplateSelectDTO newSel)
|
||||
{
|
||||
editLock = false;
|
||||
SelTemplateDTO = newSel;
|
||||
await EC_OnSelectedTemplate.InvokeAsync(newSel);
|
||||
}
|
||||
|
||||
protected override void OnAfterRender(bool firstRender)
|
||||
{
|
||||
isRendered = true;
|
||||
@@ -738,6 +721,9 @@ namespace WebWindowComplex
|
||||
UpdateDict();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aggiornamento dei dati con informazioni ricevute dai dizionari
|
||||
/// </summary>
|
||||
protected void UpdateDict()
|
||||
{
|
||||
// se ho i dizionari delle forme le aggiungo
|
||||
@@ -816,6 +802,8 @@ namespace WebWindowComplex
|
||||
|
||||
private bool isRendered = false;
|
||||
|
||||
private bool isLoadingHwOpt = false;
|
||||
|
||||
/// <summary>
|
||||
/// ELenco errori di coerenza/link dati (vanno risolti per disegnare/procedere)
|
||||
/// </summary>
|
||||
@@ -857,8 +845,6 @@ namespace WebWindowComplex
|
||||
|
||||
private string m_SelFamilyHardware { get; set; } = "";
|
||||
|
||||
private Template m_SelTemplate { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Salvataggio JWD precedente x evitare loop su update (aggiornato dopo chiamate redis)
|
||||
/// </summary>
|
||||
@@ -925,27 +911,6 @@ namespace WebWindowComplex
|
||||
currSplit = -1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Calcola larghezza colonna button nav
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private string buttonCss()
|
||||
{
|
||||
return (currStep == CompileStep.Template) ? "col-4 d-grid gap-1 d-md-flex justify-content-md-end align-items-center" : "col-4 d-grid gap-1 d-md-flex justify-content-md-end align-items-center";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Calcola bottone selezionato per il Fill
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private string buttonFillCss(FillTypes currFillTypes)
|
||||
{
|
||||
if (FillList.ElementAt(currFill).SelFillType == currFillTypes)
|
||||
return "btn btn-secondary btn-sm";
|
||||
else
|
||||
return "btn btn-outline-secondary btn-sm";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Prima chiamata alle opzioni hardware
|
||||
/// </summary>
|
||||
@@ -1119,6 +1084,7 @@ namespace WebWindowComplex
|
||||
|
||||
private void M_CurrWindow_OnHwOption(object? sender, OnReqHwOptEventArgs e)
|
||||
{
|
||||
isLoadingHwOpt = true;
|
||||
Dictionary<string, string> Args = new Dictionary<string, string>();
|
||||
Args.Add("Mode", $"{(int)Enums.QuestionModes.HARDWARE}");
|
||||
Args.Add("SubMode", $"{(int)Enums.QuestionHwSubModes.HARDWAREOPTIONS}");
|
||||
@@ -1147,15 +1113,6 @@ namespace WebWindowComplex
|
||||
_ = EC_DoUpdate.InvokeAsync(Args);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Calcola larghezza colonna contenente nav da mostrare
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private string mainCss()
|
||||
{
|
||||
return (currStep == CompileStep.Template) ? "col-12 d-flex flex-column" : "col-6 d-flex flex-column";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Metodo per cambiare step
|
||||
/// </summary>
|
||||
@@ -1412,20 +1369,6 @@ namespace WebWindowComplex
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aggiornamento shape dato GroupId
|
||||
/// </summary>
|
||||
/// <param name="groupId"> nuova sash </param>
|
||||
/// <returns></returns>
|
||||
private async Task UpdateShape(int groupId)
|
||||
{
|
||||
List<int> reqList = new List<int>() { groupId };
|
||||
await DoReqShape(reqList);
|
||||
#if false
|
||||
await DoReqShape(groupId);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user