Compare commits

...

41 Commits

Author SHA1 Message Date
Emmanuele Sassi 0ff4d1474c Refresh lib 2021-07-15 10:41:45 +02:00
Emmanuele Sassi 387e02bd2f Merge remote-tracking branch 'gitlab.seriate/develop' into feature/total_rebuild 2021-07-15 10:35:34 +02:00
Samuele Locatelli 64e39ae333 Merge remote-tracking branch 'gitlab.steamware/Renzo' into develop 2021-07-15 10:34:46 +02:00
Samuele Locatelli 0c74bf0f96 Update gestione tipo prog BwType x prod 2021-07-15 10:34:41 +02:00
Emmanuele Sassi 78ad1a361d Merge remote-tracking branch 'gitlab.seriate/Renzo' into feature/total_rebuild 2021-07-15 10:28:21 +02:00
RenzoL 52a5d8b650 Merge branch 'Testing/NuGetDll' of https://gitlab.steamware.net/egaltech/egtbeamwall into Renzo 2021-07-15 08:57:38 +02:00
Samuele Locatelli 88eda5ecf7 Merge branch 'develop' into Testing/NuGetDll 2021-07-14 18:44:52 +02:00
Samuele Locatelli 807fcd8b07 Update DataLayer x Type del BwType 2021-07-14 18:44:10 +02:00
Samuele Locatelli 512c999be0 Merge branch 'develop' into Testing/NuGetDll 2021-07-14 18:08:12 +02:00
RenzoL bd9dcd11e7 Merge branch 'feature/total_rebuild' of https://gitlab.steamware.net/egaltech/egtbeamwall into Renzo 2021-07-14 16:37:23 +02:00
Samuele Locatelli 70f3010529 Merge branch 'develop' into Testing/NuGetDll 2021-06-21 17:50:23 +02:00
Samuele Locatelli b836fbf5df Merge branch 'develop' into Testing/NuGetDll 2021-06-21 09:45:06 +02:00
Samuele Locatelli 3e4ac3bbd6 Merge branch 'develop' into Testing/NuGetDll 2021-06-17 08:34:38 +02:00
Samuele Locatelli 3e06412d7d Merge branch 'develop' into Testing/NuGetDll 2021-06-07 19:21:48 +02:00
Samuele Locatelli ae90109936 Merge branch 'develop' into Testing/NuGetDll 2021-06-05 11:47:22 +02:00
Samuele Locatelli a48cb4482c Merge branch 'develop' into Testing/NuGetDll 2021-06-03 14:24:26 +02:00
Samuele Locatelli 8b41603061 Merge branch 'develop' into Testing/NuGetDll 2021-05-26 11:41:33 +02:00
Samuele Locatelli 5486af7b63 Merge branch 'develop' into Testing/NuGetDll 2021-05-20 18:52:33 +02:00
Samuele Locatelli 58c80321c4 Merge branch 'develop' into Testing/NuGetDll 2021-05-20 18:40:41 +02:00
Samuele Locatelli 7664d46554 Merge branch 'develop' into Testing/NuGetDll 2021-05-20 10:15:58 +02:00
Samuele Locatelli e660032b42 Merge branch 'develop' into Testing/NuGetDll 2021-05-19 15:33:48 +02:00
Samuele Locatelli 5935f621cf Merge branch 'develop' into Testing/NuGetDll 2021-05-19 13:29:05 +02:00
Samuele Locatelli dd17b66484 Merge remote-tracking branch 'gitlab.steamware/feature/total_rebuild' into Testing/NuGetDll 2021-05-19 13:28:18 +02:00
Samuele Locatelli da52cd0884 Merge branch 'develop' into Testing/NuGetDll 2021-05-19 13:28:03 +02:00
Samuele Locatelli 9450f686a0 Merge branch 'develop' into Testing/NuGetDll 2021-05-19 11:27:10 +02:00
Samuele Locatelli 011ae90053 Merge branch 'develop' into Testing/NuGetDll 2021-05-17 10:09:55 +02:00
Samuele Locatelli 41f0224d6c Merge branch 'develop' into Testing/NuGetDll 2021-05-13 11:25:05 +02:00
Samuele Locatelli d89fd7e42a Merge branch 'develop' into Testing/NuGetDll 2021-05-05 13:23:26 +02:00
Samuele Locatelli 83eeb2504f Merge branch 'develop' into Testing/NuGetDll 2021-05-04 08:56:22 +02:00
Samuele Locatelli 92f7d9b773 Merge branch 'develop' into Testing/NuGetDll 2021-05-03 18:52:37 +02:00
Samuele Locatelli f7730c57ce Merge branch 'develop' into Testing/NuGetDll 2021-04-30 18:39:22 +02:00
Samuele Locatelli fb4be7bfcd Aggiunte migrations + udpate views x DB 2021-04-30 18:36:51 +02:00
Samuele Locatelli 1786e5d4d8 Update metodi x StatusMap 2021-04-30 18:35:52 +02:00
Samuele Locatelli 828da5502f Merge branch 'develop' into Testing/NuGetDll 2021-04-27 12:57:26 +02:00
Samuele Locatelli faf746bfc0 Merge branch 'develop' into Testing/NuGetDll 2021-04-23 18:27:39 +02:00
Samuele Locatelli f39d8904c3 Merge branch 'develop' into Testing/NuGetDll 2021-04-23 14:26:05 +02:00
Samuele Locatelli 8c6be948d0 update pacchetti nuget 2021-04-23 13:24:39 +02:00
Samuele Locatelli ddf0629eb8 Fix gestione bat x copia in caso BuildLib 2021-04-23 13:24:33 +02:00
Samuele Locatelli e7489dc6b7 fix con versione BETA/Debug 2021-04-23 12:45:03 +02:00
Samuele Locatelli 14f1e18a00 cleanup x testing beta 2021-04-23 12:28:33 +02:00
Samuele Locatelli b1188bdc4c prima versione con NuGet dll ok... da continuare 2021-04-23 11:58:11 +02:00
50 changed files with 1720 additions and 1238 deletions
+7 -6
View File
@@ -101,6 +101,13 @@
DOWN = 1 DOWN = 1
End Enum End Enum
' Tipo di progetto (Beam o Wall)
Public Enum BWType As Integer
NULL = 0
BEAM = 1
WALL = 2
End Enum
Public Const BTLFEATURES_FILE_NAME As String = "BTLFeatures.ini" Public Const BTLFEATURES_FILE_NAME As String = "BTLFeatures.ini"
'Public Const S_GENERAL As String = "General" 'Public Const S_GENERAL As String = "General"
@@ -112,12 +119,6 @@
PROD = 2 PROD = 2
End Enum End Enum
' Tipo di progetto (Beam o Wall)
Public Enum BWType As Integer
BEAM = 1
WALL = 2
End Enum
Friend Const PROJ As String = "PROJ" Friend Const PROJ As String = "PROJ"
Friend Const FILENAMESEPARATOR As Char = "^"c Friend Const FILENAMESEPARATOR As Char = "^"c
Friend Const BTLINFO As String = "BtlInfo" Friend Const BTLINFO As String = "BtlInfo"
+1 -1
View File
@@ -180,6 +180,6 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.Core.dll</PostBuildEvent> <!-- <PostBuildEvent>copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.Core.dll</PostBuildEvent> -->
</PropertyGroup> </PropertyGroup>
</Project> </Project>
+43 -29
View File
@@ -2,41 +2,55 @@
Imports EgtUILib Imports EgtUILib
Public Class ProdFileM Public Class ProdFileM
Inherits ProjectFileM Inherits ProjectFileM
Protected m_nProjIdList As List(Of Integer) #Region "Protected Fields"
Public ReadOnly Property nProjIdList As List(Of Integer)
Get
Return m_nProjIdList
End Get
End Property
Protected m_sName As String Protected m_nProjIdList As List(Of Integer)
Public ReadOnly Property sName As String Protected m_sName As String
Get
Return m_sName
End Get
End Property
#Region "CONSTRUCTORS" #End Region
Protected Sub New() #Region "Protected Constructors"
End Sub
Public Shared Function CreateNewProdFileM() As ProdFileM Protected Sub New()
Return New ProdFileM End Sub
End Function
Public Shared Function CreateProdFileM(nProdId As Integer, nProjIdList As List(Of Integer), #End Region
dtCreateProjDate As DateTime, sName As String) As ProdFileM
Dim NewProjectFileM As New ProdFileM
NewProjectFileM.m_nProdId = nProdId
NewProjectFileM.m_nProjIdList = nProjIdList
NewProjectFileM.m_dtCreateDate = dtCreateProjDate
NewProjectFileM.m_sName = sName
Return NewProjectFileM
End Function
#End Region ' CONSTRUCTORS #Region "Public Properties"
Public ReadOnly Property nProjIdList As List(Of Integer)
Get
Return m_nProjIdList
End Get
End Property
Public ReadOnly Property sName As String
Get
Return m_sName
End Get
End Property
#End Region
#Region "Public Methods"
Public Shared Function CreateNewProdFileM() As ProdFileM
Return New ProdFileM
End Function
Public Shared Function CreateProdFileM(nProdId As Integer, nProjIdList As List(Of Integer), dtCreateProjDate As DateTime, sName As String, nType As BWType) As ProdFileM
Dim NewProjectFileM As New ProdFileM
NewProjectFileM.m_nProdId = nProdId
NewProjectFileM.m_nProjIdList = nProjIdList
NewProjectFileM.m_dtCreateDate = dtCreateProjDate
NewProjectFileM.m_sName = sName
NewProjectFileM.m_nType = nType
Return NewProjectFileM
End Function
#End Region
End Class End Class
+58 -42
View File
@@ -2,55 +2,71 @@
Imports EgtUILib Imports EgtUILib
Public Class ProjFileM Public Class ProjFileM
Inherits ProjectFileM Inherits ProjectFileM
Protected m_dtExportDate As DateTime #Region "Protected Fields"
Public ReadOnly Property dtExportDate As DateTime
Get
Return m_dtExportDate
End Get
End Property
Protected m_sListName As String Protected m_dtExportDate As DateTime
Public ReadOnly Property sListName As String Protected m_sBTLFileName As String = String.Empty
Get
Return m_sListName
End Get
End Property
Protected m_sBTLFileName As String = String.Empty Protected m_sListName As String
Public Property sBTLFileName As String
Get
Return m_sBTLFileName
End Get
Set(value As String)
m_sBTLFileName = value
End Set
End Property
#Region "CONSTRUCTORS" #End Region
Protected Sub New() #Region "Protected Constructors"
End Sub
Public Shared Function CreateNewProjFileM() As ProjFileM Protected Sub New()
Return New ProjFileM End Sub
End Function
Public Shared Function CreateProjFileM(nProjId As Integer, nProdId As Integer, dtCreateProjDate As DateTime, #End Region
dtExportDate As DateTime, sListName As String, sBTLFileName As String, IsNew As Boolean, IsLocked As Boolean) As ProjFileM
Dim NewProjectFileM As New ProjFileM
NewProjectFileM.m_nProjId = nProjId
NewProjectFileM.m_nProdId = nProdId
NewProjectFileM.m_dtCreateDate = dtCreateProjDate
NewProjectFileM.m_dtExportDate = dtExportDate
NewProjectFileM.m_sListName = sListName
NewProjectFileM.m_sBTLFileName = sBTLFileName
NewProjectFileM.m_bIsNew = IsNew
NewProjectFileM.m_bIsLocked = IsLocked
Return NewProjectFileM
End Function
#End Region ' CONSTRUCTORS #Region "Public Properties"
Public ReadOnly Property dtExportDate As DateTime
Get
Return m_dtExportDate
End Get
End Property
Public Property sBTLFileName As String
Get
Return m_sBTLFileName
End Get
Set(value As String)
m_sBTLFileName = value
End Set
End Property
Public ReadOnly Property sListName As String
Get
Return m_sListName
End Get
End Property
#End Region
#Region "Public Methods"
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, IsNew As Boolean, IsLocked As Boolean, nType As BWType) As ProjFileM
Dim NewProjectFileM As New ProjFileM
NewProjectFileM.m_nProjId = nProjId
NewProjectFileM.m_nProdId = nProdId
NewProjectFileM.m_dtCreateDate = dtCreateProjDate
NewProjectFileM.m_dtExportDate = dtExportDate
NewProjectFileM.m_sListName = sListName
NewProjectFileM.m_sBTLFileName = sBTLFileName
NewProjectFileM.m_bIsNew = IsNew
NewProjectFileM.m_bIsLocked = IsLocked
NewProjectFileM.m_nType = nType
Return NewProjectFileM
End Function
#End Region
End Class End Class
+72 -57
View File
@@ -3,70 +3,85 @@ Imports EgtUILib
Public Class ProjectFileM Public Class ProjectFileM
'Protected m_nProjectType As ProjectType 'Protected m_nProjectType As ProjectType
'Public ReadOnly Property nProjectType As ProjectType 'Public ReadOnly Property nProjectType As ProjectType
' Get ' Get
' Return m_nProjectType ' Return m_nProjectType
' End Get ' End Get
'End Property 'End Property
'Public Sub SetProjectType(nProjectType As ProjectType) 'Public Sub SetProjectType(nProjectType As ProjectType)
' m_nProjectType = nProjectType ' m_nProjectType = nProjectType
'End Sub 'End Sub
Protected m_nProjId As Integer = 0 #Region "Protected Fields"
Public ReadOnly Property nProjId As Integer
Get
Return m_nProjId
End Get
End Property
Protected m_nProdId As Integer = 0 Protected m_bIsLocked As Boolean
Public ReadOnly Property nProdId As Integer Protected m_bIsNew As Boolean
Get Protected m_dtCreateDate As DateTime
Return m_nProdId Protected m_nProdId As Integer = 0
End Get Protected m_nProjId As Integer = 0
End Property Protected m_nType As BWType
Protected m_dtCreateDate As DateTime #End Region
Public ReadOnly Property dtCreateDate As DateTime
Get
Return m_dtCreateDate
End Get
End Property
Protected m_bIsNew As Boolean #Region "Public Properties"
Public Property bIsNew As Boolean
Get
Return m_bIsNew
End Get
Set(value As Boolean)
m_bIsNew = value
End Set
End Property
Protected m_bIsLocked As Boolean Public Property bIsLocked As Boolean
Public Property bIsLocked As Boolean Get
Get Return m_bIsLocked
Return m_bIsLocked End Get
End Get Set(value As Boolean)
Set(value As Boolean) m_bIsLocked = value
m_bIsLocked = value End Set
End Set End Property
End Property
#Region "CONSTRUCTORS" Public Property bIsNew As Boolean
Get
Return m_bIsNew
End Get
Set(value As Boolean)
m_bIsNew = value
End Set
End Property
'Sub New(nProjectType As ProjectType, nProjId As Integer, nProdId As Integer, sBTLFileName As String) Public ReadOnly Property dtCreateDate As DateTime
' m_nProjectType = nProjectType Get
' If m_nProjectType = ProjectType.PROJ Then Return m_dtCreateDate
' m_nProjId = nProjId End Get
' m_nProdId = nProdId End Property
' m_BTLFileName = sBTLFileName
' ElseIf m_nProjectType = ProjectType.PROD Then
' m_nProdId = nProdId
' End If
'End Sub
#End Region ' CONSTRUCTORS Public ReadOnly Property nProdId As Integer
Get
Return m_nProdId
End Get
End Property
Public ReadOnly Property nProjId As Integer
Get
Return m_nProjId
End Get
End Property
Public Property nType As BWType
Get
Return m_nType
End Get
Set(value As BWType)
m_nType = value
End Set
End Property
#End Region
'Sub New(nProjectType As ProjectType, nProjId As Integer, nProdId As Integer, sBTLFileName As String)
' m_nProjectType = nProjectType
' If m_nProjectType = ProjectType.PROJ Then
' m_nProjId = nProjId
' m_nProdId = nProdId
' m_BTLFileName = sBTLFileName
' ElseIf m_nProjectType = ProjectType.PROD Then
' m_nProdId = nProdId
' End If
'End Sub
End Class End Class
@@ -200,7 +200,7 @@ namespace EgtBEAMWALL.DataLayer.Controllers
{ {
var currProd = FindByProdId(ProdId); var currProd = FindByProdId(ProdId);
return Core.ProdFileM.CreateProdFileM(currProd.ProdId, ProjIdByProd(ProdId), currProd.DtCreated, currProd.Description); return Core.ProdFileM.CreateProdFileM(currProd.ProdId, ProjIdByProd(ProdId), currProd.DtCreated, currProd.Description, currProd.PType);
} }
/// <summary> /// <summary>
@@ -213,7 +213,7 @@ namespace EgtBEAMWALL.DataLayer.Controllers
List<Core.ProdFileM> result = new List<Core.ProdFileM>(); List<Core.ProdFileM> result = new List<Core.ProdFileM>();
var dbResult = GetLastDbModelDesc(numRecord); var dbResult = GetLastDbModelDesc(numRecord);
// conversione // conversione
result = dbResult.Select(x => Core.ProdFileM.CreateProdFileM(x.ProdId, ProjIdByProd(x.ProdId), x.DtCreated, x.Description)).ToList(); result = dbResult.Select(x => Core.ProdFileM.CreateProdFileM(x.ProdId, ProjIdByProd(x.ProdId), x.DtCreated, x.Description, currProd.PType)).ToList();
return result; return result;
} }
@@ -244,17 +244,17 @@ namespace EgtBEAMWALL.DataLayer.Controllers
nextId = maxRecord.ProdId + 1; nextId = maxRecord.ProdId + 1;
} }
// creo nuovo PROD...
var newProd = dbCtx
.ProdList
.Add(new ProdModel() { ProdId = nextId, Locked = true, DtCreated = DateTime.Now });
// cerco Proj // cerco Proj
var currProj = dbCtx var currProj = dbCtx
.ProjList .ProjList
.Where(x => x.ProjId == ProjId) .Where(x => x.ProjId == ProjId)
.FirstOrDefault(); .FirstOrDefault();
// creo nuovo PROD...
var newProd = dbCtx
.ProdList
.Add(new ProdModel() { ProdId = nextId, Locked = true, DtCreated = DateTime.Now, PType = currProj.PType });
// aggiungo proj-prod // aggiungo proj-prod
currProj.ProdDbId = newProd.ProdDbId; currProj.ProdDbId = newProd.ProdDbId;
currProj.Locked = true; currProj.Locked = true;
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using EgtBEAMWALL.DataLayer.DatabaseModels; using EgtBEAMWALL.DataLayer.DatabaseModels;
using static EgtBEAMWALL.Core.ConstBeam;
namespace EgtBEAMWALL.DataLayer.Controllers namespace EgtBEAMWALL.DataLayer.Controllers
{ {
@@ -33,7 +34,7 @@ namespace EgtBEAMWALL.DataLayer.Controllers
/// <returns></returns> /// <returns></returns>
protected Core.ProjFileM coreConv(ProjModel currProj) protected Core.ProjFileM coreConv(ProjModel currProj)
{ {
Core.ProjFileM answ = Core.ProjFileM.CreateProjFileM(currProj.ProjId, ProdIdByProdDbId(currProj.ProdDbId), currProj.DtCreated, currProj.DtExported, currProj.ListName, currProj.BTLFileName, currProj.IsNew, currProj.Locked); Core.ProjFileM answ = Core.ProjFileM.CreateProjFileM(currProj.ProjId, ProdIdByProdDbId(currProj.ProdDbId), currProj.DtCreated, currProj.DtExported, currProj.ListName, currProj.BTLFileName, currProj.IsNew, currProj.Locked, currProj.PType);
return answ; return answ;
} }
@@ -336,7 +337,7 @@ namespace EgtBEAMWALL.DataLayer.Controllers
//currProjs.ForEach(x => x.Locked = Locked); //currProjs.ForEach(x => x.Locked = Locked);
foreach (var item in currProjs) foreach (var item in currProjs)
{ {
//item.ProdDbId = currProd.ProdDbId; //item.ProdDbId = currProd.ProdDbId;
item.Locked = Locked; item.Locked = Locked;
dbCtx.Entry(item).State = System.Data.Entity.EntityState.Modified; dbCtx.Entry(item).State = System.Data.Entity.EntityState.Modified;
} }
@@ -498,13 +499,14 @@ namespace EgtBEAMWALL.DataLayer.Controllers
/// <param name="ListName"></param> /// <param name="ListName"></param>
/// <param name="DtExported"></param> /// <param name="DtExported"></param>
/// <returns></returns> /// <returns></returns>
public Core.ProjFileM UpdateInfo(int ProjId, string BTLFileName, string ListName, DateTime DtExported) public Core.ProjFileM UpdateInfo(int ProjId, string BTLFileName, string ListName, DateTime DtExported, BWType PType)
{ {
var currData = FindByProjId(ProjId); var currData = FindByProjId(ProjId);
// aggiorno valore BTL // aggiorno valore BTL
currData.BTLFileName = BTLFileName; currData.BTLFileName = BTLFileName;
currData.DtExported = DtExported; currData.DtExported = DtExported;
currData.ListName = ListName; currData.ListName = ListName;
currData.PType = PType;
// Commit changes // Commit changes
dbCtx.SaveChanges(); dbCtx.SaveChanges();
@@ -4,6 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using static EgtBEAMWALL.Core.ConstBeam;
namespace EgtBEAMWALL.DataLayer.DatabaseModels namespace EgtBEAMWALL.DataLayer.DatabaseModels
{ {
@@ -48,6 +49,11 @@ namespace EgtBEAMWALL.DataLayer.DatabaseModels
[Column("Id")] [Column("Id")]
public int ProdId { get; set; } public int ProdId { get; set; }
/// <summary>
/// Tipologia del progetto (Travi, Pareti, ...)
/// </summary>
public BWType PType { get; set; } = BWType.NULL;
#endregion Public Properties #endregion Public Properties
} }
} }
@@ -4,6 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using static EgtBEAMWALL.Core.ConstBeam;
namespace EgtBEAMWALL.DataLayer.DatabaseModels namespace EgtBEAMWALL.DataLayer.DatabaseModels
{ {
@@ -60,6 +61,11 @@ namespace EgtBEAMWALL.DataLayer.DatabaseModels
[Column("Id")] [Column("Id")]
public int ProjId { get; set; } public int ProjId { get; set; }
/// <summary>
/// Tipologia del progetto (Travi, Pareti, ...)
/// </summary>
public BWType PType { get; set; } = BWType.NULL;
#endregion Public Properties #endregion Public Properties
} }
} }
@@ -114,6 +114,14 @@
<Compile Include="Migrations\202105051121209_renameIndex.designer.cs"> <Compile Include="Migrations\202105051121209_renameIndex.designer.cs">
<DependentUpon>202105051121209_renameIndex.cs</DependentUpon> <DependentUpon>202105051121209_renameIndex.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Migrations\202107141618197_AddBwProjType.cs" />
<Compile Include="Migrations\202107141618197_AddBwProjType.designer.cs">
<DependentUpon>202107141618197_AddBwProjType.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\202107150824339_AddBwProdType.cs" />
<Compile Include="Migrations\202107150824339_AddBwProdType.designer.cs">
<DependentUpon>202107150824339_AddBwProdType.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" /> <Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils.cs" /> <Compile Include="Utils.cs" />
@@ -141,10 +149,16 @@
<EmbeddedResource Include="Migrations\202105051121209_renameIndex.resx"> <EmbeddedResource Include="Migrations\202105051121209_renameIndex.resx">
<DependentUpon>202105051121209_renameIndex.cs</DependentUpon> <DependentUpon>202105051121209_renameIndex.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Migrations\202107141618197_AddBwProjType.resx">
<DependentUpon>202107141618197_AddBwProjType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\202107150824339_AddBwProdType.resx">
<DependentUpon>202107150824339_AddBwProdType.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.DataLayer.dll</PostBuildEvent> <!-- <PostBuildEvent>copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.DataLayer.dll</PostBuildEvent> -->
</PropertyGroup> </PropertyGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup> <PropertyGroup>
@@ -0,0 +1,29 @@
// <auto-generated />
namespace EgtBEAMWALL.DataLayer.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.4.4")]
public sealed partial class AddBwProjType : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(AddBwProjType));
string IMigrationMetadata.Id
{
get { return "202107141618197_AddBwProjType"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}
@@ -0,0 +1,18 @@
namespace EgtBEAMWALL.DataLayer.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AddBwProjType : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProjList", "PType", c => c.Int(nullable: false));
}
public override void Down()
{
DropColumn("dbo.ProjList", "PType");
}
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,29 @@
// <auto-generated />
namespace EgtBEAMWALL.DataLayer.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.4.4")]
public sealed partial class AddBwProdType : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(AddBwProdType));
string IMigrationMetadata.Id
{
get { return "202107150824339_AddBwProdType"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}
@@ -0,0 +1,18 @@
namespace EgtBEAMWALL.DataLayer.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AddBwProdType : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProdList", "PType", c => c.Int(nullable: false));
}
public override void Down()
{
DropColumn("dbo.ProdList", "PType");
}
}
}
File diff suppressed because one or more lines are too long
@@ -7,132 +7,137 @@ Imports EgtUILib
Imports EgtWPFLib5 Imports EgtWPFLib5
Public Class SupervisorManagerVM Public Class SupervisorManagerVM
Inherits VMBase Inherits VMBase
#Region "FIELDS & PROPERTIES" #Region "Private Fields"
Private m_CurrProd As ProdFileVM ' Definizione comandi
Friend Property CurrProd As ProdFileVM Private m_cmdOpen As ICommand
Get
Return m_CurrProd
End Get
Set(value As ProdFileVM)
m_CurrProd = value
End Set
End Property
' Definizione comandi Private m_CurrProd As ProdFileVM
Private m_cmdOpen As ICommand
'Private m_cmdSave As ICommand
'Private m_cmdGoToProj As ICommand
'#Region "ToolTip" #End Region
' 'Proprietà ToolTip #Region "Public Constructors"
' Public ReadOnly Property OpenToolTip As String
' Get
' Return EgtMsg(MSG_TOPCOMMANDBAR + 2)
' End Get
' End Property
' Public ReadOnly Property SaveToolTip As String
' Get
' Return EgtMsg(MSG_TOPCOMMANDBAR + 3)
' End Get
' End Property
'#End Region ' ToolTip Sub New()
' Creo riferimento a questa classe in Map
Map.SetRefSupervisorManagerVM(Me)
End Sub
#End Region ' Fields & Properties #End Region
#Region "CONSTRUCTOR" #Region "Internal Properties"
Sub New() Friend Property CurrProd As ProdFileVM
' Creo riferimento a questa classe in Map Get
Map.SetRefSupervisorManagerVM(Me) Return m_CurrProd
End Sub End Get
Set(value As ProdFileVM)
m_CurrProd = value
End Set
End Property
#End Region ' CONSTRUCTOR #End Region
#Region "METHODS" 'Private m_cmdSave As ICommand
'Private m_cmdGoToProj As ICommand
Public Function SetCurrProd(nProdId As Integer) As Boolean '#Region "ToolTip"
Dim Currprod As ProdModel = DbControllers.m_ProdController.FindByProdId(nProdId)
If IsNothing(Currprod) Then Return False
m_CurrProd = New ProdFileVM(ProdFileM.CreateProdFileM(Currprod.ProdId, New List(Of Integer), Date.Now(), ""))
Return True
End Function
#End Region ' METHODS ' 'Proprietà ToolTip
' Public ReadOnly Property OpenToolTip As String
' Get
' Return EgtMsg(MSG_TOPCOMMANDBAR + 2)
' End Get
' End Property
' Public ReadOnly Property SaveToolTip As String
' Get
' Return EgtMsg(MSG_TOPCOMMANDBAR + 3)
' End Get
' End Property
#Region "COMMANDS" #Region "Public Properties"
#Region "OpenCommand" ''' <summary>
''' Returns a command that do Open.
''' </summary>
Public ReadOnly Property OpenCommand As ICommand
Get
If m_cmdOpen Is Nothing Then
m_cmdOpen = New Command(AddressOf Open)
End If
Return m_cmdOpen
End Get
End Property
''' <summary> #End Region
''' Returns a command that do Open.
''' </summary>
Public ReadOnly Property OpenCommand As ICommand
Get
If m_cmdOpen Is Nothing Then
m_cmdOpen = New Command(AddressOf Open)
End If
Return m_cmdOpen
End Get
End Property
''' <summary> #Region "Internal Methods"
''' Execute the Open. This method is invoked by the OpenCommand.
''' </summary>
Friend Sub Open()
OpenProject()
End Sub
Friend Sub OpenProject() ''' <summary>
'' verifico se progetto modificato, e chiedo se salvare ''' Execute the Open. This method is invoked by the OpenCommand.
'ProdFileVM.VerifyProjectModification(CurrProd) ''' </summary>
Dim sFilePath As String = "" Friend Sub Open()
' se la string è vuota OpenProject()
Dim TempCurrProd As ProdFileVM End Sub
Dim OpenProjectFileDialogVM As OpenProjectFileDialogVM = Nothing
' apro dialogo di scelta file Friend Sub OpenProject()
OpenProjectFileDialogVM = New OpenProjectFileDialogVM '' verifico se progetto modificato, e chiedo se salvare
Dim OpenFile As New OpenProjectFileDialogV(Application.Current.MainWindow, OpenProjectFileDialogVM) 'ProdFileVM.VerifyProjectModification(CurrProd)
Dim DialogResult As Boolean? = OpenFile.EgtShowDialog(ProjectType.PROD) Dim sFilePath As String = ""
If IsNothing(DialogResult) OrElse Not DialogResult Then Return ' se la string è vuota
sFilePath = OpenProjectFileDialogVM.SelProject.sProdPath Dim TempCurrProd As ProdFileVM
TempCurrProd = OpenProjectFileDialogVM.SelProject Dim OpenProjectFileDialogVM As OpenProjectFileDialogVM = Nothing
If File.Exists(sFilePath) Then ' apro dialogo di scelta file
If Map.refSceneHostVM.MainController.OpenProject(sFilePath, False) Then OpenProjectFileDialogVM = New OpenProjectFileDialogVM
m_CurrProd = TempCurrProd Dim OpenFile As New OpenProjectFileDialogV(Application.Current.MainWindow, OpenProjectFileDialogVM)
Map.refMainWindowVM.UpdateTitle() Dim DialogResult As Boolean? = OpenFile.EgtShowDialog(ProjectType.PROD)
'If Map.refMachGroupPanelVM.InitMachGroupList() Then If IsNothing(DialogResult) OrElse Not DialogResult Then Return
' m_CurrProd = TempCurrProd sFilePath = OpenProjectFileDialogVM.SelProject.sProdPath
' Map.refMainWindowVM.SetTitle(CurrProd.nProdId.ToString("0000") & " - EgtBEAMWALL") TempCurrProd = OpenProjectFileDialogVM.SelProject
'Else If File.Exists(sFilePath) Then
'MessageBox.Show("Impossibile aprire gruppi di lavorazione del file!!") If Map.refSceneHostVM.MainController.OpenProject(sFilePath, False) Then
'Map.refSceneHostVM.MainController.NewProject() m_CurrProd = TempCurrProd
'Map.refMainWindowVM.SetTitle("New - EgtBEAMWALL") Map.refMainWindowVM.UpdateTitle()
'End If 'If Map.refMachGroupPanelVM.InitMachGroupList() Then
Else ' m_CurrProd = TempCurrProd
MessageBox.Show("Impossibile aprire il file!!") ' Map.refMainWindowVM.SetTitle(CurrProd.nProdId.ToString("0000") & " - EgtBEAMWALL")
'Else
'MessageBox.Show("Impossibile aprire gruppi di lavorazione del file!!")
'Map.refSceneHostVM.MainController.NewProject()
'Map.refMainWindowVM.SetTitle("New - EgtBEAMWALL")
'End If
Else
MessageBox.Show("Impossibile aprire il file!!")
Map.refSceneHostVM.MainController.NewProject()
Map.refMainWindowVM.SetTitle("New - EgtBEAMWALL")
End If
Else
MessageBox.Show("File non trovato!!")
Map.refSceneHostVM.MainController.NewProject() Map.refSceneHostVM.MainController.NewProject()
Map.refMainWindowVM.SetTitle("New - EgtBEAMWALL") Map.refMainWindowVM.SetTitle("New - EgtBEAMWALL")
End If End If
Else Map.refProjectVM.SupervisorMachGroupPanelVM = New MyMachGroupPanelVM(MachGroupPanelM.CreateNewMachGroupPanel())
MessageBox.Show("File non trovato!!") Dim TempList As List(Of DataLayer.DatabaseModels.MachGroupModel) = DbControllers.m_MachGroupController.GetByProdSupervisor(Map.refSupervisorManagerVM.CurrProd.nProdId, m_SupervisorId)
Map.refSceneHostVM.MainController.NewProject() For Each MachGroup In TempList
Map.refMainWindowVM.SetTitle("New - EgtBEAMWALL") Map.refProjectVM.SupervisorMachGroupPanelVM.MachGroupVMList.Add(Map.refProjectVM.ProdMachGroupPanelVM.MachGroupVMList.FirstOrDefault(Function(x) x.Id = MachGroup.MachGroupId))
End If Next
Map.refProjectVM.SupervisorMachGroupPanelVM = New MyMachGroupPanelVM(MachGroupPanelM.CreateNewMachGroupPanel()) Map.refProjectVM.SupervisorMachGroupPanelVM.NotifyPropertyChanged(NameOf(Map.refProjectVM.SupervisorMachGroupPanelVM.MachGroupVMList))
Dim TempList As List(Of DataLayer.DatabaseModels.MachGroupModel) = DbControllers.m_MachGroupController.GetByProdSupervisor(Map.refSupervisorManagerVM.CurrProd.nProdId, m_SupervisorId) End Sub
For Each MachGroup In TempList
Map.refProjectVM.SupervisorMachGroupPanelVM.MachGroupVMList.Add(Map.refProjectVM.ProdMachGroupPanelVM.MachGroupVMList.FirstOrDefault(Function(x) x.Id = MachGroup.MachGroupId))
Next
Map.refProjectVM.SupervisorMachGroupPanelVM.NotifyPropertyChanged(NameOf(Map.refProjectVM.SupervisorMachGroupPanelVM.MachGroupVMList))
End Sub
#End Region ' OpenCommand #End Region
#End Region ' Commands #Region "Public Methods"
'#End Region ' ToolTip
Public Function SetCurrProd(nProdId As Integer) As Boolean
Dim Currprod As ProdFileM = DbControllers.m_ProdController.FindCoreByProdId(nProdId)
If IsNothing(Currprod) Then Return False
m_CurrProd = New ProdFileVM(Currprod)
Return True
End Function
#End Region
End Class End Class
+38 -35
View File
@@ -1,37 +1,40 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<configSections> <configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" <section name="entityFramework"
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false"/> requirePermission="false" />
</configSections> </configSections>
<entityFramework> <entityFramework>
<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6"/> <defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6" />
<providers> <providers>
<provider invariantName="MySql.Data.MySqlClient" <provider invariantName="MySql.Data.MySqlClient"
type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider> type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers> </providers>
</entityFramework> </entityFramework>
<connectionStrings> <connectionStrings>
<add name="DefaultConnection" <add name="DefaultConnection"
connectionString="server=localhost;port=3306;User Id=EgtUser;password=viacremasca;Persist Security Info=True;database=EgtBwDb;SslMode=none" connectionString="server=localhost;port=3306;User Id=EgtUser;password=viacremasca;Persist Security Info=True;database=EgtBwDb;SslMode=none"
providerName="MySql.Data.MySqlClient"/> providerName="MySql.Data.MySqlClient" />
</connectionStrings> </connectionStrings>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral"/> <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.10.9.0" newVersion="6.10.9.0"/> <bindingRedirect oldVersion="0.0.0.0-6.10.9.0" newVersion="6.10.9.0" />
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
<system.data> <system.data>
<DbProviderFactories> <DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient"/> <remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL"
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.10.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/> type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.10.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories> </DbProviderFactories>
</system.data> </system.data>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup></configuration> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
+3
View File
@@ -0,0 +1,3 @@
; Commento per evitare BOM con UTF-8
[Data]
DataRoot=C:\EgtData\EgtBEAMWALL
@@ -103,11 +103,14 @@
<ApplicationIcon>Resources\EgtBEAMWALL.ico</ApplicationIcon> <ApplicationIcon>Resources\EgtBEAMWALL.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="EgtUILib"> <Reference Include="EgtUILib, Version=2.3.4.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\..\..\EgtProg\Dll32\EgtUILib.dll</HintPath> <HintPath>..\packages\EgtUILib.2.3.4.4\lib\EgtUILib.dll</HintPath>
</Reference> </Reference>
<Reference Include="EgtWPFLib5"> <Reference Include="EgtWPFLib, Version=2.2.11.1, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\..\..\EgtProg\Dll32\EgtWPFLib5.dll</HintPath> <HintPath>..\packages\EgtWPFLib.2.1.11.1\lib\EgtWPFLib.dll</HintPath>
</Reference>
<Reference Include="EgtWPFLib5, Version=2.3.4.3, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\EgtWPF5Lib.2.3.4.3\lib\EgtWPFLib5.dll</HintPath>
</Reference> </Reference>
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll</HintPath> <HintPath>..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll</HintPath>
@@ -598,11 +601,16 @@
<CustomToolNamespace>My.Resources</CustomToolNamespace> <CustomToolNamespace>My.Resources</CustomToolNamespace>
</EmbeddedResource> </EmbeddedResource>
<None Include="App.config" /> <None Include="App.config" />
<None Include="DataRoot.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="My Project\Settings.settings"> <None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.vb</LastGenOutput> <LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None> </None>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="_Tools\postBuildTgt.bat" />
<None Include="_Tools\preBuildTgt.bat" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Resource Include="Resources\EgtBEAMWALL.ico" /> <Resource Include="Resources\EgtBEAMWALL.ico" />
@@ -651,6 +659,29 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Behavior\" /> <Folder Include="Behavior\" />
<Folder Include="FreeContourMgr\" />
<Folder Include="_Readme\" />
</ItemGroup>
<ItemGroup>
<Content Include="_BaseLib\c3d.dll" />
<Content Include="_BaseLib\EgtExchangeR32.dll" />
<Content Include="_BaseLib\EgtExecutorR32.dll" />
<Content Include="_BaseLib\EgtGeneralR32.dll" />
<Content Include="_BaseLib\EgtGeomKernelR32.dll" />
<Content Include="_BaseLib\EgtGraphicsR32.dll" />
<Content Include="_BaseLib\EgtInterfaceR32.dll" />
<Content Include="_BaseLib\EgtMachKernelR32.dll" />
<Content Include="_BaseLib\EgtNestingR32.dll" />
<Content Include="_BaseLib\EgtNumKernelR32.dll" />
<Content Include="_BaseLib\FreeImage.dll" />
<Content Include="_BaseLib\glew32.dll" />
<Content Include="_BaseLib\liblcnsR32.dll" />
<Content Include="_BaseLib\libwinpthread-1.dll" />
<Content Include="_BaseLib\lua53.dll" />
<Content Include="_BaseLib\od32.dll" />
<Content Include="_BaseLib\System.Data.SQLite.dll" />
<Content Include="_BaseLib\zipR32.dll" />
<Content Include="_BaseLib\zlibR32.dll" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Resource Include="Resources\AboutBoxImage.png" /> <Resource Include="Resources\AboutBoxImage.png" />
@@ -730,10 +761,12 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerR32.exe <PostBuildEvent>
IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Debug" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerD32.exe <!-- IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerR32.exe
IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerR64.exe IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Debug" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerD32.exe
IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Debug" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerD64.exe</PostBuildEvent> IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerR64.exe
IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Debug" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerD64.exe -->
</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup> <PropertyGroup>
@@ -743,4 +776,7 @@ IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Debug" copy $(TargetPa
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" /> <Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" />
</Target> </Target>
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" /> <Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" />
<PropertyGroup>
<PreBuildEvent>"$(ProjectDir)_Tools\preBuildTgt.bat" "$(ProjectDir)_BaseLib" $(TargetDir)</PreBuildEvent>
</PropertyGroup>
</Project> </Project>
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
@echo off
echo Effettua operazioni PostBuild: Platform: %1 | ConfigurationName: %2 | TargetPath: %3 | BaseDir: %4 | TargetDir: %5
REM modalità classica: copia in C:\EgtProg quanto compilato
IF %1=="x86" IF %2 == "Release" copy %3 c:\EgtProg\EgtBEAMWALL\ViewerOptimizer\EgtBEAMWALL.ViewerOptimizerR32.exe
IF %1=="x86" IF %2 == "Debug" copy %3 c:\EgtProg\EgtBEAMWALL\ViewerOptimizer\EgtBEAMWALL.ViewerOptimizerD32.exe
IF %1=="x64" IF %2 == "Release" copy %3 c:\EgtProg\EgtBEAMWALL\ViewerOptimizer\EgtBEAMWALL.ViewerOptimizerR64.exe
IF %1=="x64" IF %2 == "Debug" copy %3 c:\EgtProg\EgtBEAMWALL\ViewerOptimizer\EgtBEAMWALL.ViewerOptimizerD64.exe
@@ -0,0 +1,7 @@
@echo off
echo Effettua operazioni PreBuild di copia DLL
REM Modalità nuova: copio IN LOCALE le dll da _BaseLib
ROBOCOPY %1 %2
echo Fatto!
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="EgtUILib" version="2.3.4.4" targetFramework="net452" />
<package id="EgtWPF5Lib" version="2.3.4.3" targetFramework="net452" />
<package id="EgtWPFLib" version="2.1.11.1" targetFramework="net452" />
<package id="EntityFramework" version="6.4.4" targetFramework="net452" /> <package id="EntityFramework" version="6.4.4" targetFramework="net452" />
<package id="MySql.Data" version="6.10.9" targetFramework="net40" requireReinstallation="true" /> <package id="MySql.Data" version="6.10.9" targetFramework="net40" requireReinstallation="true" />
<package id="MySql.Data.Entity" version="6.10.9" targetFramework="net40" requireReinstallation="true" /> <package id="MySql.Data.Entity" version="6.10.9" targetFramework="net40" requireReinstallation="true" />