python生成单据自定义绑定数据二维码
#引入clr运行库 import clr #添加对cloud插件开发的常用组件的引用 clr.AddReference('System') clr.AddReference('System.Data') clr.AddReference('Kingdee.BOS') clr.AddReference('Kingdee.BOS.DataEntity') clr.AddReference('Kingdee.BOS.Core') clr.AddReference('Kingdee.BOS.App') clr.AddReference('Kingdee.BOS.App.Core') clr.AddReference('Kingdee.BOS.ServiceHelper') #导入cloud基础库中的常用实体对象(分命名空间导入,不会递归导入) from Kingdee.BOS import * from Kingdee.BOS.Core import * from Kingdee.BOS.Core.DependencyRules import * from Kingdee.BOS.Core.Bill import * from Kingdee.BOS.Core.DynamicForm.PlugIn import * from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import * from System import * from System.Data import * from Kingdee.BOS.App.Data import * from System.Collections.Generic import List from Kingdee.BOS.ServiceHelper import * from Kingdee.BOS.Core.DynamicForm import * from Kingdee.BOS.Core.Metadata.EntityElement import * from Kingdee.BOS.Core.Metadata.FieldElement import * from Kingdee.BOS.Orm.DataEntity import * def AfterBindData(e): showQrcode(this.View.Model.GetValue("FBARCODE")); def DataChanged(e): fldKey=e.Field.Key.ToUpperInvariant(); if(fldKey=="FBARCODE"): showQrcode(e.NewValue); def showQrcode(e): qrCodeContent ="[Customer]"+str(e); qrCode = this.View.LayoutInfo.GetControlAppearance("F_BEC_Barcode_1xj"); qrCode.DataBound = qrCodeContent; this.View.UpdateView("F_BEC_Barcode_1xj");
方便说一下需求背景嘛
python生成单据自定义绑定数据二维码
#引入clr运行库import clr#添加对cloud插件开发的常用组件的引用clr.AddReference('System')clr.AddReference('System.Data')clr.AddRefere...
点击下载文档
本文2024-09-16 17:11:33发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-14122.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章