|
|
|
@ -307,12 +307,18 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
|
|
|
|
void openBirthNotificationsPage(BuildContext context) {
|
|
|
|
void openBirthNotificationsPage(BuildContext context) {
|
|
|
|
ClinicListService service = new ClinicListService();
|
|
|
|
ClinicListService service = new ClinicListService();
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
service.getBirthNotification(projectViewModel.user.patientID!, projectViewModel.isArabic ? 1 : 2, context).then((res) {
|
|
|
|
service
|
|
|
|
|
|
|
|
.getBirthNotification(
|
|
|
|
|
|
|
|
projectViewModel.user.patientID!,
|
|
|
|
|
|
|
|
projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.projectID! : projectViewModel.getAdmissionRequestInfoResponseModel.projectId!,
|
|
|
|
|
|
|
|
projectViewModel.isArabic ? 1 : 2,
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.then((res) {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
if (res["MessageStatus"] == 1) {
|
|
|
|
if (res["MessageStatus"] == 1) {
|
|
|
|
Navigator.push(context, FadePage(page: BirthNotification()));
|
|
|
|
Navigator.push(context, FadePage(page: BirthNotification()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
AppToast.showErrorToast(message: res["endUserMessage"]);
|
|
|
|
AppToast.showErrorToast(message: res["endUserMessage"], localContext: context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catchError((err) {
|
|
|
|
}).catchError((err) {
|
|
|
|
print(err);
|
|
|
|
print(err);
|
|
|
|
@ -376,7 +382,7 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
|
|
|
|
.then((res) {
|
|
|
|
.then((res) {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
if (res["MessageStatus"] == 1) {
|
|
|
|
if (res["MessageStatus"] == 1) {
|
|
|
|
if (res['responseInpatient'] != null && res['responseInpatient']['responseInpatientAdvanceInfo'].length != 0) {
|
|
|
|
if (res['responseInpatient'] != null && res['responseInpatient']['responseInpatientAdvanceInfo'] != null && res['responseInpatient']['responseInpatientAdvanceInfo'].length != 0) {
|
|
|
|
inPatientAdvanceResponseModel = InPatientAdvanceResponseModel.fromJson(res["responseInpatient"]);
|
|
|
|
inPatientAdvanceResponseModel = InPatientAdvanceResponseModel.fromJson(res["responseInpatient"]);
|
|
|
|
Navigator.push(context,
|
|
|
|
Navigator.push(context,
|
|
|
|
FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
|
|
|
|
|