如何实现单据体(分录)过滤(标准+二开单据均适用)原创
金蝶云社区-陶静
陶静
12人赞赏了该文章 1151次浏览 未经作者许可,禁止转载编辑于2021年02月02日 09:39:26

1、登录Bos,找到并打开需要设置的单据

2、点击‘表单构建插件’

image.png

3、注册python脚本,将以下内容复制粘贴

#实现单据体首行过滤
#by wanghl 2015-11-6  
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);

image.png

4、确定后退出保存即可

5、效果预览

image.png

赞 12