|
|
@ -276,14 +276,15 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<AppoDetailsButton>> _getBookedAppoActionsList() async {
|
|
|
|
Future<List<AppoDetailsButton>> _getBookedAppoActionsList() async {
|
|
|
|
print("_getBookedAppoActionsList");
|
|
|
|
print("_getBookedAppoActionsList");
|
|
|
|
print(BookedButtons.buttons);
|
|
|
|
BookedButtons bookedButtons = new BookedButtons();
|
|
|
|
|
|
|
|
print(bookedButtons.buttons);
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
for (var i = 0; i < BookedButtons.buttons.length; i++) {
|
|
|
|
for (var i = 0; i < bookedButtons.buttons.length; i++) {
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
title: BookedButtons.buttons[i]['title'],
|
|
|
|
title: bookedButtons.buttons[i]['title'],
|
|
|
|
subtitle: BookedButtons.buttons[i]['subtitle'],
|
|
|
|
subtitle: bookedButtons.buttons[i]['subtitle'],
|
|
|
|
icon: BookedButtons.buttons[i]['icon'],
|
|
|
|
icon: bookedButtons.buttons[i]['icon'],
|
|
|
|
caller: BookedButtons.buttons[i]['caller'],
|
|
|
|
caller: bookedButtons.buttons[i]['caller'],
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -293,14 +294,16 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<AppoDetailsButton>> _getBookedCheckInAppoActionsList() async {
|
|
|
|
Future<List<AppoDetailsButton>> _getBookedCheckInAppoActionsList() async {
|
|
|
|
print("_getBookedCheckInAppoActionsList");
|
|
|
|
print("_getBookedCheckInAppoActionsList");
|
|
|
|
print(BookedButtonsAllowCheckIn.buttons);
|
|
|
|
BookedButtonsAllowCheckIn bookedButtonsAllowCheckIn =
|
|
|
|
|
|
|
|
new BookedButtonsAllowCheckIn();
|
|
|
|
|
|
|
|
print(bookedButtonsAllowCheckIn.buttons);
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
for (var i = 0; i < BookedButtonsAllowCheckIn.buttons.length; i++) {
|
|
|
|
for (var i = 0; i < bookedButtonsAllowCheckIn.buttons.length; i++) {
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
title: BookedButtonsAllowCheckIn.buttons[i]['title'],
|
|
|
|
title: bookedButtonsAllowCheckIn.buttons[i]['title'],
|
|
|
|
subtitle: BookedButtonsAllowCheckIn.buttons[i]['subtitle'],
|
|
|
|
subtitle: bookedButtonsAllowCheckIn.buttons[i]['subtitle'],
|
|
|
|
icon: BookedButtonsAllowCheckIn.buttons[i]['icon'],
|
|
|
|
icon: bookedButtonsAllowCheckIn.buttons[i]['icon'],
|
|
|
|
caller: BookedButtonsAllowCheckIn.buttons[i]['caller'],
|
|
|
|
caller: bookedButtonsAllowCheckIn.buttons[i]['caller'],
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -310,14 +313,15 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<AppoDetailsButton>> _getConfirmedAppoActionsList() async {
|
|
|
|
Future<List<AppoDetailsButton>> _getConfirmedAppoActionsList() async {
|
|
|
|
print("_getConfirmedAppoActionsList");
|
|
|
|
print("_getConfirmedAppoActionsList");
|
|
|
|
print(ConfirmedButtons.buttons);
|
|
|
|
ConfirmedButtons confirmedButtons = new ConfirmedButtons();
|
|
|
|
|
|
|
|
print(confirmedButtons.buttons);
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
for (var i = 0; i < ConfirmedButtons.buttons.length; i++) {
|
|
|
|
for (var i = 0; i < confirmedButtons.buttons.length; i++) {
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
title: ConfirmedButtons.buttons[i]['title'],
|
|
|
|
title: confirmedButtons.buttons[i]['title'],
|
|
|
|
subtitle: ConfirmedButtons.buttons[i]['subtitle'],
|
|
|
|
subtitle: confirmedButtons.buttons[i]['subtitle'],
|
|
|
|
icon: ConfirmedButtons.buttons[i]['icon'],
|
|
|
|
icon: confirmedButtons.buttons[i]['icon'],
|
|
|
|
caller: ConfirmedButtons.buttons[i]['caller'],
|
|
|
|
caller: confirmedButtons.buttons[i]['caller'],
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -327,14 +331,16 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<AppoDetailsButton>> _getConfirmedCheckInAppoActionsList() async {
|
|
|
|
Future<List<AppoDetailsButton>> _getConfirmedCheckInAppoActionsList() async {
|
|
|
|
print("_getConfirmedAllowCheckInAppoActionsList");
|
|
|
|
print("_getConfirmedAllowCheckInAppoActionsList");
|
|
|
|
print(ConfirmedButtonsAllowCheckIn.buttons);
|
|
|
|
ConfirmedButtonsAllowCheckIn confirmedButtonsAllowCheckIn =
|
|
|
|
|
|
|
|
new ConfirmedButtonsAllowCheckIn();
|
|
|
|
|
|
|
|
print(confirmedButtonsAllowCheckIn.buttons);
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
for (var i = 0; i < ConfirmedButtonsAllowCheckIn.buttons.length; i++) {
|
|
|
|
for (var i = 0; i < confirmedButtonsAllowCheckIn.buttons.length; i++) {
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
title: ConfirmedButtonsAllowCheckIn.buttons[i]['title'],
|
|
|
|
title: confirmedButtonsAllowCheckIn.buttons[i]['title'],
|
|
|
|
subtitle: ConfirmedButtonsAllowCheckIn.buttons[i]['subtitle'],
|
|
|
|
subtitle: confirmedButtonsAllowCheckIn.buttons[i]['subtitle'],
|
|
|
|
icon: ConfirmedButtonsAllowCheckIn.buttons[i]['icon'],
|
|
|
|
icon: confirmedButtonsAllowCheckIn.buttons[i]['icon'],
|
|
|
|
caller: ConfirmedButtonsAllowCheckIn.buttons[i]['caller'],
|
|
|
|
caller: confirmedButtonsAllowCheckIn.buttons[i]['caller'],
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -344,14 +350,15 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<AppoDetailsButton>> _getArrivedAppoActionsList() async {
|
|
|
|
Future<List<AppoDetailsButton>> _getArrivedAppoActionsList() async {
|
|
|
|
print("_getArrivedAppoActionsList");
|
|
|
|
print("_getArrivedAppoActionsList");
|
|
|
|
print(ArrivedButtons.buttons);
|
|
|
|
ArrivedButtons arrivedButtons = new ArrivedButtons();
|
|
|
|
|
|
|
|
print(arrivedButtons.buttons);
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
for (var i = 0; i < ArrivedButtons.buttons.length; i++) {
|
|
|
|
for (var i = 0; i < arrivedButtons.buttons.length; i++) {
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
title: ArrivedButtons.buttons[i]['title'],
|
|
|
|
title: arrivedButtons.buttons[i]['title'],
|
|
|
|
subtitle: ArrivedButtons.buttons[i]['subtitle'],
|
|
|
|
subtitle: arrivedButtons.buttons[i]['subtitle'],
|
|
|
|
icon: ArrivedButtons.buttons[i]['icon'],
|
|
|
|
icon: arrivedButtons.buttons[i]['icon'],
|
|
|
|
caller: ArrivedButtons.buttons[i]['caller'],
|
|
|
|
caller: arrivedButtons.buttons[i]['caller'],
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -361,14 +368,14 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
|
|
Future<List<AppoDetailsButton>> _getArrivedInvoiceAppoActionsList() async {
|
|
|
|
Future<List<AppoDetailsButton>> _getArrivedInvoiceAppoActionsList() async {
|
|
|
|
print("_getArrivedInvoiceAppoActionsList");
|
|
|
|
print("_getArrivedInvoiceAppoActionsList");
|
|
|
|
print(ArrivedButtons.buttons);
|
|
|
|
ArrivedButtons arrivedButtons = new ArrivedButtons();
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
List<AppoDetailsButton> buttonsList = [];
|
|
|
|
for (var i = 0; i < ArrivedButtons.buttons.length; i++) {
|
|
|
|
for (var i = 0; i < arrivedButtons.buttons.length; i++) {
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
buttonsList.add(AppoDetailsButton(
|
|
|
|
title: ArrivedButtons.buttons[i]['title'],
|
|
|
|
title: arrivedButtons.buttons[i]['title'],
|
|
|
|
subtitle: ArrivedButtons.buttons[i]['subtitle'],
|
|
|
|
subtitle: arrivedButtons.buttons[i]['subtitle'],
|
|
|
|
icon: ArrivedButtons.buttons[i]['icon'],
|
|
|
|
icon: arrivedButtons.buttons[i]['icon'],
|
|
|
|
caller: ArrivedButtons.buttons[i]['caller'],
|
|
|
|
caller: arrivedButtons.buttons[i]['caller'],
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -474,7 +481,8 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
prescriptionReportEnhList.add(PrescriptionReportEnh.fromJson(report));
|
|
|
|
prescriptionReportEnhList.add(PrescriptionReportEnh.fromJson(report));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
print(prescriptionReportEnhList.length);
|
|
|
|
print(prescriptionReportEnhList.length);
|
|
|
|
navigateToMedicinePrescriptionReport(prescriptionReportEnhList, res['ListPRM']);
|
|
|
|
navigateToMedicinePrescriptionReport(
|
|
|
|
|
|
|
|
prescriptionReportEnhList, res['ListPRM']);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).noRecords);
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).noRecords);
|
|
|
|
}
|
|
|
|
}
|
|
|
|