|
|
|
|
@ -366,6 +366,7 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
|
setState(() {
|
|
|
|
|
dropdownValue = null;
|
|
|
|
|
selectedHospital = null;
|
|
|
|
|
dropdownTitle = "";
|
|
|
|
|
clinicIds = List.empty();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
@ -406,7 +407,7 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
|
_patientDoctorAppointmentListHospital
|
|
|
|
|
.where(
|
|
|
|
|
(elementClinic) =>
|
|
|
|
|
elementClinic.filterName == element.projectName,
|
|
|
|
|
elementClinic.filterName == element.getProjectCompleteName(),
|
|
|
|
|
)
|
|
|
|
|
.toList();
|
|
|
|
|
|
|
|
|
|
@ -477,6 +478,7 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
|
setState(() {
|
|
|
|
|
dropdownValue = null;
|
|
|
|
|
selectedHospital = null;
|
|
|
|
|
dropdownTitle = "";
|
|
|
|
|
clinicIds = List.empty();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
@ -485,7 +487,7 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
|
getDoctorsList(BuildContext context) {
|
|
|
|
|
SearchInfo searchInfo = new SearchInfo();
|
|
|
|
|
if (dropdownValue != null) if (dropdownValue!.split("-")[0] == "17") {
|
|
|
|
|
searchInfo.ProjectID = int.parse(selectedHospital?.mainProjectID ?? "");
|
|
|
|
|
searchInfo.ProjectID = int.parse(selectedHospital?.mainProjectID.toString() ?? "");
|
|
|
|
|
searchInfo.ClinicID = int.parse(dropdownValue!.split("-")[0]);
|
|
|
|
|
searchInfo.hospital = selectedHospital;
|
|
|
|
|
searchInfo.clinic = selectedClinic;
|
|
|
|
|
|