From 96734066c3aa895ff5ab02268b93f04a962308a2 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 7 Jan 2025 15:56:03 +0200 Subject: Bug fix. --- .../Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/JobModel.cs | 8 ++++++-- .../PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/PPC/Modules') 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 35569d74f..ca24f4bcf 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 @@ -24,6 +24,9 @@ namespace Tango.PPC.Jobs.Models public int ID { get; set; } + [JsonIgnore] + public Job Job { get; set; } + protected String _name; public String Name @@ -805,13 +808,14 @@ namespace Tango.PPC.Jobs.Models /// /// The length. /// - public static SegmentModel CreateInterSegment(double length) + public SegmentModel CreateInterSegment(double length) { SegmentModel segment = new SegmentModel() { IsInterSegment = true, Length = length, - Name = "Inter Segment" + Name = "Inter Segment", + Job = this, }; segment.BrushStops.Add(new BrushStopModel(segment) { diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs index 499d2c08c..ee3cece33 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs @@ -625,6 +625,7 @@ namespace Tango.PPC.Jobs.ViewModels NumberOfUnits = Job.NumberOfUnits, IsAllSegmentsPerSpool = Job.IsAllSegmentsPerSpool, Rml = Job.Rml, + Job = Job, ColorSpace = Job.ColorSpace, SpoolType = Job.SpoolType, SpoolTypeName = PPCSpoolType.Name, -- cgit v1.3.1