using System;
using System.Collections.Generic;
namespace Kingdee.BOS.WebApi.Client
{
public class K3CloudApiClient : ApiClient
{
public K3CloudApiClient()
{
}
public K3CloudApiClient(string serverUrl) : base(serverUrl)
{
}
public K3CloudApiClient(string serverUrl, int timeout) : base(serverUrl, timeout)
{
}
public List<DataCenter> GetDataCenters()
{
return base.Execute<List<DataCenter>>("Kingdee.BOS.ServiceFacade.ServicesStub.Account.AccountService.GetDataCenterList", new object[0]);
}
public string ExcuteOperation(string formid, string opNumber, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation", new object[]
{
formid,
opNumber,
data
});
}
public string Save(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save", new object[]
{
formid,
data
});
}
public string BatchSave(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.BatchSave", new object[]
{
formid,
data
});
}
public string GetSysReportData(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GetSysReportData", new object[]
{
formid,
data
});
}
public string Audit(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Audit", new object[]
{
formid,
data
});
}
public string WorkflowAudit(string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.WorkflowAudit", new object[]
{
data
});
}
public string Delete(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Delete", new object[]
{
formid,
data
});
}
public string UnAudit(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.UnAudit", new object[]
{
formid,
data
});
}
public string Submit(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Submit", new object[]
{
formid,
data
});
}
public string CancelAssign(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.CancelAssign", new object[]
{
formid,
data
});
}
public string View(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.View", new object[]
{
formid,
data
});
}
public List<List<object>> ExecuteBillQuery(string data)
{
return base.Execute<List<List<object>>>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExecuteBillQuery", new object[]
{
data
});
}
public string Draft(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Draft", new object[]
{
formid,
data
});
}
public string Allocate(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Allocate", new object[]
{
formid,
data
});
}
public string CancelAllocate(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.CancelAllocate", new object[]
{
formid,
data
});
}
public string FlexSave(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.FlexSave", new object[]
{
formid,
data
});
}
public string SendMsg(string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.SendMsg", new object[]
{
data
});
}
public string Push(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Push", new object[]
{
formid,
data
});
}
public string GroupSave(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GroupSave", new object[]
{
formid,
data
});
}
public string Disassembly(string formid, string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Disassembly", new object[]
{
formid,
data
});
}
public string QueryBusinessInfo(string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.QueryBusinessInfo", new object[]
{
data
});
}
public string QueryGroupInfo(string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.QueryGroupInfo", new object[]
{
data
});
}
public string GroupDelete(string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GroupDelete", new object[]
{
data
});
}
public string SwitchOrg(string data)
{
return base.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.SwitchOrg", new object[]
{
data
});
}
public void GetDataCentersSync(Action<List<DataCenter>> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<List<DataCenter>>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GetDataCenterList", SuccResultHandler, new object[0], progressCallback, failcallback, 10, reportInterval);
}
public void ExcuteOperationSync(string formid, string opNumber, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation", SuccResultHandler, new object[]
{
formid,
opNumber,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void SaveSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void BatchSaveSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.BatchSave", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void AuditSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Audit", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void CancelAssignSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.CancelAssign", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void WorkflowAuditSync(string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.WorkflowAudit", SuccResultHandler, new object[]
{
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void DeleteSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Delete", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void UnAuditSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.UnAudit", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void SubmitSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Submit", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void ViewSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.View", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void ExecuteBillQuerySync(string data, Action<List<List<object>>> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<List<List<object>>>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExecuteBillQuery", SuccResultHandler, new object[]
{
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void DraftSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Draft", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void AllocateSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Allocate", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void FlexSaveSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.FlexSave", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void SendMsgSync(string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.SendMsg", SuccResultHandler, new object[]
{
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void PushSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Push", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void GroupSaveSync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GroupSave", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void DisassemblySync(string formId, string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Disassembly", SuccResultHandler, new object[]
{
formId,
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void QueryBusinessInfoSync(string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.QueryBusinessInfo", SuccResultHandler, new object[]
{
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void QueryGroupInfoSync(string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.QueryGroupInfo", SuccResultHandler, new object[]
{
data
}, progressCallback, failcallback, 10, reportInterval);
}
public void GroupDeleteSync(string data, Action<string> SuccResultHandler, FailCallbackHandler failcallback = null, ProgressChangedHandler progressCallback = null, int reportInterval = 5)
{
base.ExecuteAsync<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GroupDelete", SuccResultHandler, new object[]
{
data
}, progressCallback, failcallback, 10, reportInterval);
}
}
}