inizio update e riscrittura modulo TableComp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user