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 = [];
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 {
hasError = false;

@ -459,8 +459,8 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
List<RadioSelectionDialogModel> list = [
RadioSelectionDialogModel(TranslationBase.of(context).notClassified, 5),
RadioSelectionDialogModel(TranslationBase.of(context).complainAppo, 1),
RadioSelectionDialogModel(TranslationBase.of(context).complainWithoutAppo, 3),
RadioSelectionDialogModel(TranslationBase.of(context).question, 2),
RadioSelectionDialogModel(TranslationBase.of(context).complainWithoutAppo, 2),
RadioSelectionDialogModel(TranslationBase.of(context).question, 3),
RadioSelectionDialogModel(TranslationBase.of(context).compliment, 4),
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_request_info_response_model.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/rateAppointment/rate_appointment_doctor.dart';
import 'package:diplomaticquarterapp/routes.dart';
@ -767,7 +768,18 @@ class _ConfirmLogin extends State<ConfirmLogin> {
{
result = CheckActivationCode.fromJson(
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)
{
widget.changePageViewIndex!(1),

@ -95,11 +95,11 @@ class _HomeReportPageState extends State<HomeReportPage> with SingleTickerProvid
tabs: [
Text(
TranslationBase.of(context).outpatient,
style: TextStyle(fontFamily: projectViewModel.isArabic ? 'Cairo' : 'Poppins'),
style: TextStyle(fontFamily: projectViewModel!.isArabic ? 'Cairo' : 'Poppins'),
),
Text(
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 {
SmsVerification.startListeningSms().then((message) {
// setState(() {
final intRegex = RegExp(r'\d+', multiLine: true);
var otp = SmsVerification.getCode(message, intRegex);
_pinPutController.text = otp;
onSuccess(otp);
// SmsVerification.startListeningSms().then((message) {
// // setState(() {
// final intRegex = RegExp(r'\d+', multiLine: true);
// var otp = SmsVerification.getCode(message, intRegex);
// _pinPutController.text = otp;
// onSuccess(otp);
// // });
// });
});
}
// startLister() {

Loading…
Cancel
Save