aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2023-10-19 17:23:24 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2023-10-19 17:25:22 +0300
commitb6745cf00a2aedae8da24a2477d1000f30e7e1d3 (patch)
tree0035b1984a542846f186fbc613e9925dc1d168d0 /Software/Visual_Studio/Tango.BL
parent3fc440bd00595d660299de7da0fce21945014df4 (diff)
downloadTango-b6745cf00a2aedae8da24a2477d1000f30e7e1d3.tar.gz
Tango-b6745cf00a2aedae8da24a2477d1000f30e7e1d3.zip
Added Number of Spools to Job table.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL')
-rw-r--r--Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs8
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/JobBase.cs38
2 files changed, 46 insertions, 0 deletions
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;
}
+ /// <summary>
+ /// number of spools
+ /// </summary>
+ 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<Int32> VersionChanged;
+ public event EventHandler<Int32> NumberOfSpoolsChanged;
+
public event EventHandler<ColorCatalog> ColorCatalogChanged;
public event EventHandler<ColorSpace> ColorSpaceChanged;
@@ -1079,6 +1081,33 @@ namespace Tango.BL.Entities
}
}
+ protected Int32 _numberofspools;
+
+ /// <summary>
+ /// Gets or sets the jobbase number of spools.
+ /// </summary>
+
+ [Column("NUMBER_OF_SPOOLS")]
+
+ public Int32 NumberOfSpools
+ {
+ get
+ {
+ return _numberofspools;
+ }
+
+ set
+ {
+ if (_numberofspools != value)
+ {
+ _numberofspools = value;
+
+ OnNumberOfSpoolsChanged(value);
+
+ }
+ }
+ }
+
protected ColorCatalog _colorcatalog;
/// <summary>
@@ -1638,6 +1667,15 @@ namespace Tango.BL.Entities
}
/// <summary>
+ /// Called when the NumberOfSpools has changed.
+ /// </summary>
+ protected virtual void OnNumberOfSpoolsChanged(Int32 numberofspools)
+ {
+ NumberOfSpoolsChanged?.Invoke(this, numberofspools);
+ RaisePropertyChanged(nameof(NumberOfSpools));
+ }
+
+ /// <summary>
/// Called when the ColorCatalog has changed.
/// </summary>
protected virtual void OnColorCatalogChanged(ColorCatalog colorcatalog)