clinic search

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

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

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

Loading…
Cancel
Save