Ver código fonte

Added an all filter for the jobs

Kenric Nugteren 2 anos atrás
pai
commit
9e0ac62d2c

+ 4 - 5
prs.desktop/Panels/StockSummary/StockSummaryGrid.cs

@@ -1,15 +1,11 @@
 using System;
 using System;
-using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
 using System.Reflection;
 using System.Reflection;
-using System.Windows;
 using Comal.Classes;
 using Comal.Classes;
 using InABox.Clients;
 using InABox.Clients;
 using InABox.Core;
 using InABox.Core;
 using InABox.DynamicGrid;
 using InABox.DynamicGrid;
-using PRSDesktop.WidgetGroups;
 using Syncfusion.Data.Extensions;
 using Syncfusion.Data.Extensions;
-using static org.sqlite.Function;
 
 
 namespace PRSDesktop
 namespace PRSDesktop
 {
 {
@@ -73,7 +69,6 @@ namespace PRSDesktop
 
 
             var links = aggregate.Links;
             var links = aggregate.Links;
 
 
-
             foreach (var (pLeft, pStockSummary) in aggregate.Links)
             foreach (var (pLeft, pStockSummary) in aggregate.Links)
             {
             {
                 if(string.Equals(pStockSummary, CoreUtils.GetFullPropertyName<StockSummary, Guid>(x => x.Job.ID, ".")))
                 if(string.Equals(pStockSummary, CoreUtils.GetFullPropertyName<StockSummary, Guid>(x => x.Job.ID, ".")))
@@ -87,6 +82,10 @@ namespace PRSDesktop
                     {
                     {
                         jobFilter.InList(JobIDs);
                         jobFilter.InList(JobIDs);
                     }
                     }
+                    else
+                    {
+                        jobFilter.All();
+                    }
                 }
                 }
                 else if (string.Equals(pStockSummary, CoreUtils.GetFullPropertyName<StockSummary, Guid>(x => x.Style.ID, ".")))
                 else if (string.Equals(pStockSummary, CoreUtils.GetFullPropertyName<StockSummary, Guid>(x => x.Style.ID, ".")))
                 {
                 {