diff --git a/EgwProxy.SqlDb/DbModels/MachPODLModel.cs b/EgwProxy.SqlDb/DbModels/MachPODLModel.cs
new file mode 100644
index 00000000..4e65aae5
--- /dev/null
+++ b/EgwProxy.SqlDb/DbModels/MachPODLModel.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace EgwProxy.SqlDb.DbModels
+{
+ //
+ // This is here so CodeMaid doesn't reorganize this document
+ //
+ [Table("MachinePODL")]
+ public partial class MachPODLModel
+ {
+ [Key]
+ public int IdxPromessa { get; set; } = 0;
+
+ [StringLength(50)]
+ public string KeyRichiesta { get; set; } = "";
+ [StringLength(50)]
+ public string KeyBCode { get; set; } = "";
+
+ public bool Attivabile { get; set; } = false;
+
+ public int IdxODL { get; set; } = 0;
+
+ [StringLength(50)]
+ public string CodArticolo { get; set; } = "";
+
+ [StringLength(50)]
+ public string CodGruppo { get; set; } = "";
+
+ [StringLength(50)]
+ public string IdxMacchina { get; set; } = "";
+
+ public int NumPezzi { get; set; } = 0;
+
+ public decimal TCAssegnato { get; set; } = 0;
+
+ public DateTime DueDate { get; set; } = DateTime.Today;
+
+ public int Priorita { get; set; } = 0;
+ public int PzPallet { get; set; } = 0;
+
+ [StringLength(2500)]
+ public string Note { get; set; } = "";
+
+ [StringLength(50)]
+ public string CodCli { get; set; } = "";
+
+ public DateTime InsertDate { get; set; } = DateTime.Today;
+ }
+}
diff --git a/EgwProxy.SqlDb/DbModels/MesPODLLastModel.cs b/EgwProxy.SqlDb/DbModels/MesPODLLastModel.cs
new file mode 100644
index 00000000..1c147fd2
--- /dev/null
+++ b/EgwProxy.SqlDb/DbModels/MesPODLLastModel.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace EgwProxy.SqlDb.DbModels
+{
+ //
+ // This is here so CodeMaid doesn't reorganize this document
+ //
+ [Table("MesPODL_last")]
+ public partial class MesPODLLastModel
+ {
+ [Key]
+ public int IdxPromessa { get; set; } = 0;
+
+ [StringLength(50)]
+ public string KeyRichiesta { get; set; } = "";
+ [StringLength(50)]
+ public string KeyBCode { get; set; } = "";
+
+ public bool Attivabile { get; set; } = false;
+
+ public int IdxODL { get; set; } = 0;
+
+ [StringLength(50)]
+ public string CodArticolo { get; set; } = "";
+
+ [StringLength(50)]
+ public string CodGruppo { get; set; } = "";
+
+ [StringLength(50)]
+ public string IdxMacchina { get; set; } = "";
+
+ public int NumPezzi { get; set; } = 0;
+
+ public decimal TCAssegnato { get; set; } = 0;
+
+ public DateTime DueDate { get; set; } = DateTime.Today;
+
+ public int Priorita { get; set; } = 0;
+ public int PzPallet { get; set; } = 0;
+
+ [StringLength(2500)]
+ public string Note { get; set; } = "";
+
+ [StringLength(50)]
+ public string CodCli { get; set; } = "";
+
+ public DateTime InsertDate { get; set; } = DateTime.Today;
+ }
+}
diff --git a/EgwProxy.SqlDb/DbModels/MesPODLReqModel.cs b/EgwProxy.SqlDb/DbModels/MesPODLReqModel.cs
new file mode 100644
index 00000000..6073fb7d
--- /dev/null
+++ b/EgwProxy.SqlDb/DbModels/MesPODLReqModel.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace EgwProxy.SqlDb.DbModels
+{
+ //
+ // This is here so CodeMaid doesn't reorganize this document
+ //
+ [Table("MesPODL_req")]
+ public partial class MesPODLReqModel
+ {
+ [Key]
+ public int IdxPromessa { get; set; } = 0;
+
+ [StringLength(50)]
+ public string KeyRichiesta { get; set; } = "";
+ [StringLength(50)]
+ public string KeyBCode { get; set; } = "";
+
+ public bool Attivabile { get; set; } = false;
+
+ public int IdxODL { get; set; } = 0;
+
+ [StringLength(50)]
+ public string CodArticolo { get; set; } = "";
+
+ [StringLength(50)]
+ public string CodGruppo { get; set; } = "";
+
+ [StringLength(50)]
+ public string IdxMacchina { get; set; } = "";
+
+ public int NumPezzi { get; set; } = 0;
+
+ public decimal TCAssegnato { get; set; } = 0;
+
+ public DateTime DueDate { get; set; } = DateTime.Today;
+
+ public int Priorita { get; set; } = 0;
+ public int PzPallet { get; set; } = 0;
+
+ [StringLength(2500)]
+ public string Note { get; set; } = "";
+
+ [StringLength(50)]
+ public string CodCli { get; set; } = "";
+
+ public DateTime InsertDate { get; set; } = DateTime.Today;
+ }
+}
diff --git a/EgwProxy.SqlDb/EgwProxy.SqlDb.csproj b/EgwProxy.SqlDb/EgwProxy.SqlDb.csproj
index 1f2d6875..7bab9d2b 100644
--- a/EgwProxy.SqlDb/EgwProxy.SqlDb.csproj
+++ b/EgwProxy.SqlDb/EgwProxy.SqlDb.csproj
@@ -57,6 +57,9 @@
+
+
+
diff --git a/EgwProxy.SqlDb/SyncStateDbContext.cs b/EgwProxy.SqlDb/SyncStateDbContext.cs
index 064a3622..5e2bdbed 100644
--- a/EgwProxy.SqlDb/SyncStateDbContext.cs
+++ b/EgwProxy.SqlDb/SyncStateDbContext.cs
@@ -44,7 +44,19 @@ namespace EgwProxy.SqlDb
///
/// DbSet ActionList da Macchina
///
- public virtual DbSet DbSetMachAction { get; set; }
+ public virtual DbSet DbSetMachAction { get; set; }
+ ///
+ /// DbSet PODL da Macchina
+ ///
+ public virtual DbSet DbSetMachPODL { get; set; }
+ ///
+ /// DbSet PODL Req da MES
+ ///
+ public virtual DbSet DbSetMesPodlReq { get; set; }
+ ///
+ /// DbSet PODL Last da MES
+ ///
+ public virtual DbSet DbSetMesPodlLast { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{