CR 6654, Disable update manual insurance temporarily.

merge-update-with-lab-changes
haroon amjad 2 years ago
parent b2f390c19d
commit af5b0766a2

@ -1898,4 +1898,5 @@ const Map localizedValues = {
"continueCash": {"en": "Continue as cash", "ar": "تواصل نقدا"}, "continueCash": {"en": "Continue as cash", "ar": "تواصل نقدا"},
"updateInsurance": {"en": "Update insurance", "ar": "تحديث التأمين"}, "updateInsurance": {"en": "Update insurance", "ar": "تحديث التأمين"},
"downloadReport": {"en": "Download Report", "ar": "تحميل تقرير المختبر"}, "downloadReport": {"en": "Download Report", "ar": "تحميل تقرير المختبر"},
"habibCallCenter": {"en": "Please contact AlHabib call center to update your insurance manually.", "ar": "يرجى الاتصال بمركز اتصال الحبيب لتحديث التأمين الخاص بك يدوياً."},
}; };

@ -132,24 +132,31 @@ class _AttachInsuranceCardImageDialogState extends State<AttachInsuranceCardImag
), ),
Padding( Padding(
padding: const EdgeInsets.all(18.0), padding: const EdgeInsets.all(18.0),
child: DefaultButton( child: Text(TranslationBase.of(context).habibCallCenter,
TranslationBase.of(context).updateInsuranceManually, style: TextStyle(
() { fontSize: 16,
Navigator.pop(context); letterSpacing: -0.48,
Navigator.push( fontWeight: FontWeight.w600,
context, ),
FadePage(
page: UpdateInsuranceManually(
patientIdentificationNo: widget.identificationNo,
patientMobileNumber: widget.mobileNo,
patientID: num.parse(widget.fileNo),
),
),
);
},
textColor: Colors.white,
color: CustomColors.accentColor,
), ),
// DefaultButton(
// TranslationBase.of(context).updateInsuranceManually,
// () {
// Navigator.pop(context);
// Navigator.push(
// context,
// FadePage(
// page: UpdateInsuranceManually(
// patientIdentificationNo: widget.identificationNo,
// patientMobileNumber: widget.mobileNo,
// patientID: num.parse(widget.fileNo),
// ),
// ),
// );
// },
// textColor: Colors.white,
// color: CustomColors.accentColor,
// ),
), ),
SizedBox( SizedBox(
height: 25.0, height: 25.0,

@ -184,19 +184,21 @@ class InsurancePage extends StatelessWidget {
void updateManually(BuildContext context, String errorMsg, String patientIdentificationID, int patientID, String mobileNumber) { void updateManually(BuildContext context, String errorMsg, String patientIdentificationID, int patientID, String mobileNumber) {
ConfirmDialog dialog = new ConfirmDialog( ConfirmDialog dialog = new ConfirmDialog(
context: context, context: context,
confirmMessage: errorMsg + ". " + TranslationBase.of(context).updateInsuranceManuallyDialog, confirmMessage: errorMsg + ". " + TranslationBase.of(context).habibCallCenter,
okText: TranslationBase.of(context).yes, okText: TranslationBase.of(context).ok,
cancelText: TranslationBase.of(context).no, cancelText: TranslationBase.of(context).cancel,
okFunction: () => { okFunction: () => {
Navigator.pop(context), Navigator.pop(context),
Navigator.push( Navigator.push(
context, context,
FadePage( FadePage(
page: UpdateInsuranceManually( page: UpdateInsuranceManually(
patientIdentificationNo: patientIdentificationID, patientIdentificationNo: patientIdentificationID,
patientID: patientID, patientID: patientID,
patientMobileNumber: mobileNumber, patientMobileNumber: mobileNumber,
))) ),
),
),
}, },
cancelFunction: () => {}); cancelFunction: () => {});
dialog.showAlertDialog(context); dialog.showAlertDialog(context);

@ -2907,6 +2907,7 @@ class TranslationBase {
String get continueCash => localizedValues["continueCash"][locale.languageCode]; String get continueCash => localizedValues["continueCash"][locale.languageCode];
String get updateInsuranceText => localizedValues["updateInsurance"][locale.languageCode]; String get updateInsuranceText => localizedValues["updateInsurance"][locale.languageCode];
String get downloadReport => localizedValues["downloadReport"][locale.languageCode]; String get downloadReport => localizedValues["downloadReport"][locale.languageCode];
String get habibCallCenter => localizedValues["habibCallCenter"][locale.languageCode];
} }

Loading…
Cancel
Save