error code 699 fixes

dev_v3.13.6_BLE_Faiz
Sultan khan 2 years ago
parent 011f5b1f57
commit 21e4bb5138

@ -13,7 +13,7 @@ class ReportsService extends BaseService {
List<AdmissionMedicalReport> admissionsMedicalReport = []; List<AdmissionMedicalReport> admissionsMedicalReport = [];
String userAgreementContent = ""; String userAgreementContent = "";
RequestReports _requestReports = RequestReports(isReport: true, encounterType: 1, requestType: 1, patientOutSA: 0, projectID: 0); RequestReports _requestReports = RequestReports(isReport: true, encounterType: 1, requestType: 1, projectID: 0);
Future getReports() async { Future getReports() async {
hasError = false; hasError = false;

@ -459,8 +459,8 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
List<RadioSelectionDialogModel> list = [ List<RadioSelectionDialogModel> list = [
RadioSelectionDialogModel(TranslationBase.of(context).notClassified, 5), RadioSelectionDialogModel(TranslationBase.of(context).notClassified, 5),
RadioSelectionDialogModel(TranslationBase.of(context).complainAppo, 1), RadioSelectionDialogModel(TranslationBase.of(context).complainAppo, 1),
RadioSelectionDialogModel(TranslationBase.of(context).complainWithoutAppo, 3), RadioSelectionDialogModel(TranslationBase.of(context).complainWithoutAppo, 2),
RadioSelectionDialogModel(TranslationBase.of(context).question, 2), RadioSelectionDialogModel(TranslationBase.of(context).question, 3),
RadioSelectionDialogModel(TranslationBase.of(context).compliment, 4), RadioSelectionDialogModel(TranslationBase.of(context).compliment, 4),
RadioSelectionDialogModel(TranslationBase.of(context).suggestion, 6), RadioSelectionDialogModel(TranslationBase.of(context).suggestion, 6),
]; ];

@ -17,6 +17,7 @@ import 'package:diplomaticquarterapp/models/Authentication/send_activation_reque
import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_info_response_model.dart'; import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_info_response_model.dart';
import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_request_info_response_model.dart'; import 'package:diplomaticquarterapp/models/InPatientServices/get_admission_request_info_response_model.dart';
import 'package:diplomaticquarterapp/pages/landing/landing_page.dart'; import 'package:diplomaticquarterapp/pages/landing/landing_page.dart';
import 'package:diplomaticquarterapp/pages/login/login.dart';
import 'package:diplomaticquarterapp/pages/login/register_new.dart'; import 'package:diplomaticquarterapp/pages/login/register_new.dart';
import 'package:diplomaticquarterapp/pages/rateAppointment/rate_appointment_doctor.dart'; import 'package:diplomaticquarterapp/pages/rateAppointment/rate_appointment_doctor.dart';
import 'package:diplomaticquarterapp/routes.dart'; import 'package:diplomaticquarterapp/routes.dart';
@ -767,7 +768,18 @@ class _ConfirmLogin extends State<ConfirmLogin> {
{ {
result = CheckActivationCode.fromJson( result = CheckActivationCode.fromJson(
result as Map<String, dynamic>), result as Map<String, dynamic>),
if (this.registerd_data != null && if(result.errorCode =='699'){
//699 block run here
GifLoaderDialogUtils.hideDialog(context),
Future.delayed(Duration(seconds: 2), () {
AppToast.showErrorToast(message: result.errorEndUserMessage);
Navigator.popUntil(
context,
(route) =>
Utils.route(route, equalsTo: Login));
})
}
else if (this.registerd_data != null &&
this.registerd_data.isRegister == true) this.registerd_data.isRegister == true)
{ {
widget.changePageViewIndex!(1), widget.changePageViewIndex!(1),

@ -95,11 +95,11 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
tabs: [ tabs: [
Text( Text(
TranslationBase.of(context).outpatient, TranslationBase.of(context).outpatient,
style: TextStyle(fontFamily: projectViewModel.isArabic ? 'Cairo' : 'Poppins'), style: TextStyle(fontFamily: projectViewModel!.isArabic ? 'Cairo' : 'Poppins'),
), ),
Text( Text(
TranslationBase.of(context).inPatient, TranslationBase.of(context).inPatient,
style: TextStyle(fontFamily: projectViewModel.isArabic ? 'Cairo' : 'Poppins'), style: TextStyle(fontFamily: projectViewModel!.isArabic ? 'Cairo' : 'Poppins'),
), ),
], ],
), ),

@ -286,14 +286,14 @@ class SMSOTP {
} }
checkSignature() async { checkSignature() async {
SmsVerification.startListeningSms().then((message) { // SmsVerification.startListeningSms().then((message) {
// setState(() { // // setState(() {
final intRegex = RegExp(r'\d+', multiLine: true); // final intRegex = RegExp(r'\d+', multiLine: true);
var otp = SmsVerification.getCode(message, intRegex); // var otp = SmsVerification.getCode(message, intRegex);
_pinPutController.text = otp; // _pinPutController.text = otp;
onSuccess(otp); // onSuccess(otp);
// // });
// }); // });
});
} }
// startLister() { // startLister() {

Loading…
Cancel
Save