|
|
|
|
@ -71,9 +71,9 @@ class PaymentService extends StatelessWidget {
|
|
|
|
|
projectViewModel!.analytics.advancePayments.payment_services(service_type: 'payment service');
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).payment,
|
|
|
|
|
title: TranslationBase.of(context).onlinePayment,
|
|
|
|
|
imagePath: 'assets/images/new-design/online_payment_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context).paymentOnline,
|
|
|
|
|
subTitle: TranslationBase.of(context).onlinePaymentSubtitle,
|
|
|
|
|
isPngImage: true,
|
|
|
|
|
width: 65.0,
|
|
|
|
|
height: 55.0,
|
|
|
|
|
@ -182,19 +182,24 @@ class PaymentService extends StatelessWidget {
|
|
|
|
|
ClinicListService service = new ClinicListService();
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
service
|
|
|
|
|
.getInPatientAdvancePaymentRequests(projectViewModel.inPatientProjectID, projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.admissionNo! : 0,
|
|
|
|
|
projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.admissionRequestNo! : projectViewModel.getAdmissionRequestInfoResponseModel.admissionRequestNo!, context)
|
|
|
|
|
.getInPatientAdvancePaymentRequests(
|
|
|
|
|
projectViewModel.inPatientProjectID,
|
|
|
|
|
projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.admissionNo! : 0,
|
|
|
|
|
projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.admissionRequestNo! : projectViewModel.getAdmissionRequestInfoResponseModel.admissionRequestNo!,
|
|
|
|
|
context)
|
|
|
|
|
.then((res) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
if (res["MessageStatus"] == 1) {
|
|
|
|
|
if (res['responseInpatient'] != null) {
|
|
|
|
|
inPatientAdvanceResponseModel = InPatientAdvanceResponseModel.fromJson(res["responseInpatient"]);
|
|
|
|
|
Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).noData);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|