屠宰场管理服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
968 B

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();
});
}
}
}