如何实现单据体(分录)过滤(标准+二开单据均适用)原创
12人赞赏了该文章
1151次浏览
编辑于2021年02月02日 09:39:26
1、登录Bos,找到并打开需要设置的单据
2、点击‘表单构建插件’
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);
4、确定后退出保存即可
5、效果预览
推荐阅读