inizio update e riscrittura modulo TableComp

This commit is contained in:
Samuele Locatelli
2025-10-06 19:42:41 +02:00
parent 51996b9ff5
commit 50f307f84f
11 changed files with 800 additions and 453 deletions
+56
View File
@@ -0,0 +1,56 @@
using Egw.Window.Data;
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace WebWindowComplex.DTO
{
/// <summary>
/// Payload complessivo delle preselezioni (globalmente opzionali)
/// </summary>
public class SelectPayload
{
/// <summary>
/// Famiglia HW selezionata
/// </summary>
public string FamilyHardware { get; set; } = string.Empty;
/// <summary>
/// Colore selezionato
/// </summary>
public string ColorMaterial { get; set; } = string.Empty;
/// <summary>
/// Materiale selezionato
/// </summary>
public string Material { get; set; } = string.Empty;
/// <summary>
/// Tipologia vetro selezionato
/// </summary>
public string Glass { get; set; } = string.Empty;
/// <summary>
/// Template selezionato
/// </summary>
public Template Template { get; set; } = null!;
/// <summary>
/// Verifica di validità dell'intero Payload
/// </summary>
/// <returns></returns>
public bool IsValid()
{
bool famHwOK = !string.IsNullOrEmpty(FamilyHardware);
bool colorOK = !string.IsNullOrEmpty(ColorMaterial);
bool glassOk = !string.IsNullOrEmpty(Glass);
bool matOK = !string.IsNullOrEmpty(Material);
bool templateOK = Template != null;
return famHwOK && colorOK && matOK && glassOk && templateOK;
}
}
}