修改物料属性时怎么移除生产页签仓库随库存页签变动的逻辑

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-23浏览:1

修改物料属性时怎么移除生产页签仓库随库存页签变动的逻辑

移除实体服务规则代码注册到表单插件即可

from Kingdee.BOS.Core.DependencyRules import *


def OnInitialize(e):

    removeRule = None

    if this.View.RuleContainer.Rules is not None:

        for rule in this.View.RuleContainer.Rules:

            if rule.DependencyFields is not None and len(rule.DependencyFields)==1 and rule.DependencyFields[0].Field.Key=='FStockId' and rule.Seq==0:

                removeRule = rule

                break;

        

        if removeRule is not None:

            this.View.RuleContainer.Rules.Remove(removeRule)



修改物料属性时怎么移除生产页签仓库随库存页签变动的逻辑

移除实体服务规则代码注册到表单插件即可from Kingdee.BOS.Core.DependencyRules import *def OnInitialize(e): removeRule = N...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息