Files
lux/EgwCoreLib.Lux.Data/DbModel/ItemModel.cs
T
Samuele Locatelli aa8d768b56 Update migrazione DB
2025-08-08 16:11:39 +02:00

96 lines
2.6 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static EgwCoreLib.Lux.Core.Enum;
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
[Table("RegItem")]
public class ItemModel
{
/// <summary>
/// ID dell'articolo
/// </summary>
[Key]
public int ItemID { get; set; }
/// <summary>
/// Cod gruppo articolo (per selezione omogenea alternative)
/// </summary>
public string CodGroup { get; set; } = "";
/// <summary>
/// Tipologia articolo
/// </summary>
public ItemClassType ItemType { get; set; } = ItemClassType.ND;
/// <summary>
/// Definisce l'articolo come servizio vs concreto=materiale
/// </summary>
public bool IsService { get; set; } = false;
/// <summary>
/// CodArticolo (opzionale) numerico
/// </summary>
public int ItemCode { get; set; } = 0;
/// <summary>
/// CodArticolo (opzionale) string
/// </summary>
public string ExtItemCode { get; set; } = "";
/// <summary>
/// Cod Fornitore (opzionale)
/// </summary>
public string SupplCode { get; set; } = "";
/// <summary>
/// Descrizione
/// </summary>
public string Description { get; set; } = "";
/// <summary>
/// Costo (standard / senza listini)
/// </summary>
public double Cost { get; set; } = 0;
/// <summary>
/// Margine percentuale standard (che comprende info su resa)
/// </summary>
public double Margin { get; set; } = 0.2;
/// <summary>
/// Valore minimo per assegnazione in calcolo BOM
/// </summary>
public double QtyMin { get; set; } = 0;
/// <summary>
/// Valore massimo per assegnazione in calcolo BOM
/// </summary>
public double QtyMax { get; set; } = 0;
/// <summary>
/// Unità di Misura
/// </summary>
public string UM { get; set; } = "#";
#if false
/// <summary>
/// Opzionale, valore JWD di default come template di partenza in formato JWD
/// </summary>
public string TemplateJWD { get; set; } = "";
#endif
/// <summary>
/// Navigation per ItemGroup
/// </summary>
[ForeignKey("CodGroup")]
public virtual ItemGroupModel ItemGroupNav { get; set; } = null!;
}
}