diff --git a/MP.Data/DatabaseModels/TurniOee.cs b/MP.Data/DatabaseModels/TurniOee.cs
new file mode 100644
index 00000000..ec0a36c1
--- /dev/null
+++ b/MP.Data/DatabaseModels/TurniOee.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+#nullable disable
+
+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 Descrizione { get; set; }
+ public string IdxMacchina { get; set; }
+ public int? IdxOdl { get; set; }
+ public int IdxStato { get; set; }
+ public string KeyRichiesta { get; set; }
+ public double? TotPeriodo { get; set; }
+ public int? TotPz { get; set; }
+ public string Turno { get; set; }
+
+ #endregion Public Properties
+ }
+}
\ No newline at end of file
diff --git a/MP.Data/DatabaseModels/TurniPareto.cs b/MP.Data/DatabaseModels/TurniPareto.cs
new file mode 100644
index 00000000..73c9d689
--- /dev/null
+++ b/MP.Data/DatabaseModels/TurniPareto.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace MP.Data.DatabaseModels
+{
+ public partial class TurniPareto
+ {
+ #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 Descrizione { get; set; }
+ public string IdxMacchina { get; set; }
+ public int IdxStato { get; set; }
+ public double? TotPeriodo { get; set; }
+ public int? TotPz { get; set; }
+ public string Turno { get; set; }
+
+ #endregion Public Properties
+ }
+}
\ No newline at end of file
diff --git a/MP.Data/DatabaseModels/TurniParetoOdl.cs b/MP.Data/DatabaseModels/TurniParetoOdl.cs
new file mode 100644
index 00000000..7a15b270
--- /dev/null
+++ b/MP.Data/DatabaseModels/TurniParetoOdl.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace MP.Data.DatabaseModels
+{
+ public partial class TurniParetoOdl
+ {
+ #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 Descrizione { get; set; }
+ public string IdxMacchina { get; set; }
+ public int? IdxOdl { get; set; }
+ public int IdxStato { get; set; }
+ public string KeyRichiesta { get; set; }
+ public double? TotPeriodo { get; set; }
+ public int? TotPz { get; set; }
+ public string Turno { get; set; }
+
+ #endregion Public Properties
+ }
+}
\ No newline at end of file
diff --git a/MP.Data/MP.Data.csproj b/MP.Data/MP.Data.csproj
index 658bbfa1..0c89b33d 100644
--- a/MP.Data/MP.Data.csproj
+++ b/MP.Data/MP.Data.csproj
@@ -6,9 +6,6 @@
MP.Data
-
-
-
diff --git a/MP.Data/MoonPro_STATSContext.cs b/MP.Data/MoonPro_STATSContext.cs
index 6a821592..ffb3bcc6 100644
--- a/MP.Data/MoonPro_STATSContext.cs
+++ b/MP.Data/MoonPro_STATSContext.cs
@@ -42,6 +42,9 @@ namespace MP.Data
public virtual DbSet DbSetMacchine { get; set; }
public virtual DbSet DbSetODL { get; set; }
public virtual DbSet DbSetScarti { get; set; }
+ public virtual DbSet DbSetTurniOee { get; set; }
+ public virtual DbSet DbSetTurniPareto { get; set; }
+ public virtual DbSet DbSetTurniParetoOdl { get; set; }
public virtual DbSet DbSetUserLog { get; set; }
#endregion Public Properties
@@ -68,6 +71,108 @@ namespace MP.Data
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasAnnotation("Relational:Collation", "SQL_Latin1_General_CP1_CI_AS");
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasNoKey();
+
+ entity.ToView("v_UI_OEE_Turni");
+
+ entity.Property(e => e.ClasseTempo).HasMaxLength(50);
+
+ entity.Property(e => e.CodArticolo)
+ .IsRequired()
+ .HasMaxLength(50);
+
+ entity.Property(e => e.CodMacchina).HasMaxLength(50);
+
+ entity.Property(e => e.DataRif).HasColumnType("datetime");
+
+ entity.Property(e => e.DescArticolo).HasMaxLength(250);
+
+ entity.Property(e => e.Descrizione).HasMaxLength(50);
+
+ entity.Property(e => e.IdxMacchina)
+ .IsRequired()
+ .HasMaxLength(50);
+
+ entity.Property(e => e.IdxOdl).HasColumnName("IdxODL");
+
+ entity.Property(e => e.KeyRichiesta).HasMaxLength(50);
+
+ entity.Property(e => e.TotPeriodo).HasColumnName("totPeriodo");
+
+ entity.Property(e => e.Turno)
+ .IsRequired()
+ .HasMaxLength(5);
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasNoKey();
+
+ entity.ToView("v_UI_Pareto_Turni");
+
+ entity.Property(e => e.ClasseTempo).HasMaxLength(50);
+
+ entity.Property(e => e.CodArticolo)
+ .IsRequired()
+ .HasMaxLength(50);
+
+ entity.Property(e => e.CodMacchina).HasMaxLength(50);
+
+ entity.Property(e => e.DataRif).HasColumnType("datetime");
+
+ entity.Property(e => e.DescArticolo).HasMaxLength(250);
+
+ entity.Property(e => e.Descrizione).HasMaxLength(50);
+
+ entity.Property(e => e.IdxMacchina)
+ .IsRequired()
+ .HasMaxLength(50);
+
+ entity.Property(e => e.TotPeriodo).HasColumnName("totPeriodo");
+
+ entity.Property(e => e.Turno)
+ .IsRequired()
+ .HasMaxLength(5);
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasNoKey();
+
+ entity.ToView("v_UI_Pareto_TurniOdl");
+
+ entity.Property(e => e.ClasseTempo).HasMaxLength(50);
+
+ entity.Property(e => e.CodArticolo)
+ .IsRequired()
+ .HasMaxLength(50);
+
+ entity.Property(e => e.CodMacchina).HasMaxLength(50);
+
+ entity.Property(e => e.DataRif).HasColumnType("datetime");
+
+ entity.Property(e => e.DescArticolo).HasMaxLength(250);
+
+ entity.Property(e => e.Descrizione).HasMaxLength(50);
+
+ entity.Property(e => e.IdxMacchina)
+ .IsRequired()
+ .HasMaxLength(50);
+
+ entity.Property(e => e.IdxOdl).HasColumnName("IdxODL");
+
+ entity.Property(e => e.KeyRichiesta).HasMaxLength(50);
+
+ entity.Property(e => e.TotPeriodo).HasColumnName("totPeriodo");
+
+ entity.Property(e => e.Turno)
+ .IsRequired()
+ .HasMaxLength(5);
+ });
+
modelBuilder.Entity(entity =>
{
entity.HasNoKey();