业务场景:销售订单中打开客户列表后只能选择限定的客户
//F7,函数
public override void BeforeF7Select(BOS.Core.DynamicForm.PlugIn.Args.BeforeF7SelectEventArgs e)
{
base.BeforeF7Select(e);
}
//如果等于客户
if(e.FieldKey.Equals("FCustId"))
{
}
//过滤条件,限定,只能选择某些客户
e.ListFilterParameter.Filter = "FNumber ='003'";
效果展示:重新打开销售订单,选择客户,只能选择003的客户