using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EgwCoreLib.Lux.Data.DbModel { // // This is here so CodeMaid doesn't reorganize this document // [Table("RegItem")] public class ItemModel { /// /// ID dell'articolo /// [Key] public int ItemID { get; set; } /// /// Cod gruppo articolo (per selezione omogenea alternative) /// public string CodGroup { get; set; } = ""; /// /// Definisce l'articolo come servizio vs concreto=materiale /// public bool IsService { get; set; } = false; /// /// CodArticolo (opzionale) numerico /// public int ItemCode { get; set; } = 0; /// /// CodArticolo (opzionale) string /// public string ExtItemCode { get; set; } = ""; /// /// Cod Fornitore (opzionale) /// public string SupplCode { get; set; } = ""; /// /// Descrizione /// public string Description { get; set; } = ""; /// /// Costo (standard / senza listini) /// public double Cost { get; set; } = 0; /// /// Margine percentuale standard /// public double Margin { get; set; } = 0.1; /// /// Unità di Misura /// public string UM { get; set; } = "#"; #if false /// /// Opzionale, valore JWD di default come template di partenza in formato JWD /// public string TemplateJWD { get; set; } = ""; #endif /// /// Navigation per ItemGroup /// [ForeignKey("CodGroup")] public virtual ItemGroupModel ItemGroupNav { get; set; } = null!; } }