Browse Source

更新版本

master
zhaoxinyu 5 months ago
parent
commit
2aa6c82bef
  1. 25
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

25
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

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

Loading…
Cancel
Save