diff --git a/EgwProxy.MagMan/DTO/ProjectDTO.cs b/EgwProxy.MagMan/DTO/ProjectDTO.cs
index 5d3d2fa..a629836 100644
--- a/EgwProxy.MagMan/DTO/ProjectDTO.cs
+++ b/EgwProxy.MagMan/DTO/ProjectDTO.cs
@@ -1,14 +1,32 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace EgwProxy.MagMan.DTO
{
+ //
+ // This is here so CodeMaid doesn't reorganize this document
+ //
public class ProjectDTO
{
- #region Public Properties
+
+ ///
+ /// Key progetto (DB) / CLOUD
+ ///
+ public int ProjCloudId { get; set; }
+
+ ///
+ /// ID del DB EgtBW, univoco con KeyNum, (DB) / istanza locale
+ ///
+ public int ProjLocalId { get; set; } = 0;
+
+ ///
+ /// ID esterno (da EgtBW)
+ ///
+ public int ProjExtId { get; set; } = 0;
+
+ ///
+ /// Descrizione progetto (copiata da BTLFileName inizialmente)
+ ///
+ public string ProjDescription { get; set; } = "";
///
/// Nome file BTL originale
@@ -61,9 +79,9 @@ namespace EgwProxy.MagMan.DTO
public string Machine { get; set; } = "";
///
- /// Id macchina (MagMan)
+ /// Id macchina (MagMan) DB / CLOUD
///
- public int MachineID { get; set; } = 0;
+ public int MachineCloudId { get; set; } = 0;
///
/// Tempo lavorazione previsto (stima) in minuti
@@ -75,26 +93,10 @@ namespace EgwProxy.MagMan.DTO
///
public double ProcTimeReal { get; set; } = 0;
- ///
- /// Descrizione progetto (copiata da BTLFileName inizialmente)
- ///
- public string ProjDescription { get; set; } = "";
-
- ///
- /// ID del DB EgtBW, univoco con KeyNum
- ///
- public int ProjExtDbId { get; set; } = 0;
-
- ///
- /// ID esterno (da EgtBW)
- ///
- public int ProjExtId { get; set; } = 0;
-
///
/// Tipologia del progetto (Travi, Pareti, ...)
///
public BWType PType { get; set; } = BWType.NULL;
- #endregion Public Properties
}
}
\ No newline at end of file
diff --git a/MagMan.Core/DTO/ProjectDTO.cs b/MagMan.Core/DTO/ProjectDTO.cs
index e1cff4d..81abb2e 100644
--- a/MagMan.Core/DTO/ProjectDTO.cs
+++ b/MagMan.Core/DTO/ProjectDTO.cs
@@ -1,16 +1,12 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using static MagMan.Core.Enums;
+using static MagMan.Core.Enums;
namespace MagMan.Core.DTO
{
+ //
+ // This is here so CodeMaid doesn't reorganize this document
+ //
public class ProjectDTO
{
- #region Public Properties
///
/// Key progetto (DB) / CLOUD
@@ -27,6 +23,11 @@ namespace MagMan.Core.DTO
///
public int ProjExtId { get; set; } = 0;
+ ///
+ /// Descrizione progetto (copiata da BTLFileName inizialmente)
+ ///
+ public string ProjDescription { get; set; } = "";
+
///
/// Nome file BTL originale
///
@@ -78,9 +79,9 @@ namespace MagMan.Core.DTO
public string Machine { get; set; } = "";
///
- /// Id macchina (MagMan)
+ /// Id macchina (MagMan) DB / CLOUD
///
- public int MachineID { get; set; } = 0;
+ public int MachineCloudId { get; set; } = 0;
///
/// Tempo lavorazione previsto (stima) in minuti
@@ -91,18 +92,11 @@ namespace MagMan.Core.DTO
/// Tempo lavorazione reale in minuti (parziale o totale se chiuso/completato/archiviato)
///
public double ProcTimeReal { get; set; } = 0;
-
- ///
- /// Descrizione progetto (copiata da BTLFileName inizialmente)
- ///
- public string ProjDescription { get; set; } = "";
-
///
/// Tipologia del progetto (Travi, Pareti, ...)
///
public BWType PType { get; set; } = BWType.NULL;
- #endregion Public Properties
}
}
\ No newline at end of file
diff --git a/MagMan.Data.Tenant/Services/TenantService.cs b/MagMan.Data.Tenant/Services/TenantService.cs
index f591dbf..875a0f5 100644
--- a/MagMan.Data.Tenant/Services/TenantService.cs
+++ b/MagMan.Data.Tenant/Services/TenantService.cs
@@ -678,7 +678,7 @@ namespace MagMan.Data.Tenant.Services
{
ProjModel answ = new ProjModel()
{
- MachineID = origItem.MachineID,
+ MachineID = origItem.MachineCloudId,
KeyNum = origItem.KeyNum,
ProjExtDbId = origItem.ProjLocalId,
ProjExtId = origItem.ProjExtId,
@@ -813,7 +813,7 @@ namespace MagMan.Data.Tenant.Services
ProjCloudId = origItem.ProjDbId,
ProjLocalId = origItem.ProjExtDbId,
ProjExtId = origItem.ProjExtId,
- MachineID = origItem.MachineID,
+ MachineCloudId = origItem.MachineID,
KeyNum = origItem.KeyNum,
BTLFileName = origItem.BTLFileName,
PType = origItem.PType,
diff --git a/TestConsoleApp/Program.cs b/TestConsoleApp/Program.cs
index ef1f823..4c731f8 100644
--- a/TestConsoleApp/Program.cs
+++ b/TestConsoleApp/Program.cs
@@ -110,9 +110,9 @@ namespace DemoApp
foreach (var itemMat in projList)
{
Console.WriteLine(sep);
- Console.WriteLine($"MachineId: {itemMat.MachineID}");
+ Console.WriteLine($"MachineId: {itemMat.MachineCloudId}");
Console.WriteLine($"Key: {itemMat.KeyNum}");
- Console.WriteLine($"ProjExtDbId: {itemMat.ProjExtDbId}");
+ Console.WriteLine($"ProjLocalId: {itemMat.ProjLocalId}");
Console.WriteLine($"ProjExtId: {itemMat.ProjExtId}");
Console.WriteLine($"BTL filename: {itemMat.BTLFileName}");
Console.WriteLine($"PType: {itemMat.PType}");