python插件记录,自用

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

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...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息