|
|
|
|
@ -16,6 +16,7 @@ import 'package:test_sa/modules/pm_module/recurrent_wo/recurrent_work_order_view
|
|
|
|
|
import 'package:test_sa/modules/tm_module/device_transfer/device_transfer_details.dart';
|
|
|
|
|
import 'package:test_sa/modules/tm_module/tasks/task_request_detail_view.dart';
|
|
|
|
|
import 'package:test_sa/modules/tm_module/gas_refill/gas_refill_details.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
import 'package:test_sa/views/widgets/loaders/no_data_found.dart';
|
|
|
|
|
|
|
|
|
|
@pragma('vm:entry-point')
|
|
|
|
|
@ -121,7 +122,7 @@ class FirebaseNotificationManger {
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
serviceClass = const Scaffold(body: Center(child: NoDataFound()));
|
|
|
|
|
serviceClass = const Scaffold(appBar: DefaultAppBar(), body: Center(child: NoDataFound()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Navigator.of(context).push(MaterialPageRoute(builder: (_) => serviceClass!));
|
|
|
|
|
@ -134,7 +135,7 @@ class FirebaseNotificationManger {
|
|
|
|
|
// SparePartTransaction= 8,
|
|
|
|
|
// GasRefill=9,
|
|
|
|
|
// TechnicalRetirmentWO = 11,
|
|
|
|
|
// Recurrent = 12,
|
|
|
|
|
// Recurrent = 12,
|
|
|
|
|
switch (transactionType) {
|
|
|
|
|
case "1":
|
|
|
|
|
serviceClass = PpmDetailsPage(requestId: int.parse(messageData["requestNumber"].toString()));
|
|
|
|
|
@ -172,7 +173,7 @@ class FirebaseNotificationManger {
|
|
|
|
|
// requestDetails: RequestsDetails(nameOfType: messageData["sourceName"], status: messageData["statusName"], priority: messageData["priorityName"], date: messageData["createdDate"]));
|
|
|
|
|
// return;
|
|
|
|
|
default:
|
|
|
|
|
serviceClass = const Scaffold(body: Center(child: NoDataFound()));
|
|
|
|
|
serviceClass = const Scaffold(appBar: DefaultAppBar(), body: Center(child: NoDataFound()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (messageData["requestType"] == "Service request to engineer") {
|
|
|
|
|
|