aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-11-13 10:36:11 +0200
committerRoy <Roy.mail.net@gmail.com>2022-11-13 10:36:11 +0200
commitc23e72b8b4eec5fe4b6ee77bc997980fcb356846 (patch)
treedf2cec52a6cd0d786432eefaf2857c1207cb7b73 /Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
parentc14680622d66176dbc90f02dbed5629297f58bb9 (diff)
downloadTango-c23e72b8b4eec5fe4b6ee77bc997980fcb356846.tar.gz
Tango-c23e72b8b4eec5fe4b6ee77bc997980fcb356846.zip
PPC "Use Flat Spool" + SpoolType logic improvements.
Added RML->SpoolType calibration new parameters.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs9
1 files changed, 7 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 c5fc6c6b2..83f4d4f29 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Printing/DefaultPrintingManager.cs
@@ -55,7 +55,7 @@ namespace Tango.PPC.UI.Printing
/// <param name="job">The job.</param>
/// <param name="context">The context.</param>
/// <returns></returns>
- public async Task<JobHandler> Print(Job job, ObservablesContext context)
+ public async Task<JobHandler> Print(Job job, ObservablesContext context, PrintingConfiguration printConfig = null)
{
ThrowIfJobInvalid(job);
@@ -99,7 +99,12 @@ namespace Tango.PPC.UI.Printing
var spoolType = await context.SpoolTypes.FirstOrDefaultAsync(x => x.Guid == spoolTypeGuid);
if (spoolType == null)
{
- spoolType = await context.SpoolTypes.FirstOrDefaultAsync(x => x.Code == (int)BL.Enumerations.SpoolTypes.StandardSpool);
+ spoolType = await context.SpoolTypes.FirstOrDefaultAsync(x => x.Code == (int)SpoolTypes.StandardSpool);
+ }
+
+ if (job.SpoolType.Type == SpoolTypes.FlatSpool)
+ {
+ spoolType = await context.SpoolTypes.FirstOrDefaultAsync(x => x.Code == (int)SpoolTypes.FlatSpool);
}
job.SpoolType = spoolType;