Dev_3.3_InPatient_CR
haroon amjad 2 years ago
parent 59b7220a1f
commit 8818611dbc

@ -326,7 +326,7 @@ var UPDATE_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnari
var CHANNEL = 3;
var GENERAL_ID = 'Cs2020@2016\$2958';
var IP_ADDRESS = '10.20.10.20';
var VERSION_ID = 11.0;
var VERSION_ID = 17.0;
var SETUP_ID = '91877';
var LANGUAGE = 2;
// var PATIENT_OUT_SA = 0;

@ -58,7 +58,7 @@ class _InPatientPendingAdvancePaymentState extends State<InPatientPendingAdvance
margin: EdgeInsets.zero,
child: Padding(
padding: const EdgeInsets.all(12.0),
child: widget.isHasData && widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null
child: widget.isHasData && widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null && widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo.length != 0
? Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [

@ -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);

Loading…
Cancel
Save