|
@ -250,14 +250,25 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
input.Sorting= input.Sorting.ToUpper().Replace("BillTime".ToUpper(), "ReceiveTime".ToUpper()) |
|
|
input.Sorting= input.Sorting.ToUpper().Replace("BillTime".ToUpper(), "ReceiveTime".ToUpper()) |
|
|
.Replace("Qty".ToUpper(), "SumQty".ToUpper()); |
|
|
.Replace("Qty".ToUpper(), "SumQty".ToUpper()); |
|
|
} |
|
|
} |
|
|
//var filterConditions = input.Filters.Where(p => p.Column == "SumQty");
|
|
|
var filterConditions = input.Filters.Where(p => p.Column == "qty").ToArray(); |
|
|
//foreach (var itm in filterConditions)
|
|
|
foreach (var itm in filterConditions) |
|
|
//{
|
|
|
{ |
|
|
// if(itm)
|
|
|
if (itm.Action == EnumFilterAction.BiggerThanOrEqual) |
|
|
// input.Filters.Add(new FilterCondition() { });
|
|
|
{ |
|
|
//}
|
|
|
input.Filters.Add(new FilterCondition() { Action= EnumFilterAction.BiggerThanOrEqual, Column="SumQty", Logic=EnumFilterLogic.And, Value=itm.Value }); |
|
|
|
|
|
} |
|
|
|
|
|
if (itm.Action == EnumFilterAction.SmallThanOrEqual) |
|
|
|
|
|
{ |
|
|
|
|
|
input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.SmallThanOrEqual, Column = "SumQty", Logic = EnumFilterLogic.And, Value = itm.Value }); |
|
|
|
|
|
} |
|
|
|
|
|
input.Filters.Remove(itm); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var first = input.Filters.FirstOrDefault(p => p.Column == "BillTime"); |
|
|
var first = input.Filters.FirstOrDefault(p => p.Column == "BillTime"); |
|
|
if (first != null) |
|
|
if (first != null) |
|
|
{ |
|
|
{ |
|
|
input.Filters.Remove(first); |
|
|
input.Filters.Remove(first); |
|
|