yibo 7 years ago
parent
commit
9edaa19bf5
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      B3ClientService.Web/Pages/B3ClientService/Reports/CarcassStoreAnalyse_/CarcassStoreAnalyse.cs
  2. +1
    -0
      B3ClientService.Web/Utils/B3ClientServiceChoiceBoxDataProvider.cs

+ 2
- 2
B3ClientService.Web/Pages/B3ClientService/Reports/CarcassStoreAnalyse_/CarcassStoreAnalyse.cs View File

@ -117,8 +117,8 @@ namespace BWP.Web.Pages.B3ClientService.Reports.CarcassStoreAnalyse_
query.GroupBy.Expressions.Add(DQExpression.Field(batch, "Name"));
query.GroupBy.Expressions.Add(DQExpression.Field("ProductBatch_ID"));
query.Where.Conditions.Add(DQCondition.And(DQCondition.IsNotNull(DQExpression.Field("ProductBatch_ID")), DQCondition.IsNull(DQExpression.Field("PickTime"))));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ProductBatch_ID"));
query.Range = SelectRange.Top(10);
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ProductBatch_ID", true));
query.Range = SelectRange.Top(3);
return query.EExecuteList<string, long>();
}


+ 1
- 0
B3ClientService.Web/Utils/B3ClientServiceChoiceBoxDataProvider.cs View File

@ -19,6 +19,7 @@ namespace BWP.Web.Utils
ChoiceBoxSettings.Register(B3ClientServiceConsts.DataSources., (argu) =>
new ChoiceBoxQueryHelper<ProductBatch>(argu, true)
{
TopNum = 3,
BeforeQuery = query => query.OrderBy.Expressions.Add(DQOrderByExpression.Create("Date", true))
}.GetData());


Loading…
Cancel
Save