applied dental change in SearchByClinic

merge-update-with-lab-changes
haroon amjad 6 years ago
parent d4d333ef43
commit 0628aef62a

@ -55,22 +55,24 @@ class BaseAppClient {
body['DeviceTypeID'] = DeviceTypeID; body['DeviceTypeID'] = DeviceTypeID;
body['PatientType'] = body.containsKey('PatientType') if(!body.containsKey('IsPublicRequest')) {
? body['PatientType'] != null ? body['PatientType'] : PATIENT_TYPE body['PatientType'] = body.containsKey('PatientType')
: PATIENT_TYPE; ? body['PatientType'] != null ? body['PatientType'] : PATIENT_TYPE
: PATIENT_TYPE;
body['PatientTypeID'] = body.containsKey('PatientTypeID') body['PatientTypeID'] = body.containsKey('PatientTypeID')
? body['PatientTypeID'] != null ? body['PatientTypeID'] != null
? body['PatientTypeID'] ? body['PatientTypeID']
: PATIENT_TYPE_ID : PATIENT_TYPE_ID
: PATIENT_TYPE_ID; : PATIENT_TYPE_ID;
if (user != null) { if (user != null) {
body['TokenID'] = token; body['TokenID'] = token;
body['PatientID'] = body['PatientID'] =
body['PatientID'] != null ? body['PatientID'] : user['PatientID']; body['PatientID'] != null ? body['PatientID'] : user['PatientID'];
body['PatientOutSA'] = user['OutSA']; body['PatientOutSA'] = user['OutSA'];
body['SessionID'] = getSessionId(token); body['SessionID'] = getSessionId(token);
}
} }
print("URL : $url"); print("URL : $url");

@ -223,6 +223,7 @@ class _SearchByClinicState extends State<SearchByClinic> {
} }
}).catchError((err) { }).catchError((err) {
print(err); print(err);
AppToast.showErrorToast(message: err);
}).showProgressBar( }).showProgressBar(
text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6)); text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6));
} }

@ -148,7 +148,8 @@ class ClinicListService extends BaseService {
"isDentalAllowedBackend": true, "isDentalAllowedBackend": true,
"Latitude": lat.toString(), "Latitude": lat.toString(),
"Longitude": long.toString(), "Longitude": long.toString(),
"DeviceTypeID": 1 "DeviceTypeID": req.DeviceTypeID,
"IsPublicRequest" : true
}; };
dynamic localRes; dynamic localRes;

Loading…
Cancel
Save