diff --git a/lib/config/shared_pref_kay.dart b/lib/config/shared_pref_kay.dart index 36dbdaf1..fc74bb99 100644 --- a/lib/config/shared_pref_kay.dart +++ b/lib/config/shared_pref_kay.dart @@ -1,5 +1,8 @@ final TOKEN = 'token'; final PROJECT_ID='projectID'; +//===========amjad============ +final DOCTOR_ID='doctorID'; +//======================= final SLECTED_PATIENT_TYPE='slectedPatientType'; final APP_Language = 'language'; final DOCTOR_PROFILE = 'doctorProfile'; \ No newline at end of file diff --git a/lib/screens/patients/patient_search_screen.dart b/lib/screens/patients/patient_search_screen.dart index cfc2c753..c9b35a35 100644 --- a/lib/screens/patients/patient_search_screen.dart +++ b/lib/screens/patients/patient_search_screen.dart @@ -79,8 +79,14 @@ class _PatientSearchScreenState extends State { print('_selectedType${_selectedType}'); String token = await sharedPref.getString(TOKEN); int projectID = await sharedPref.getInt(PROJECT_ID); + //==================== + int doctorID = doctorProfile.doctorID;//await sharedPref.getInt(DOCTOR_ID); + //==================== _patientSearchFormValues.TokenID = token; - _patientSearchFormValues.ProjectID = 15; //projectID; + _patientSearchFormValues.ProjectID = projectID;//15 + //=================== + _patientSearchFormValues.DoctorID = doctorID; + //==================== // print(_patientSearchFormValues.PatientMobileNumber+"dfdfdfddf"); Navigator.of(context).pushNamed(PATIENTS, arguments: { "patientSearchForm": _patientSearchFormValues,