From b6745cf00a2aedae8da24a2477d1000f30e7e1d3 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Thu, 19 Oct 2023 17:23:24 +0300 Subject: Added Number of Spools to Job table. --- Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs | 8 + .../Visual_Studio/Tango.BL/Entities/JobBase.cs | 38 ++++ Software/Visual_Studio/Tango.DAL.Remote/DB/JOB.cs | 1 + .../Tango.DAL.Remote/DB/RemoteADO.edmx | 3 + .../Tango.DAL.Remote/DB/RemoteADO.edmx.diagram | 192 ++++++++++----------- 5 files changed, 146 insertions(+), 96 deletions(-) (limited to 'Software/Visual_Studio') diff --git a/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs index c5e13a569..feb789ffe 100644 --- a/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs +++ b/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs @@ -309,5 +309,13 @@ namespace Tango.BL.DTO get; set; } + /// + /// number of spools + /// + public Int32 NumberOfSpools + { + get; set; + } + } } diff --git a/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs b/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs index f37848b5e..83912de98 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs @@ -83,6 +83,8 @@ namespace Tango.BL.Entities public event EventHandler VersionChanged; + public event EventHandler NumberOfSpoolsChanged; + public event EventHandler ColorCatalogChanged; public event EventHandler ColorSpaceChanged; @@ -1079,6 +1081,33 @@ namespace Tango.BL.Entities } } + protected Int32 _numberofspools; + + /// + /// Gets or sets the jobbase number of spools. + /// + + [Column("NUMBER_OF_SPOOLS")] + + public Int32 NumberOfSpools + { + get + { + return _numberofspools; + } + + set + { + if (_numberofspools != value) + { + _numberofspools = value; + + OnNumberOfSpoolsChanged(value); + + } + } + } + protected ColorCatalog _colorcatalog; /// @@ -1637,6 +1666,15 @@ namespace Tango.BL.Entities RaisePropertyChanged(nameof(Version)); } + /// + /// Called when the NumberOfSpools has changed. + /// + protected virtual void OnNumberOfSpoolsChanged(Int32 numberofspools) + { + NumberOfSpoolsChanged?.Invoke(this, numberofspools); + RaisePropertyChanged(nameof(NumberOfSpools)); + } + /// /// Called when the ColorCatalog has changed. /// diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/JOB.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/JOB.cs index b45dbe3b3..7dd8b2b61 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/JOB.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/JOB.cs @@ -60,6 +60,7 @@ namespace Tango.DAL.Remote.DB public bool IS_SYNCHRONIZED { get; set; } public int SOURCE { get; set; } public int VERSION { get; set; } + public int NUMBER_OF_SPOOLS { get; set; } public virtual COLOR_CATALOGS COLOR_CATALOGS { get; set; } public virtual COLOR_SPACES COLOR_SPACES { get; set; } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx index 049c4a131..0a3fa8bd7 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx @@ -838,6 +838,7 @@ + @@ -6490,6 +6491,7 @@ + @@ -9941,6 +9943,7 @@ + diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram index f21f85e35..8ab83d696 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram @@ -5,102 +5,102 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.3.1