|
|
|
|
@ -386,14 +386,22 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
|
|
|
|
|
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.responseInpatientAdvanceInfo.length != 0),
|
|
|
|
|
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.responseInpatientAdvanceInfo.length != 0),
|
|
|
|
|
inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|