场景
某些特殊场景,我们需要选择已经禁用的物料等基础资料。
注册以下单据插件即可实现。参考下图调整缩进
import clr
clr.AddReference('System')
clr.AddReference('System.Data')
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import *
from Kingdee.BOS.Core import *
from Kingdee.BOS.Core.Bill import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from System import *
def BeforeSetItemValueByNumber(e):
key = str(e.BaseDataFieldKey.ToUpper());
if (key == "F_GOLD_MATERIALID"):
e.IsShowUsed = False;
e.IsShowApproved = False;
def BeforeF7Select(e):
key = str(e.FieldKey.ToUpper());
if (key == "F_GOLD_MATERIALID"):
e.IsShowUsed = False;
e.IsShowApproved = False;
clr.AddReference('System')
clr.AddReference('System.Data')
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import *
from Kingdee.BOS.Core import *
from Kingdee.BOS.Core.Bill import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from System import *
def BeforeSetItemValueByNumber(e):
key = str(e.BaseDataFieldKey.ToUpper());
if (key == "F_GOLD_MATERIALID"):
e.IsShowUsed = False;
e.IsShowApproved = False;
def BeforeF7Select(e):
key = str(e.FieldKey.ToUpper());
if (key == "F_GOLD_MATERIALID"):
e.IsShowUsed = False;
e.IsShowApproved = False;
暂无评论