python列表打开动态表单并传递参数到表单页面
import clr clr.AddReference("System") clr.AddReference("System.Core") clr.AddReference("Kingdee.BOS") clr.AddReference("Kingdee.BOS.App") clr.AddReference("Kingdee.BOS.Core") clr.AddReference("Kingdee.BOS.DataEntity") #引入命名空间 from Kingdee.BOS.Core import* from Kingdee.BOS.Core.Metadata import * from Kingdee.BOS.Core.DynamicForm import * from Kingdee.BOS.Core.DynamicForm.PlugIn import * from Kingdee.BOS.Core.DynamicForm.PlugIn.Args import * from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import * from Kingdee.BOS.Orm.DataEntity import * from Kingdee.BOS.Util import * from System import * from System.ComponentModel import * from System.Linq import * def BarItemClick(e): if e.BarItemKey.Equals("tbButton"): fids = '0' if this.ListView.SelectedRowsInfo == None or this.ListView.SelectedRowsInfo.Count == 0: this.View.ShowMessage("没有选择任何数据,请先选择!"); return rows = this.ListView.SelectedRowsInfo ; # 获取选中行 for i in range(len(rows )): fids ="{0}{1}{2}".format(fids,',',a[i].PrimaryKeyValue); dynamicFormShowParameter = DynamicFormShowParameter(); dynamicFormShowParameter.FormId = "FORMID"; dynamicFormShowParameter.OpenStyle.ShowType = ShowType.MainNewTabPage; dynamicFormShowParameter.CustomComplexParams.Add("FIDS", fids); this.View.ShowForm(dynamicFormShowParameter,lambda x: SetModel(x)); return; def SetModel(results): if results is None or results.ReturnData is None: return; allbill = results.ReturnData.ToString(); this.View.ShowMessage(allbill); return;
python列表打开动态表单并传递参数到表单页面
import clrclr.AddReference("System")clr.AddReference("System.Core")clr.AddReference("Kingdee.BOS")clr.AddReference("Kingdee.BOS.Ap...
点击下载文档
上一篇:星空|数据字典|数据模型下一篇:当单据类型改变时,某个必录字段改为不必录
本文2024-09-16 18:27:20发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-22254.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章