aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules
diff options
context:
space:
mode:
authorRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-12 17:39:45 +0300
committerRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-12 17:39:45 +0300
commit7eb361c1201381c6ad88efa0ebed2c6595b45d13 (patch)
tree005c5e210d9352d3b26cbb8ab1f80139279b1898 /Software/Visual_Studio/PPC/Modules
parent8e15f292e2950cac71282923adc357f2abf8b306 (diff)
downloadTango-7eb361c1201381c6ad88efa0ebed2c6595b45d13.tar.gz
Tango-7eb361c1201381c6ad88efa0ebed2c6595b45d13.zip
Fixed FSE Gateway service with production slot cookie.
Implemented FSE dynamic csv job upload. extra inks. Implemented PPC dynamic csv job read. extra inks.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/JobModel.cs4
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobsViewVM.cs14
2 files changed, 4 insertions, 14 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/JobModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/JobModel.cs
index 283c051e8..1b5562a59 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/JobModel.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/JobModel.cs
@@ -394,12 +394,12 @@ namespace Tango.PPC.Jobs.Models
[JsonIgnore]
public int NumberSpools
{
- get { return _numberSpools; }
+ get { return Math.Max(_numberSpools, 1); }
set
{
if (_numberSpools != value)
{
- _numberSpools = value;
+ _numberSpools = Math.Max(value, 1);
RaisePropertyChangedAuto();
OnNumberOfSpoolsChanged();
OnUpdateLengthhWeight();
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)
{