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.
delete(String formId, List<String> numbers) Future<ResponseStatus>
Delete some bills by billNos.
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.
push(List<String> numbers, String formId, String targetFormId) Future<Map<String, dynamic>>
One bill or many bills to one bill push.
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}) Future<ResponseStatus>
Directly save json data.
saveJson(String formId, Map<String, dynamic> json, {bool isDeleteEntry = true, bool isAutoSubmitAndAudit = false}) Future<ResponseStatus>
Directly save json data.
simpleWorkflowAudit(String formId, List<String> numbers, int userId, ApprovalType approval) Future<ResponseStatus>
Simple workfow audit.
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.
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.