|
|
@ -348,12 +348,12 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> getITGFormDetails(String requestType, int taskId, int itemId, String employeeNumber) async {
|
|
|
|
Future<ITGRequest?> getITGFormDetails(String requestType, taskId, itemId, String employeeNumber) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGGetFormDetials";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGGetFormDetials";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
@ -363,12 +363,12 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> rejectITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String comments) async {
|
|
|
|
Future<ITGRequest?> rejectITGRequest(String requestType, taskId, itemId, String employeeNumber, String comments) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGRejectRequest";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGRejectRequest";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"Comments": comments,
|
|
|
|
"Comments": comments,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -379,12 +379,12 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> approveITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String comments) async {
|
|
|
|
Future<ITGRequest?> approveITGRequest(String requestType, taskId, itemId, String employeeNumber, String comments) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGApproveRequest";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGApproveRequest";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"Comments": comments,
|
|
|
|
"Comments": comments,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -395,12 +395,12 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> delegateITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
Future<ITGRequest?> delegateITGRequest(String requestType, taskId, itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGDelegateRequest";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGDelegateRequest";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"NewUserEMPId": newUserEMPId,
|
|
|
|
"NewUserEMPId": newUserEMPId,
|
|
|
|
"Comments": comments,
|
|
|
|
"Comments": comments,
|
|
|
@ -414,12 +414,12 @@ class WorkListApiClient {
|
|
|
|
|
|
|
|
|
|
|
|
// ANSWER = 'Services/COCWS.svc/REST/ITGAnswer';
|
|
|
|
// ANSWER = 'Services/COCWS.svc/REST/ITGAnswer';
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> answerITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
Future<ITGRequest?> answerITGRequest(String requestType, taskId, itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGAnswer";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGAnswer";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"Comments": comments,
|
|
|
|
"Comments": comments,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -435,7 +435,7 @@ class WorkListApiClient {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"Comments": "",
|
|
|
|
"Comments": "",
|
|
|
|
"AdditionalFields": null,
|
|
|
|
"AdditionalFields": null,
|
|
|
@ -448,12 +448,12 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> informationITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
Future<ITGRequest?> informationITGRequest(String requestType, taskId, itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGRequestInformation";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGRequestInformation";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"RequestType": requestType,
|
|
|
|
"RequestType": requestType,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"TaskID": taskId,
|
|
|
|
"ItemID": itemId,
|
|
|
|
"ItemIDStr": itemId,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
"NewUserEMPId": newUserEMPId,
|
|
|
|
"NewUserEMPId": newUserEMPId,
|
|
|
|
"Comments": comments,
|
|
|
|
"Comments": comments,
|
|
|
|