|
|
|
@ -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,
|
|
|
|
|