KdApi class

Some high-level api for simple requesting.

Constructors

KdApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

audit(String formId, List<String> numbers) Future<ResponseStatus>
Audit some bills by billNos.
auditById(String formId, List<int> ids) Future<ResponseStatus>
delete(String formId, List<String> numbers) Future<ResponseStatus>
Delete some bills by billNos.
deleteById(String formId, List<int> ids) Future<ResponseStatus>
getCurrentUser() UserContext?
Get the logined user information.
isLogin() bool
Check if the user has logined.
login(String domain, String acctID, String username, String password) Future<LoginInfo>
Use to login to get the user information.
metaQuery(String formId) Future<Map<String, dynamic>>
The bill's meta data' query.
operate(RequestParam param) Future<Map<String, dynamic>>
Base request method.
push(List<String> numbers, String formId, String targetFormId) Future<ResponseStatus>
One bill or many bills to one bill push.
pushByEntryId(List<int> entryIds, String formId, String targetFormId) Future<ResponseStatus>
One bill or many bills to one bill push.
pushById(List<int> ids, String formId, String targetFormId) Future<ResponseStatus>
One bill or many bills to one bill push.
pushByParam(PushParam param) Future<ResponseStatus>
query({required String formId, required List<String> fieldKeys, String filterString = "", String orderString = "", int pageIdex = 1, int pageSize = 20}) Future<Map<String, dynamic>>
This method is used to query data from Kingdee Cloud's forms.
save<T extends IModel>(String formId, T model, {bool isDeleteEntry = true, bool isAutoSubmitAndAudit = false, List<String>? needUpDateFields, List<String>? needReturnFields}) Future<ResponseStatus>
Directly save json data.
saveJson(String formId, Map<String, dynamic> json, {bool isDeleteEntry = true, bool isAutoSubmitAndAudit = false, List<String>? needUpDateFields, List<String>? needReturnFields}) Future<ResponseStatus>
Directly save json data.
simpleWorkflowAudit(String formId, List<String> numbers, int userId, ApprovalType approval) Future<ResponseStatus>
Simple workfow audit.
simpleWorkflowAuditById(String formId, List<int> ids, int userId, ApprovalType approval) Future<ResponseStatus>
submit(String formId, List<String> numbers) Future<ResponseStatus>
Submit some bills by billNos, and it can trigger the approval flow.
switchOrg(String orgNumber) Future<Map<String, dynamic>>
Switch the current user's orgnization.
unAudit(String formId, List<String> numbers) Future<ResponseStatus>
UnAudit some bills by billNos.
unAuditById(String formId, List<int> ids) Future<ResponseStatus>
view(String formId, String number) Future<Map<String, dynamic>>
This method is used to view all fields of one bill form or one basedata.
workflowAudit(String formId, List<String> numbers, int userId, String action) Future<ResponseStatus>
The workfow audit which customs the options of audited action.
workflowAuditById(String formId, List<int> ids, int userId, String action) Future<ResponseStatus>