先在bos打开采购申请单,取消勾选计划确认字段默认值
审核操作注册插件:
import clr
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.Base import *
from Kingdee.BOS.App.Data import *
from Kingdee.BOS.Log import *
def OnPreparePropertys(e):
e.FieldKeys.Add("FPlanConfirm");
def BeforeExecuteOperationTransaction(e):
if e.SelectedRows != None:
for billItem in e.SelectedRows:
billItemEntrys=billItem["ReqEntry"];
for entryItem in billItemEntrys:
entryItem["PlanConfirm"]=True
3. 配置审核时刷新计划确认字段
4.参考第2步,在反审核操作也配置插件
import clr
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.Base import *
from Kingdee.BOS.App.Data import *
from Kingdee.BOS.Log import *
def OnPreparePropertys(e):
e.FieldKeys.Add("FPlanConfirm");
def BeforeExecuteOperationTransaction(e):
if e.SelectedRows != None:
for billItem in e.SelectedRows:
billItemEntrys=billItem["ReqEntry"];
for entryItem in billItemEntrys:
entryItem["PlanConfirm"]=False
5.参考第3步,在反审核操作也配置刷新计划确认字段
作者:执理
来源:金蝶云社区
原文链接:https://vip.kingdee.com/article/378579521177166592?productLineId=1&lang=zh-CN
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/6361.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~