aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 18:22:07 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 18:22:07 +0300
commit536ba01ed87152a3bd9a85e15ad0c5d5a6f7397f (patch)
tree0e2be00e0287be4f9bc68cd92edbde78d070f55e /Software/Visual_Studio/PPC/Tango.PPC.UI/Printing
parentba4aec4c691476d68b3da383a70bff42341c7171 (diff)
downloadTango-536ba01ed87152a3bd9a85e15ad0c5d5a6f7397f.tar.gz
Tango-536ba01ed87152a3bd9a85e15ad0c5d5a6f7397f.zip
Improved PPC catalog rendering with virtualization.
Improved PPC tech logs with virtualization. Added machine S/N to PPC menu. Added support for Volume color space printing on PPC. Implemented full job request log when method is JobDescriptionFile.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Printing')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
index f05c05a44..7d4aa154e 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
@@ -5,6 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using Tango.BL;
using Tango.BL.Entities;
+using Tango.BL.Enumerations;
using Tango.Core;
using Tango.Core.DI;
using Tango.Integration.Operation;
@@ -45,10 +46,20 @@ namespace Tango.PPC.UI.Printing
public async Task<JobHandler> Print(Job job, ObservablesContext context)
{
+ JobHandler handler = null;
+
#if STUBPRINT
- var handler = await _machineProvider.MachineOperator.PrintStub(job);
+ handler = await _machineProvider.MachineOperator.PrintStub(job);
#else
- var handler = await _machineProvider.MachineOperator.Print(job);
+
+ if (job.ColorSpace.Code != ColorSpaces.Volume.ToInt32())
+ {
+ handler = await _machineProvider.MachineOperator.Print(job);
+ }
+ else
+ {
+ handler = await _machineProvider.MachineOperator.Print(job, job.Rml.GetActiveProcessGroup().ProcessParametersTables.FirstOrDefault());
+ }
#endif
handler.Completed += async (x, e) =>