单据体首行显示过滤行,输入之后对单据体进行过滤。需要做个表单构建插件.设置showFilterRow属性,然后在BOS中挂上这表单构建插件
public class EntrustPermitWebFormBuilderPlugIn : AbstractDynamicWebFormBuilderPlugIn
{
public override void CreateControl(Core.DynamicForm.PlugIn.Args.CreateControlEventArgs e)
{
if (e.ControlAppearance.Key == "FPOOrderEntry") //单据体KEY
{
e.Control.Put("showFilterRow", true);
}
base.CreateControl(e);
}
}
或者注册Python:
#实现单据体首行过滤
clr.AddReference('System')
clr.AddReference('Kingdee.BOS.Core')
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.Metadata.EntityElement import *
from System import *
#方法覆写
def CreateControl(e):
if isinstance(e.ControlAppearance, EntryEntityAppearance):
e.Control.Put("showFilterRow", True);
推荐阅读