Files
magman/EgwProxy.MagMan/DTO/MaterialDTO.cs
T
2024-07-11 11:31:38 +02:00

82 lines
2.1 KiB
C#

using System.Collections.Generic;
namespace EgwProxy.MagMan.DTO
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
public class MaterialDTO
{
/// <summary>
/// Codice Univoco (DB) sul CLOUD
/// </summary>
public int MatCloudId { get; set; } = 0;
/// <summary>
/// Primary Key Materiale (DB) / istanza locale
/// </summary>
public int MatLocalId { get; set; } = 0;
/// <summary>
/// Codice materiale (esterno)
/// </summary>
public string MatCode { get; set; } = "";
/// <summary>
/// Descrizione materiale
/// </summary>
public string MatDesc { get; set; } = "";
/// <summary>
/// Height/Thikness/Spessore in mm
/// </summary>
public decimal HMm { get; set; } = 0;
/// <summary>
/// Lenght/Lunghezza in mm
/// </summary>
public decimal LMm { get; set; } = 0;
/// <summary>
/// Width/Larghezza in mm
/// </summary>
public decimal WMm { get; set; } = 0;
/// <summary>
/// Varianti dimensionali disponibili
/// </summary>
public int SizeNum { get; set; } = 0;
/// <summary>
/// Quantità totale in giacenza
/// </summary>
public decimal QtyTot { get; set; } = 0;
public string UM
{
get => IsBeam ? "m" : "m2";
}
/// <summary>
/// Codice QR/Matrix materiale
/// </summary>
public string MatDtmx { get; set; } = "";
/// <summary>
/// Verifica che sia Beam, quando L == 0
/// </summary>
public bool IsBeam { get; set; } = false;
/// <summary>
/// Verifica che sia Wall, quando W/L == 0
/// </summary>
public bool IsWall { get; set; } = false;
/// <summary>
/// Elenco item e giancenze
/// </summary>
public List<ItemDTO> ItemList { get; set; } = new List<ItemDTO>();
}
}