From 4cd4807ca5a7490c8d7edac496a19d618bf9197e Mon Sep 17 00:00:00 2001 From: Roy Date: Sat, 19 Nov 2022 14:43:46 +0200 Subject: Statistics Fine Tuning Adaptation. --- .../PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs index f699f4a7e..a275d95bb 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Statistics/DefaultStatisticsService.cs @@ -117,6 +117,12 @@ namespace Tango.PPC.Common.Statistics db_JobRuns = db_JobRuns.Where(x => jobRunStatusArr.Contains(x.Status)); } + int[] jobDesignationArr = filters.JobDesignation.Distinct().ToArray(); + if (jobDesignationArr.Length > 0) + { + db_JobRuns = db_JobRuns.Where(x => jobDesignationArr.Contains(x.JobDesignation)); + } + if (!filters.IncludeHeadCleaning) { db_JobRuns = db_JobRuns.Where(x => !x.IsHeadCleaning); @@ -205,7 +211,7 @@ namespace Tango.PPC.Common.Statistics break; case ColorSpaces.LAB: pbs.L = stop.L; - pbs.A = stop.B; + pbs.A = stop.A; pbs.B = stop.B; break; case ColorSpaces.Volume: -- cgit v1.3.1