|
|
@@ -379,13 +379,13 @@ internal class JobSummaryGrid : DynamicDataGrid<JobMaterial>, IMasterDetailContr
|
|
|
|
|
|
private void ShowDetailGrid<TEntity>(
|
|
|
String columnname,
|
|
|
- Expression<Func<TEntity, object?>> productcol,
|
|
|
+ Expression<Func<TEntity, Guid>> productcol,
|
|
|
Guid productid,
|
|
|
- Expression<Func<TEntity, object?>> stylecol,
|
|
|
+ Expression<Func<TEntity, Guid>> stylecol,
|
|
|
Guid? styleid,
|
|
|
Expression<Func<TEntity, IDimensions>> dimcol,
|
|
|
IDimensions? dimensions,
|
|
|
- Expression<Func<TEntity, object?>>? jobcol,
|
|
|
+ Expression<Func<TEntity, Guid>>? jobcol,
|
|
|
Filter<TEntity>? extrafilter,
|
|
|
Func<CoreRow, bool>? rowfilter
|
|
|
)
|
|
|
@@ -405,9 +405,9 @@ internal class JobSummaryGrid : DynamicDataGrid<JobMaterial>, IMasterDetailContr
|
|
|
});
|
|
|
grid.OnDefineFilter += t =>
|
|
|
{
|
|
|
- var filter = new Filter<TEntity>(productcol).IsEqualTo(productid);
|
|
|
+ var filter = Filter<TEntity>.Where(productcol).IsEqualTo(productid);
|
|
|
if(dimensions is not null)
|
|
|
- filter = filter.And(CoreUtils.GetFullPropertyName(dimcol, ".")).DimensionEquals(dimensions);
|
|
|
+ filter = filter.And<IDimensions>(CoreUtils.GetFullPropertyName(dimcol, ".")).DimensionEquals(dimensions);
|
|
|
if (styleid.HasValue)
|
|
|
filter = filter.And(stylecol).IsEqualTo(styleid);
|
|
|
|
|
|
@@ -774,7 +774,7 @@ internal class JobSummaryGrid : DynamicDataGrid<JobMaterial>, IMasterDetailContr
|
|
|
var results = Client.QueryMultiple(
|
|
|
new KeyedQueryDef<StockHolding>(
|
|
|
new Filter<StockHolding>(x => x.Product.ID).InList(pids)
|
|
|
- .And(x => x.Units).IsNotEqualTo(0.0F)
|
|
|
+ .And(x => x.Units).IsNotEqualTo(0.0)
|
|
|
.And(new Filter<StockHolding>(x => x.Job.ID).IsEqualTo(Guid.Empty).Or(x => x.Job.ID).IsNotEqualTo(jobID))
|
|
|
.And(ReservesFilter<StockHolding>(x => x.Job)),
|
|
|
Columns.None<StockHolding>().Add(x => x.Product.ID)
|