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") clr.AddReference("Kingdee.BOS.Contracts") from Kingdee.BOS import * from Kingdee.BOS.App.Data import * from Kingdee.BOS.JSON import * from Kingdee.BOS.Core import * from Kingdee.BOS.Core.Const import * from Kingdee.BOS.Core.Bill import * from Kingdee.BOS.Core.List import * from Kingdee.BOS.Log import * from System import * from System.Collections.Generic import * from System.Linq import * def EntityRowDoubleClick(e): fldKey=e.ColKey.ToUpperInvariant(); if fldKey=="F_XVKJ_MUNO": bilno =str(this.Model.GetValue("F_XVKJ_muno",e.Row)) showParam = BillShowParameter() #根据单据编号获取单据内码 sql="SELECT FID FROM T_SAL_QUOTATION with(nolock) WHERE FBILLNO='"+bilno+"'" bilid=str(DBUtils.ExecuteScalar(this.Context,sql,None)) #this.View.ShowMessage(bilid) showParam.PKey=bilid showParam.OpenStyle.ShowType = ShowType.MainNewTabPage showParam.PageId = Guid.NewGuid().ToString() showParam.FormId = "SAL_QUOTATION" showParam.Status = OperationStatus.EDIT this.View.ShowForm(showParam)
python插件记录,自用
字段存储了另一单据类型的单据编号,实现双击打开指定单据import clrclr.AddReference("System")clr.AddReference("System.Core")clr.AddRe...
点击下载文档
上一篇:分享一个超级好用的【python插件开发】案例下一篇:即时库存查询
本文2024-09-16 17:43:44发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-17576.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章