|
|
|
|
@ -207,29 +207,29 @@ class _clinic_listState extends State<ClinicList> {
|
|
|
|
|
// getERAppointmentFeesList.isInsured = true;
|
|
|
|
|
// getERAppointmentFeesList.isEligible = false;
|
|
|
|
|
|
|
|
|
|
// if (getERAppointmentFeesList.isCash!) {
|
|
|
|
|
// showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
|
|
|
|
|
// } else {
|
|
|
|
|
// if (getERAppointmentFeesList.isInsured! && getERAppointmentFeesList.isEligible!) {
|
|
|
|
|
// showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
|
|
|
|
|
// } else {
|
|
|
|
|
// if (getERAppointmentFeesList.isInsured! && !getERAppointmentFeesList.isEligible!) {
|
|
|
|
|
// errorMsg = TranslationBase.of(context).invalidEligibility;
|
|
|
|
|
// } else {
|
|
|
|
|
// errorMsg = TranslationBase.of(context).invalidInsurance;
|
|
|
|
|
// }
|
|
|
|
|
// ConfirmDialog dialog = new ConfirmDialog(
|
|
|
|
|
// isDissmissable: false,
|
|
|
|
|
// context: context,
|
|
|
|
|
// confirmMessage: errorMsg,
|
|
|
|
|
// okText: TranslationBase.of(context).updateInsuranceText,
|
|
|
|
|
// cancelText: TranslationBase.of(context).continueCash,
|
|
|
|
|
// okFunction: () => {openUpdateInsurance()},
|
|
|
|
|
// cancelFunction: () => {continueAsCash()});
|
|
|
|
|
// dialog.showAlertDialog(context);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
|
|
|
|
|
if (getERAppointmentFeesList.isCash!) {
|
|
|
|
|
showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
|
|
|
|
|
} else {
|
|
|
|
|
if (getERAppointmentFeesList.isInsured! && getERAppointmentFeesList.isEligible!) {
|
|
|
|
|
showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
|
|
|
|
|
} else {
|
|
|
|
|
if (getERAppointmentFeesList.isInsured! && !getERAppointmentFeesList.isEligible!) {
|
|
|
|
|
errorMsg = TranslationBase.of(context).invalidEligibility;
|
|
|
|
|
} else {
|
|
|
|
|
errorMsg = TranslationBase.of(context).invalidInsurance;
|
|
|
|
|
}
|
|
|
|
|
ConfirmDialog dialog = new ConfirmDialog(
|
|
|
|
|
isDissmissable: false,
|
|
|
|
|
context: context,
|
|
|
|
|
confirmMessage: errorMsg,
|
|
|
|
|
okText: TranslationBase.of(context).updateInsuranceText,
|
|
|
|
|
cancelText: TranslationBase.of(context).continueCash,
|
|
|
|
|
okFunction: () => {openUpdateInsurance()},
|
|
|
|
|
cancelFunction: () => {continueAsCash()});
|
|
|
|
|
dialog.showAlertDialog(context);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
print(err);
|
|
|
|
|
|