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 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) (limited to 'Software/Visual_Studio/Tango.BL') 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. /// -- cgit v1.3.1