diff --git a/lib/api/dashboard_api_client.dart b/lib/api/dashboard_api_client.dart index 76b10ce..dfa4801 100644 --- a/lib/api/dashboard_api_client.dart +++ b/lib/api/dashboard_api_client.dart @@ -12,6 +12,7 @@ import 'package:mohem_flutter_app/models/dashboard/list_menu.dart'; import 'package:mohem_flutter_app/models/generic_response_model.dart'; import 'package:mohem_flutter_app/models/itg/itg_main_response.dart'; import 'package:mohem_flutter_app/models/itg/itg_response_model.dart'; +import 'package:platform_device_id/platform_device_id.dart'; import 'package:uuid/uuid.dart'; class DashboardApiClient { @@ -111,8 +112,8 @@ class DashboardApiClient { // Generate a v4 (random) id Map postParams = { - // "UID": await PlatformDeviceId.getDeviceId, //uuid.v4(), //Mobile Id - "UID": uuid.v4(), //Mobile Id + "UID": await PlatformDeviceId.getDeviceId, //uuid.v4(), //Mobile Id + // "UID": uuid.v4(), //Mobile Id "Latitude": lat, "Longitude": long, "QRValue": QRValue, diff --git a/lib/ui/work_list/sheets/selected_item_sheet.dart b/lib/ui/work_list/sheets/selected_item_sheet.dart index 3953ccb..424aa4c 100644 --- a/lib/ui/work_list/sheets/selected_item_sheet.dart +++ b/lib/ui/work_list/sheets/selected_item_sheet.dart @@ -134,7 +134,7 @@ class SelectedItemSheet extends StatelessWidget { void askForConfirmation(BuildContext context, {String? email, String? userId}) { NotificationGetRespondAttributesList? notificationNoteInput; NotificationGetRespondAttributesList? forwardToUser; - List filtered = getNotificationRespondAttributes.where((element) => element.attributeName == "NOTE").toList(); + List filtered = getNotificationRespondAttributes.where((element) => element.attributeName == "NOTE" || element.attributeName == "WF_NOTE").toList(); if (filtered.isNotEmpty) { notificationNoteInput = filtered.first; } @@ -148,7 +148,7 @@ class SelectedItemSheet extends StatelessWidget { context: context, builder: (cxt) => AcceptRejectInputDialog( message: title != null ? null : LocaleKeys.requestedItems.tr(), - title: title, + // title: title, notificationGetRespond: notificationNoteInput, actionMode: apiMode, onTap: (note) { diff --git a/lib/ui/work_list/worklist_detail_screen.dart b/lib/ui/work_list/worklist_detail_screen.dart index feadb6d..1558063 100644 --- a/lib/ui/work_list/worklist_detail_screen.dart +++ b/lib/ui/work_list/worklist_detail_screen.dart @@ -569,6 +569,7 @@ class _WorkListDetailScreenState extends State { actionHistoryList: actionHistoryList.last, notificationID: workListData!.nOTIFICATIONID, isITGRequest: false, + getNotificationRespondAttributes: getNotificationRespondAttributes, )); setState(() {}); } catch (ex) { diff --git a/lib/widgets/mark_attendance_widget.dart b/lib/widgets/mark_attendance_widget.dart index 2ffa961..8a52a78 100644 --- a/lib/widgets/mark_attendance_widget.dart +++ b/lib/widgets/mark_attendance_widget.dart @@ -234,11 +234,10 @@ class _MarkAttendanceWidgetState extends State { // Location service not enabled. } }); - } catch(error) { + } catch (error) { print("HUAWEI LOCATION ERROR!!!!!"); print(error); } - } Future performNfcAttendance(DashboardProviderModel model, {String lat = "0", String lng = "0"}) async {