修复对应组织

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

修复对应组织

import clr
clr.AddReference('System')
clr.AddReference('System.Data')
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
clr.AddReference('Kingdee.BOS.ServiceHelper')
clr.AddReference('Newtonsoft.Json')

from Kingdee.BOS import *
from Kingdee.BOS.Core import *
from Kingdee.BOS.Core.Bill import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import *
from System import *
from System.Data import *
from System.Net import *
from System.Text import *
from System.IO import *
from Kingdee.BOS.Core.Bill.PlugIn import *
from Kingdee.BOS.App.Data import *
from System.Collections.Generic import List
from Kingdee.BOS.ServiceHelper import *

def BarItemClick(e):
    if e.BarItemKey=='u_fix' and this.Context.UserName=='yyy':
        billObj=this.View.Model.DataObject;
        fid=str(billObj["id"]);
        supplierObj=billObj["SupplierId"];
        supNum=("{0}").format(supplierObj["Number"]);
        if(str(supNum) != '8888'):
            return;
        sql="update t_PUR_POOrder set FCorrespondOrgId=100080 where  fid="+fid;
        DBUtils.ExecuteScalar(this.Context,sql,None);
        this.View.InvokeFormOperation("Refresh");

修复对应组织

import clrclr.AddReference('System')clr.AddReference('System.Data')clr.AddReference('Kingdee.BOS')clr.AddReference('Kingdee.BOS.Co...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息