[python] 列表插件-点击获取行数据

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

[python] 列表插件-点击获取行数据

## 1、打开BOS,扩展采购订单单,增加列表菜单 ![image.webp](/download/010077c269bb78e04fc4921225a20edd968b.webp) ## 2、注册python插件 ![image.webp](/download/0100f10364c181304064ab38c590718418df.webp) ## 3、保存,查看效果 ![image.webp](/download/0100a2d6badc25484eaabc1b983064b5869f.webp) ## 4、代码 ```python import clr clr.AddReference("System") clr.AddReference("Kingdee.BOS") clr.AddReference("Kingdee.BOS.App") clr.AddReference("Kingdee.BOS.Core") clr.AddReference("Kingdee.BOS.Contracts") clr.AddReference("Newtonsoft.Json") clr.AddReference("Kingdee.BOS.ServiceHelper") from Kingdee.BOS.ServiceHelper import * from Newtonsoft.Json import * from Newtonsoft.Json.Linq import * from Kingdee.BOS import * from Kingdee.BOS.App.Data import* from Kingdee.BOS.Core import * from System import * from System.ComponentModel import * from System.Collections.Generic import * from System.Text import * from System.Text.RegularExpressions import * # 点击按钮:最先执行 def BarItemClick(e): if e.BarItemKey == "MMK_btn": SelectedRowsInfo = this.View.SelectedRowsInfo this.View.ShowMessage(JsonConvert.SerializeObject(SelectedRowsInfo)) ```

[python] 列表插件-点击获取行数据

## 1、打开BOS,扩展采购订单单,增加列表菜单![image.webp](/download/010077c269bb78e04fc4921225a20edd968b.webp)## 2、注册python插...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息