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...
点击下载文档
上一篇:常见link实体下一篇:审批页面的标题 显示视图对应的标题
本文2024-09-16 17:43:50发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-17584.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章