|
|
|
@ -380,7 +380,7 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> rejectITGRequest(String requestType, taskId, 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,
|
|
|
|
@ -396,7 +396,7 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> approveITGRequest(String requestType, taskId, 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,
|
|
|
|
@ -412,7 +412,7 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> delegateITGRequest(String requestType, taskId, 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,
|
|
|
|
@ -431,7 +431,7 @@ class WorkListApiClient {
|
|
|
|
|
|
|
|
|
|
|
|
// ANSWER = 'Services/COCWS.svc/REST/ITGAnswer';
|
|
|
|
// ANSWER = 'Services/COCWS.svc/REST/ITGAnswer';
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> answerITGRequest(String requestType, taskId, 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,
|
|
|
|
@ -447,6 +447,25 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> requestActionITGRequest(String requestType, taskId, itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
|
|
|
|
String url = "${ApiConsts.cocRest}Mohemm_ITG_GenerateQR_RequestAction";
|
|
|
|
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
|
|
|
|
"RequestType": requestType,
|
|
|
|
|
|
|
|
"TaskID": taskId,
|
|
|
|
|
|
|
|
"ItemIDStr":itemId,
|
|
|
|
|
|
|
|
"EmployeeNumber": employeeNumber,
|
|
|
|
|
|
|
|
"Comments": comments,
|
|
|
|
|
|
|
|
"RequestID": itemId,
|
|
|
|
|
|
|
|
"RequestActionId": 3,
|
|
|
|
|
|
|
|
"IsQRCodeGenerate": true,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
|
|
|
|
return await ApiClient().postJsonForObject((json) {
|
|
|
|
|
|
|
|
ItgFormsModel responseData = ItgFormsModel.fromJson(json);
|
|
|
|
|
|
|
|
return responseData.itgRequest;
|
|
|
|
|
|
|
|
}, url, postParams);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> grantITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
Future<ITGRequest?> grantITGRequest(String requestType, int taskId, int itemId, String employeeNumber, String newUserEMPId, String comments) async {
|
|
|
|
String url = "${ApiConsts.cocRest}ITGGrantAccess";
|
|
|
|
String url = "${ApiConsts.cocRest}ITGGrantAccess";
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
@ -465,7 +484,7 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<ITGRequest?> informationITGRequest(String requestType, taskId, 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,
|
|
|
|
@ -581,8 +600,6 @@ class WorkListApiClient {
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<GetFavoriteReplacements>?> getFavoriteReplacementWithoutImage() async {
|
|
|
|
Future<List<GetFavoriteReplacements>?> getFavoriteReplacementWithoutImage() async {
|
|
|
|
String url = "${ApiConsts.erpRest}Mohemm_GetFavoriteReplacementsWithoutImage";
|
|
|
|
String url = "${ApiConsts.erpRest}Mohemm_GetFavoriteReplacementsWithoutImage";
|
|
|
|
Map<String, dynamic> postParams = {};
|
|
|
|
Map<String, dynamic> postParams = {};
|
|
|
|
|