|
|
|
|
@ -588,14 +588,7 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
navigateToToDoPage(BuildContext context, ToDoCountProviderModel model) {
|
|
|
|
|
if (widget.projectViewModel.isLogin) {
|
|
|
|
|
if (model.count != 0) {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ToDo(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isFromMyAppointments: true,
|
|
|
|
|
appointment: widget.appo,
|
|
|
|
|
)));
|
|
|
|
|
getPatientAppointmentHistoryWithAppo();
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).upcomingEmpty);
|
|
|
|
|
}
|
|
|
|
|
@ -611,6 +604,33 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getPatientAppointmentHistoryWithAppo() {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
|
service.getPatientAppointmentHistoryWithAppoNo(widget.appo.appointmentNo).then((res) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
|
AppoitmentAllHistoryResultList appo = new AppoitmentAllHistoryResultList.fromJson(res['AppoimentAllHistoryResultList'][0]);
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ToDo(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isFromMyAppointments: true,
|
|
|
|
|
appointment: appo,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: res['ErrorEndUserMessage']);
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
err != null ?? AppToast.showErrorToast(message: err);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rateAppointment() {
|
|
|
|
|
widget.browser = new MyInAppBrowser();
|
|
|
|
|
var url = 'http://hmg.com/SitePages/pso.aspx?p=' + widget.appo.projectID.toString() + '.' + widget.appo.appointmentNo.toString() + '&c=1';
|
|
|
|
|
|