From ef08937e05d421ebaec75fa1f8b883c6fe4912ce Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Thu, 29 Feb 2024 11:46:55 +0100 Subject: [PATCH] - aggiornate classi per ProjCloudId --- EgtBEAMWALL.Core/ProjectFileVM/ProdFileM.vb | 13 ++++++++- EgtBEAMWALL.Core/ProjectFileVM/ProjFileM.vb | 31 ++++++++++++++------- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/EgtBEAMWALL.Core/ProjectFileVM/ProdFileM.vb b/EgtBEAMWALL.Core/ProjectFileVM/ProdFileM.vb index df781938..5d1c5dcb 100644 --- a/EgtBEAMWALL.Core/ProjectFileVM/ProdFileM.vb +++ b/EgtBEAMWALL.Core/ProjectFileVM/ProdFileM.vb @@ -41,6 +41,16 @@ Public Class ProdFileM End Set End Property + Protected m_nProjCloudId As Integer + Public Property nProjCloudId As Integer + Get + Return m_nProjCloudId + End Get + Set(value As Integer) + m_nProjCloudId = value + End Set + End Property + #Region "CONSTRUCTORS" Protected Sub New() @@ -51,7 +61,7 @@ Public Class ProdFileM End Function Public Shared Function CreateProdFileM(nProdId As Integer, nProjIdList As List(Of Integer), dtCreateProjDate As DateTime, sName As String, nType As BWType, - sMachine As String, sLockedBy As String, dtLock As DateTime, bIsActive As Boolean, bIsProduced As Boolean, bIsArchived As Boolean) As ProdFileM + sMachine As String, sLockedBy As String, dtLock As DateTime, bIsActive As Boolean, bIsProduced As Boolean, bIsArchived As Boolean, nProjCloudId As Integer) As ProdFileM Dim NewProjectFileM As New ProdFileM NewProjectFileM.m_nProdId = nProdId NewProjectFileM.m_nProjIdList = nProjIdList @@ -64,6 +74,7 @@ Public Class ProdFileM NewProjectFileM.m_bIsActive = bIsActive NewProjectFileM.m_bIsProduced = bIsProduced NewProjectFileM.m_bIsArchived = bIsArchived + NewProjectFileM.m_nProjCloudId = nProjCloudId Return NewProjectFileM End Function diff --git a/EgtBEAMWALL.Core/ProjectFileVM/ProjFileM.vb b/EgtBEAMWALL.Core/ProjectFileVM/ProjFileM.vb index c42731b8..895aeea8 100644 --- a/EgtBEAMWALL.Core/ProjectFileVM/ProjFileM.vb +++ b/EgtBEAMWALL.Core/ProjectFileVM/ProjFileM.vb @@ -29,25 +29,35 @@ Public Class ProjFileM End Property Protected m_sDescription As String = String.Empty - Public Property sDescription As String - Get - Return m_sDescription - End Get - Set(value As String) - m_sDescription = value - End Set - End Property + Public Property sDescription As String + Get + Return m_sDescription + End Get + Set(value As String) + m_sDescription = value + End Set + End Property + + Protected m_nProjCloudId As Integer + Public Property nProjCloudId As Integer + Get + Return m_nProjCloudId + End Get + Set(value As Integer) + m_nProjCloudId = value + End Set + End Property #Region "CONSTRUCTORS" - Protected Sub New() + Protected Sub New() End Sub Public Shared Function CreateNewProjFileM() As ProjFileM Return New ProjFileM End Function - Public Shared Function CreateProjFileM(nProjId As Integer, nProdId As Integer, dtCreateProjDate As DateTime, dtExportDate As DateTime, sListName As String, sBTLFileName As String, sDescription As String, IsNew As Boolean, IsLocked As Boolean, nType As BWType, sMachine As String, bIsActive As Boolean, bIsArchived As Boolean) As ProjFileM + Public Shared Function CreateProjFileM(nProjId As Integer, nProdId As Integer, dtCreateProjDate As DateTime, dtExportDate As DateTime, sListName As String, sBTLFileName As String, sDescription As String, IsNew As Boolean, IsLocked As Boolean, nType As BWType, sMachine As String, bIsActive As Boolean, bIsArchived As Boolean, nProjCloudId As Integer) As ProjFileM Dim NewProjectFileM As New ProjFileM NewProjectFileM.m_nProjId = nProjId NewProjectFileM.m_nProdId = nProdId @@ -62,6 +72,7 @@ Public Class ProjFileM NewProjectFileM.m_sMachine = sMachine NewProjectFileM.m_bIsActive = bIsActive NewProjectFileM.m_bIsArchived = bIsArchived + NewProjectFileM.m_nProjCloudId = nProjCloudId Return NewProjectFileM End Function