aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobsViewVM.cs14
1 files changed, 2 insertions, 12 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobsViewVM.cs
index 67a4cf972..db75b5e34 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobsViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobsViewVM.cs
@@ -960,6 +960,7 @@ namespace Tango.PPC.Jobs.ViewModels
job.Name = vm.Name;
job.NumberOfHeads = 1;
job.NumberOfUnits = 1;
+ job.NumberOfSpools = BuildProvider.MachineType == MachineTypes.Eureka ? 4 : 1;
job.SampleUnitsOrMeters = 1;
job.CreationDate = DateTime.UtcNow;
job.JobStatus = JobStatuses.Draft;
@@ -1045,6 +1046,7 @@ namespace Tango.PPC.Jobs.ViewModels
job.NumberOfHeads = 1;
job.NumberOfUnits = 1;
job.SampleUnitsOrMeters = 1;
+ job.NumberOfSpools = BuildProvider.MachineType == MachineTypes.Eureka ? 4 : 1;
job.CreationDate = DateTime.UtcNow;
job.JobStatus = JobStatuses.Draft;
job.JobType = JobTypes.Knitting;
@@ -1056,18 +1058,6 @@ namespace Tango.PPC.Jobs.ViewModels
job.WindingMethodGuid = Adapter.WindingMethods.FirstOrDefault().Guid;
job.SpoolTypeGuid = Settings.SpoolTypeGuid != null ? Settings.SpoolTypeGuid : Adapter.SpoolTypes.FirstOrDefault().Guid;
- if (BuildProvider.IsEureka)
- {
- job.EnableInterSegment = false;
- job.InterSegmentLength = 0;
-
- if (BuildProvider.MachineType == MachineTypes.Eureka)
- {
- job.NumberOfSpools = 4;
- }
- job.NumberOfUnits = 1;
- }
-
foreach (var segment in segments)
{