|
|
|
|
@ -206,12 +206,13 @@ class _SearchBot extends State<BottomBarSearch> {
|
|
|
|
|
if (result['ProjectId'] != 0 &&
|
|
|
|
|
result['ClinicId'] != 0 &&
|
|
|
|
|
result['DoctorId'] != 0) {
|
|
|
|
|
var name = result['DoctorName'].replaceAll('دكتور', '');
|
|
|
|
|
getDoctorsList(
|
|
|
|
|
result['ProjectId'],
|
|
|
|
|
result['ClinicId'],
|
|
|
|
|
context,
|
|
|
|
|
doctorId: result['DoctorId'],
|
|
|
|
|
doctorName: result['DoctorName'],
|
|
|
|
|
doctorName: name.trim(),
|
|
|
|
|
);
|
|
|
|
|
} else if (result['ProjectId'] != 0 &&
|
|
|
|
|
result['ClinicId'] != 0 &&
|
|
|
|
|
@ -232,12 +233,13 @@ class _SearchBot extends State<BottomBarSearch> {
|
|
|
|
|
} else if (result['ProjectId'] == 0 &&
|
|
|
|
|
result['ClinicId'] != 0 &&
|
|
|
|
|
result['DoctorId'] != 0) {
|
|
|
|
|
var name = result['DoctorName'].replaceAll('دكتور', '');
|
|
|
|
|
getDoctorsList(
|
|
|
|
|
result['ProjectId'],
|
|
|
|
|
result['ClinicId'],
|
|
|
|
|
context,
|
|
|
|
|
doctorId: result['DoctorId'],
|
|
|
|
|
doctorName: result['DoctorName'],
|
|
|
|
|
doctorName: name.trim(),
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
@ -304,8 +306,7 @@ class _SearchBot extends State<BottomBarSearch> {
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
}).showProgressBar(
|
|
|
|
|
text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDoctorsList(projectId, clinicId, context, {doctorId, doctorName}) {
|
|
|
|
|
|