Merge branch 'hack_login' into 'development'

hack login

See merge request Cloud_Solution/doctor_app_flutter!204
merge-requests/209/head
Mohammad Aljammal 4 years ago
commit 5386866039

@ -71,28 +71,28 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
//====================
//_selectedType=='3'?
//=====================
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
DoctorProfileModel doctorProfile =
new DoctorProfileModel.fromJson(profile);
//
// Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
// DoctorProfileModel doctorProfile =
// new DoctorProfileModel.fromJson(profile);
if (_formKey.currentState.validate()) {
_formKey.currentState.save();
sharedPref.setString(SLECTED_PATIENT_TYPE, _selectedType);
print('************_selectedType*************');
print('_selectedType${_selectedType}');
String token = await sharedPref.getString(TOKEN);
_patientSearchFormValues.TokenID = token;
_patientSearchFormValues.ProjectID = doctorProfile.projectID; //15
_patientSearchFormValues.DoctorID = doctorProfile.doctorID;
_patientSearchFormValues.ClinicID = doctorProfile.clinicID;
//=====================
// _patientSearchFormValues.
//=====================
print("=============doctorProfile.clinicID=" +
doctorProfile.clinicID.toString());
// sharedPref.setString(SLECTED_PATIENT_TYPE, _selectedType);
// print('************_selectedType*************');
// print('_selectedType${_selectedType}');
// String token = await sharedPref.getString(TOKEN);
//
// _patientSearchFormValues.TokenID = token;
// _patientSearchFormValues.ProjectID = doctorProfile.projectID; //15
// _patientSearchFormValues.DoctorID = doctorProfile.doctorID;
// _patientSearchFormValues.ClinicID = doctorProfile.clinicID;
// //=====================
// // _patientSearchFormValues.
// //=====================
//
// print("=============doctorProfile.clinicID=" +
// doctorProfile.clinicID.toString());
Navigator.of(context).pushNamed(PATIENTS, arguments: {
"patientSearchForm": _patientSearchFormValues,

Loading…
Cancel
Save