verify clinic id

merge-requests/64/head
Amjad Amireh 6 years ago
parent e93c764620
commit c7fccbf708

@ -75,6 +75,8 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
_patientSearchFormValues.ProjectID = doctorProfile.projectID ;//15 _patientSearchFormValues.ProjectID = doctorProfile.projectID ;//15
_patientSearchFormValues.DoctorID = doctorProfile.doctorID; _patientSearchFormValues.DoctorID = doctorProfile.doctorID;
_patientSearchFormValues.ClinicID = doctorProfile.clinicID; _patientSearchFormValues.ClinicID = doctorProfile.clinicID;
print("=============doctorProfile.clinicID="+doctorProfile.clinicID.toString());
Navigator.of(context).pushNamed(PATIENTS, arguments: { Navigator.of(context).pushNamed(PATIENTS, arguments: {
"patientSearchForm": _patientSearchFormValues, "patientSearchForm": _patientSearchFormValues,

@ -285,11 +285,12 @@ class _PatientsScreenState extends State<PatientsScreen> {
? DrAppCircularProgressIndeicator() ? DrAppCircularProgressIndeicator()
: patientsProv.isError : patientsProv.isError
? DrAppEmbeddedError(error: patientsProv.error) ? DrAppEmbeddedError(error: patientsProv.error)
: litems == null : litems == null?
? DrAppEmbeddedError( // ? DrAppEmbeddedError(
error: 'You don\'t have any ' + // error: 'You don\'t have any ' +
patientTypetitle + // patientTypetitle +
" patiant") // " patiant")
DrAppCircularProgressIndeicator()
: Container( : Container(
child: child:
ListView(scrollDirection: Axis.vertical, children: < ListView(scrollDirection: Axis.vertical, children: <

Loading…
Cancel
Save