|
|
|
@ -12,6 +12,7 @@ import 'package:diplomaticquarterapp/models/Appointments/toDoCountProviderModel.
|
|
|
|
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/anicllary-orders/ancillary_order_list_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/anicllary-orders/ancillary_order_list_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrdersDetails.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrdersDetails.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/Blood/blood_donation_appointment_terms_conditions.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/QRCode.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/QRCode.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/SearchResults.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/SearchResults.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/AppointmentDetails.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/AppointmentDetails.dart';
|
|
|
|
@ -555,6 +556,9 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
case 30:
|
|
|
|
case 30:
|
|
|
|
getAppoQR(context, appo);
|
|
|
|
getAppoQR(context, appo);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 40:
|
|
|
|
|
|
|
|
openInstructions(appo);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 50:
|
|
|
|
case 50:
|
|
|
|
confirmAppointment(appo);
|
|
|
|
confirmAppointment(appo);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
@ -566,6 +570,12 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openInstructions(AppoitmentAllHistoryResultList appo) {
|
|
|
|
|
|
|
|
if (appo.clinicID == 134) {
|
|
|
|
|
|
|
|
Navigator.of(context).push(FadePage(page: BloodDonationAppointmentTermsConditions()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Color getNextActionButtonColor(nextAction) {
|
|
|
|
Color getNextActionButtonColor(nextAction) {
|
|
|
|
switch (nextAction) {
|
|
|
|
switch (nextAction) {
|
|
|
|
case 0:
|
|
|
|
case 0:
|
|
|
|
@ -835,7 +845,7 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dataLoaded = true;
|
|
|
|
dataLoaded = true;
|
|
|
|
if(widget.isFromMyAppointments) {
|
|
|
|
if (widget.isFromMyAppointments) {
|
|
|
|
getPatientShare(context, widget.appointment);
|
|
|
|
getPatientShare(context, widget.appointment);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|