using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; #nullable disable // // This is here so CodeMaid doesn't reorganize this document // namespace MP.Data.DatabaseModels { public partial class TurniOee { #region Public Properties public string ClasseTempo { get; set; } public string CodArticolo { get; set; } public string CodMacchina { get; set; } public DateTime DataRif { get; set; } public string DescArticolo { get; set; } public string IdxMacchina { get; set; } [NotMapped] [DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)] public double OEE => (double)TotPeriodo / (double)TotTurno; [DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)] public decimal TotPeriodo { get; set; } public int? TotPz { get; set; } public int? TotTurno { get; set; } = 1; public string Turno { get; set; } #endregion Public Properties } }