using BWP.B3ClientService;
|
|
using BWP.B3ClientService.BO;
|
|
using BWP.B3Frameworks.Utils;
|
|
using Forks.EnterpriseServices.DomainObjects2;
|
|
using Forks.EnterpriseServices.DomainObjects2.DQuery;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using TSingSoft.WebControls2;
|
|
using TSingSoft.WebPluginFramework;
|
|
|
|
namespace BWP.Web.Utils
|
|
{
|
|
public static class B3ClientServiceChoiceBoxDataProvider
|
|
{
|
|
public static void Register()
|
|
{
|
|
ChoiceBoxSettings.Register(B3ClientServiceConsts.DataSources.生产批次, (argu) =>
|
|
new ChoiceBoxQueryHelper<ProductBatch>(argu, true)
|
|
{
|
|
TopNum = 3,
|
|
BeforeQuery = query => query.OrderBy.Expressions.Add(DQOrderByExpression.Create("Date", true))
|
|
}.GetData());
|
|
|
|
ChoiceBoxSettings.Register(B3ClientServiceConsts.DataSources.存货, (argu) =>
|
|
{
|
|
return new ChoiceBoxQueryHelper<Goods>(argu, true).GetData();
|
|
});
|
|
}
|
|
}
|
|
}
|