generate QR Api email parameter added.

mohemm_HMG_flutter_upgrade
Sikander Saleem 1 year ago
parent 030887452d
commit 550992ccf4

@ -447,7 +447,7 @@ class WorkListApiClient {
}, url, postParams);
}
Future<ITGRequest?> requestActionITGRequest(String requestType, taskId, itemId, String employeeNumber, String newUserEMPId, String comments) async {
Future<ITGRequest?> requestActionITGRequest(String requestType, taskId, itemId, String employeeNumber, String newUserEMPId, String comments, String email) async {
String url = "${ApiConsts.cocRest}Mohemm_ITG_GenerateQR_RequestAction";
Map<String, dynamic> postParams = {
"RequestType": requestType,
@ -455,6 +455,7 @@ class WorkListApiClient {
"ItemIDStr": itemId,
"EmployeeNumber": employeeNumber,
"Comments": comments,
"EmailAddress": email,
"RequestID": itemId,
"RequestActionId": 3,
"IsQRCodeGenerate": true,

@ -512,7 +512,8 @@ class _ItgDetailScreenState extends State<ItgDetailScreen> {
void performGenerateQrAction(String requestType, taskId, itemId, String employeeNumber, String comments) async {
try {
Utils.showLoading(context);
ITGRequest? itgRequest = await WorkListApiClient().requestActionITGRequest(requestType, taskId, itemId, employeeNumber, "", comments);
ITGRequest? itgRequest =
await WorkListApiClient().requestActionITGRequest(requestType, taskId, itemId, employeeNumber, "", comments, AppState().memberInformationList?.eMPLOYEEEMAILADDRESS ?? "");
Utils.hideLoading(context);
Utils.showToast(LocaleKeys.yourChangeHasBeenSavedSuccessfully.tr());
// Navigator.pop(context, "delegate_reload");

Loading…
Cancel
Save