修复对应组织
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");
修复对应组织
本文2024-09-16 18:27:32发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-22277.html