Преглед на файлове

Merge branch 'master' of http://git.ius.plus/Project-Vital/VitalApp

loki.wu преди 10 месеца
родител
ревизия
a57b4b96f4
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 1
      lib/pages/patient/create/controller.dart
  2. 2 1
      lib/pages/patient/list/controller.dart

+ 2 - 1
lib/pages/patient/create/controller.dart

@@ -374,7 +374,8 @@ class CreatePatientController extends FControllerBase
     if (result != null && result.success) {
       final patient = result.patientInfo;
       final hasConfirmed = await FaceResultDialog.show(patient, true);
-      if (hasConfirmed) {
+      if (hasConfirmed &&
+          patient.createdOrgCode == Store.user.organizationCode) {
         await _checkinPatient(patient, false);
       }
     } else {

+ 2 - 1
lib/pages/patient/list/controller.dart

@@ -62,7 +62,8 @@ class PatientListController extends FControllerBase
     if (result != null && result.success) {
       final patient = result.patientInfo;
       final hasConfirmed = await FaceResultDialog.show(patient, true);
-      if (hasConfirmed) {
+      if (hasConfirmed &&
+          patient.createdOrgCode == Store.user.organizationCode) {
         await _checkinPatient(patient);
       }
     } else {