using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; // // This is here so CodeMaid doesn't reorganize this document // namespace MP.Data.DbModels { [Table("InsManuali")] public partial class InsManualiModel { #region Public Properties [Key] public int IdxInsMan { get; set; } [MaxLength(50)] public string IdxMacchina { get; set; } = "NA"; public int IdxTipoEv { get; set; } = 0; [MaxLength(50)] public string KeyRichiesta { get; set; } = ""; [MaxLength(50)] public string CodArticolo { get; set; } = ""; public DateTime InizioStato { get; set; } = DateTime.Now; public DateTime? FineStato { get; set; } = null; public int MatrOpr { get; set; } = 0; public int PzBuoni { get; set; } = 0; /// /// Tempo Ciclo std /// public decimal TCiclo { get; set; } = 0; /// /// Minuti prodotti (da TC e pz prod /// public decimal MinProd { get; set; } = 0; /// /// DataOra conferma import e trasformazione dati (come Eventi, DDB, ODL...) /// public DateTime? Imported { get; set; } = null; [NotMapped] public bool IsWork { get => IdxTipoEv == 1; } /// /// Navigazione oggetto Machine /// [ForeignKey("IdxMacchina")] public virtual MacchineModel MachineNav { get; set; } = null!; /// /// Navigazione oggetto Articolo /// [ForeignKey("CodArticolo")] public virtual AnagArticoliModel ArticoloNav { get; set; } = null!; #endregion Public Properties } }