update model OEE

This commit is contained in:
Samuele Locatelli
2021-05-24 18:03:22 +02:00
parent 62055c60bd
commit a658d7cf6f
2 changed files with 1 additions and 5 deletions
+1 -3
View File
@@ -16,16 +16,14 @@ namespace MP.Data.DatabaseModels
public string CodMacchina { get; set; }
public DateTime DataRif { get; set; }
public string DescArticolo { get; set; }
public string Descrizione { get; set; }
public string IdxMacchina { get; set; }
public int IdxStato { get; set; }
[NotMapped]
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
public double OEE => (double)TotPeriodo / 480;
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
public double TotPeriodo { get; set; }
public decimal TotPeriodo { get; set; }
public int? TotPz { get; set; }
public string Turno { get; set; }
-2
View File
@@ -92,8 +92,6 @@ namespace MP.Data
entity.Property(e => e.DescArticolo).HasMaxLength(250);
entity.Property(e => e.Descrizione).HasMaxLength(50);
entity.Property(e => e.IdxMacchina)
.IsRequired()
.HasMaxLength(50);