aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2023-05-24 14:35:03 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2023-05-24 14:35:03 +0300
commita8efe6694164ff1808be8f5e19501a7396608755 (patch)
treee2f10dd92ea6c2ee3687ca8dcc20d35a998393c5 /Software/Visual_Studio/Tango.BL
parentd7a0d5e8d6804f5f739c223c123b4b2780af4e11 (diff)
downloadTango-a8efe6694164ff1808be8f5e19501a7396608755.tar.gz
Tango-a8efe6694164ff1808be8f5e19501a7396608755.zip
PPC. Jobs List - added Thread column, changed Length with spools for Eureka.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL')
-rw-r--r--Software/Visual_Studio/Tango.BL/Builders/JobsCollectionBuilder.cs11
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/Job.cs9
2 files changed, 19 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Builders/JobsCollectionBuilder.cs b/Software/Visual_Studio/Tango.BL/Builders/JobsCollectionBuilder.cs
index c155e7020..a2c9c3678 100644
--- a/Software/Visual_Studio/Tango.BL/Builders/JobsCollectionBuilder.cs
+++ b/Software/Visual_Studio/Tango.BL/Builders/JobsCollectionBuilder.cs
@@ -63,5 +63,16 @@ namespace Tango.BL.Builders
}
});
}
+
+ public virtual JobsCollectionBuilder WithRmls()
+ {
+ return AddStep(4, () =>
+ {
+ foreach (var job in Entities.ToList())
+ {
+ Context.Rmls.Where(x => x.Guid == job.RmlGuid).ToList();
+ }
+ });
+ }
}
}
diff --git a/Software/Visual_Studio/Tango.BL/Entities/Job.cs b/Software/Visual_Studio/Tango.BL/Entities/Job.cs
index 2784dea32..29f7e1054 100644
--- a/Software/Visual_Studio/Tango.BL/Entities/Job.cs
+++ b/Software/Visual_Studio/Tango.BL/Entities/Job.cs
@@ -406,7 +406,13 @@ namespace Tango.BL.Entities
[NotMapped]
[JsonIgnore]
public double GramPerLength { get; set;}
-
+
+ [NotMapped]
+ [JsonIgnore]
+ public String ThreadName
+ {
+ get { return Rml == null ? "" : Rml.DisplayName;}
+ }
#endregion
@@ -480,6 +486,7 @@ namespace Tango.BL.Entities
}
else
GramPerLength = 0;
+ RaisePropertyChanged(nameof(ThreadName));
}
#endregion