aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-03-16 23:59:42 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-03-16 23:59:42 +0200
commit3d09f9c2aef7ab4ca2c66a35c8c25a39bc748d1b (patch)
tree5350946461539f9d54d63f28f7bca8ded2cf5898 /Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
parent3549567e8db23411a84e006229f3382d912209fb (diff)
downloadTango-3d09f9c2aef7ab4ca2c66a35c8c25a39bc748d1b.tar.gz
Tango-3d09f9c2aef7ab4ca2c66a35c8c25a39bc748d1b.zip
Implemented job runs individual liquid quantities.
Added to job runs fixer.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs b/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
index 0fadd1baa..75d940566 100644
--- a/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
+++ b/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
@@ -115,6 +115,36 @@ namespace Tango.Integration.JobRuns
run.GradientResolutionCm = MachineOperator.GradientGenerationConfiguration.ResolutionCM;
run.JobString = _job.ToJobFileWhenLoaded().ToString();
+ //Set individual liquid quantities
+
+ //Cyan
+ var cyan = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.Cyan);
+ run.CyanQuantity = cyan != null ? cyan.Quantity : 0;
+
+ //Magenta
+ var magenta = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.Magenta);
+ run.MagentaQuantity = magenta != null ? magenta.Quantity : 0;
+
+ //Yellow
+ var yellow = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.Yellow);
+ run.YellowQuantity = yellow != null ? yellow.Quantity : 0;
+
+ //Black
+ var black = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.Black);
+ run.BlackQuantity = black != null ? black.Quantity : 0;
+
+ //TI
+ var ti = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.TransparentInk);
+ run.TransparentQuantity = ti != null ? ti.Quantity : 0;
+
+ //Lubricant
+ var lubricant = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.Lubricant);
+ run.LubricantQuantity = lubricant != null ? lubricant.Quantity : 0;
+
+ //Lubricant
+ var cleaner = run.LiquidQuantities.SingleOrDefault(x => x.LiquidType == LiquidTypes.Cleaner);
+ run.CleanerQuantity = cleaner != null ? cleaner.Quantity : 0;
+
if (exception != null)
{
run.FailedMessage = exception.FlattenMessage();