clinic search

er_location
Sultan Khan 5 years ago
parent 4a75215a19
commit 20a17c0070

@ -54,7 +54,7 @@ class DoctorsListService extends BaseService {
"SessionID": "YckwoXhUmWBsnHKEKig", "SessionID": "YckwoXhUmWBsnHKEKig",
"ClinicID": clinicID, "ClinicID": clinicID,
"ProjectID": projectID, "ProjectID": projectID,
"DoctorName": doctorId, //!= null ? doctorId : 0, //"DoctorName": doctorId, //!= null ? doctorId : 0,
"ContinueDentalPlan": false, "ContinueDentalPlan": false,
"IsSearchAppointmnetByClinicID": true, "IsSearchAppointmnetByClinicID": true,
"PatientID": authUser.patientID != null ? authUser.patientID : 0, "PatientID": authUser.patientID != null ? authUser.patientID : 0,
@ -64,8 +64,8 @@ class DoctorsListService extends BaseService {
// "Latitude": 0, // "Latitude": 0,
// "Longitude": 0, // "Longitude": 0,
// "License": true, // "License": true,
// "IsVoiceCommand": doctorId != null && doctorId.length > 0 ? true : false, "IsVoiceCommand": doctorId != null && doctorId.length > 0 ? true : false,
// "DoctorIDsList": doctorId "DoctorIDsList": doctorId,
"Latitude": lat != null ? lat.toString() : 0, "Latitude": lat != null ? lat.toString() : 0,
"Longitude": long != null ? long.toString() : 0, "Longitude": long != null ? long.toString() : 0,
"License": true "License": true

@ -325,21 +325,22 @@ class _SearchBot extends State<BottomBarSearch> {
List<String> arrDistance = []; List<String> arrDistance = [];
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
service service
.getDoctorsList(clinicId, projectId, context, doctorId: doctorName) .getDoctorsList(clinicId, projectId, context, doctorId: doctorId)
.then((res) { .then((res) {
if (res['MessageStatus'] == 1) { if (res['MessageStatus'] == 1) {
setState(() { setState(() {
if (res['DoctorList'].length != 0) { if (res['SearchDoctorsByTime_IsVoiceCommandList'].length != 0) {
doctorsList.clear(); doctorsList.clear();
res['SearchDoctorsByTime_IsVoiceCommandList'].forEach((v1) {
res['DoctorList'].forEach((v) { v1['DoctorList'].forEach((v) {
doctorsList.add(new DoctorList.fromJson(v)); doctorsList.add(new DoctorList.fromJson(v));
arr.add(new DoctorList.fromJson(v).projectName); arr.add(new DoctorList.fromJson(v).projectName);
arrDistance.add(new DoctorList.fromJson(v) arrDistance.add(new DoctorList.fromJson(v)
.projectDistanceInKiloMeters .projectDistanceInKiloMeters
.toString()); .toString());
}); });
if (res['DoctorList'].length == 1) { });
if (doctorsList.length == 1) {
getDoctorProfile( getDoctorProfile(
projectId, clinicId, doctorId[0], context, doctorsList); projectId, clinicId, doctorId[0], context, doctorsList);

Loading…
Cancel
Save