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'? //_selectedType=='3'?
//===================== //=====================
//
Map profile = await sharedPref.getObj(DOCTOR_PROFILE); // Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
DoctorProfileModel doctorProfile = // DoctorProfileModel doctorProfile =
new DoctorProfileModel.fromJson(profile); // new DoctorProfileModel.fromJson(profile);
if (_formKey.currentState.validate()) { if (_formKey.currentState.validate()) {
_formKey.currentState.save(); _formKey.currentState.save();
sharedPref.setString(SLECTED_PATIENT_TYPE, _selectedType); // sharedPref.setString(SLECTED_PATIENT_TYPE, _selectedType);
print('************_selectedType*************'); // print('************_selectedType*************');
print('_selectedType${_selectedType}'); // print('_selectedType${_selectedType}');
String token = await sharedPref.getString(TOKEN); // String token = await sharedPref.getString(TOKEN);
//
_patientSearchFormValues.TokenID = token; // _patientSearchFormValues.TokenID = token;
_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;
//===================== // //=====================
// _patientSearchFormValues. // // _patientSearchFormValues.
//===================== // //=====================
//
print("=============doctorProfile.clinicID=" + // print("=============doctorProfile.clinicID=" +
doctorProfile.clinicID.toString()); // doctorProfile.clinicID.toString());
Navigator.of(context).pushNamed(PATIENTS, arguments: { Navigator.of(context).pushNamed(PATIENTS, arguments: {
"patientSearchForm": _patientSearchFormValues, "patientSearchForm": _patientSearchFormValues,

Loading…
Cancel
Save