执行计划插件中是不可以调用客户端给的调用webApi的程序吗,问什么调用在数据库中查不到数据
// 使用webapi引用组件Kingdee.BOS.WebApi.Client.dll
K3CloudApiClient client = new K3CloudApiClient("http://desktop-5mpd8vo/K3Cloud/");
var ret = client.ValidateUser("5a1cca8d68c353","Administrator","888888",2052);
var result = JObject.Parse(ret)["LoginResultType"].Value
// 登陆成功
if (result == 1)
{
client.Save("BD_Department","{\"Creator\":\"\",\"NeedUpDateFields\":[],\"NeedReturnFields\":[],\"IsDeleteEntry\":\"True\",\"SubSystemId\":\"\",\"IsVerifyBaseDataField\":\"false\",\"IsEntryBatchFill\":\"True\",\"Model\":{\"FDEPTID\":\"0\",\"FCreateOrgId\":{\"FNumber\":\"\"},\"FNumber\":\"\",\"FUseOrgId\":{\"FNumber\":\"\"},\"FName\":\"\",\"FHelpCode\":\"\",\"FParentID\":{\"FNumber\":\"\"},\"FFullName\":\"\",\"FEffectDate\":\"1900-01-01\",\"FLapseDate\":\"1900-01-01\",\"FDeptProperty\":{\"FNumber\":\"\"},\"FDescription\":\"\",\"FGroup\":{\"FNumber\":\"\"},\"FIsCopyFlush\":\"false\",\"FSHRMapEntity\":{}}}");
}
推荐阅读