Browse Source

更新版本

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

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

@ -250,12 +250,23 @@ 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)

Loading…
Cancel
Save