先在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://hqyman.cn/post/9352.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~