aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-01-23 17:07:26 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-01-23 17:07:26 +0200
commit39ba30b9660a11d15e00afa80217219078d4b698 (patch)
treedc7ad5f6d648a6fe8a2dcde8dae805cae142d9ea /Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
parent58f79af3b62e7737191205e029ccdc8fb79c40cc (diff)
downloadTango-39ba30b9660a11d15e00afa80217219078d4b698.tar.gz
Tango-39ba30b9660a11d15e00afa80217219078d4b698.zip
Added new fields to job runs fixer
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs28
1 files changed, 9 insertions, 19 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs b/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
index 7808a6957..ba90cc805 100644
--- a/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
+++ b/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
@@ -66,25 +66,15 @@ namespace Tango.JobRunsGenerator
run.JobSource = job.Source;
- if (run.JobLength == 0)
- {
- run.JobLength = job.LengthIncludingNumberOfUnits;
- }
-
- if (run.JobName == null)
- {
- run.JobName = job.Name;
- }
-
- if (run.JobString == null)
- {
- run.JobString = job.ToJobFileWhenLoaded().ToString();
- }
-
- if (run.LiquidQuantityString == null)
- {
- run.LiquidQuantities = MachineOperator.CreateJobRunLiquidQuantities(job, machine.Configuration, job.Rml.GetActiveProcessGroup().ProcessParametersTables.First(), run.EndPosition, job.LengthIncludingNumberOfUnits, 20);
- }
+ if (run.JobLength == 0) run.JobLength = job.LengthIncludingNumberOfUnits;
+ if (run.JobName == null) run.JobName = job.Name;
+ if (run.JobString == null) run.JobString = job.ToJobFileWhenLoaded().ToString();
+ if (run.LiquidQuantityString == null) run.LiquidQuantities = MachineOperator.CreateJobRunLiquidQuantities(job, machine.Configuration, job.Rml.GetActiveProcessGroup().ProcessParametersTables.First(), run.EndPosition, job.LengthIncludingNumberOfUnits, 20);
+ if (run.UserGuid != null) run.UserGuid = job.UserGuid;
+ if (run.UploadingStartDate == null) run.UploadingStartDate = run.StartDate;
+ if (run.HeatingStartDate == null) run.HeatingStartDate = run.StartDate;
+ if (run.ActualStartDate == null) run.ActualStartDate = run.StartDate;
+ run.IsGradient = job.Segments.Any(x => x.BrushStops.Count > 1);
saveIndex++;