using BWP.B3Frameworks.Utils;
|
|
using BWP.B3SubstituteKill.BO;
|
|
using BWP.B3SubstituteKill.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using TSingSoft.WebControls2;
|
|
|
|
namespace BWP.Web.Utils
|
|
{
|
|
public static class B3SubstituteDataProvider
|
|
{
|
|
internal static void Register()
|
|
{
|
|
ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰费用, (argu) =>
|
|
{
|
|
return new DomainChoiceBoxQueryHelper<GenerationCostItem>(argu)
|
|
{
|
|
AddOrganizationLimit = true,
|
|
OnlyAvailable = true
|
|
}.GetData();
|
|
});
|
|
|
|
ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰费用全部, (argu) =>
|
|
{
|
|
return new DomainChoiceBoxQueryHelper<GenerationCostItem>(argu)
|
|
{
|
|
AddOrganizationLimit = true,
|
|
OnlyAvailable = false
|
|
}.GetData();
|
|
});
|
|
|
|
ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰生产线, (argu) =>
|
|
{
|
|
return new DomainChoiceBoxQueryHelper<SubKillProductLine>(argu)
|
|
{
|
|
AddOrganizationLimit = true,
|
|
OnlyAvailable = true
|
|
}.GetData();
|
|
});
|
|
|
|
ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰生产线全部, (argu) =>
|
|
{
|
|
return new DomainChoiceBoxQueryHelper<SubKillProductLine>(argu)
|
|
{
|
|
AddOrganizationLimit = true,
|
|
OnlyAvailable = false
|
|
}.GetData();
|
|
});
|
|
|
|
ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰回收, (argu) =>
|
|
{
|
|
return new DomainChoiceBoxQueryHelper<SubKillCallBack>(argu)
|
|
{
|
|
AddOrganizationLimit = true,
|
|
OnlyAvailable = true
|
|
}.GetData();
|
|
});
|
|
|
|
ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰回收全部, (argu) =>
|
|
{
|
|
return new DomainChoiceBoxQueryHelper<SubKillCallBack>(argu)
|
|
{
|
|
AddOrganizationLimit = true,
|
|
OnlyAvailable = false
|
|
}.GetData();
|
|
});
|
|
}
|
|
}
|
|
}
|