|
|
|
@ -206,17 +206,17 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
Navigator.of(context).push(
|
|
|
|
Navigator.of(context).push(
|
|
|
|
CustomPageRoute(
|
|
|
|
CustomPageRoute(
|
|
|
|
page: SelectLivecareClinicPage(onNegativeClicked: (){
|
|
|
|
page: SelectLivecareClinicPage(onNegativeClicked: (){
|
|
|
|
handleDoctorScreen();
|
|
|
|
handleDoctorScreen(clinic);
|
|
|
|
},),
|
|
|
|
},),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
handleDoctorScreen();
|
|
|
|
handleDoctorScreen(clinic);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ClinicID 17 & Clinic ID 253
|
|
|
|
//17 and 235
|
|
|
|
void handleDoctorScreen() {
|
|
|
|
void handleDoctorScreen(GetClinicsListResponseModel clinic) {
|
|
|
|
if (widget.isFromRegionFlow) {
|
|
|
|
if (widget.isFromRegionFlow) {
|
|
|
|
Navigator.of(context).push(
|
|
|
|
Navigator.of(context).push(
|
|
|
|
CustomPageRoute(
|
|
|
|
CustomPageRoute(
|
|
|
|
@ -224,7 +224,12 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
openRegionListBottomSheet(context, RegionBottomSheetType.FOR_CLINIIC);
|
|
|
|
var bottomSheetType = RegionBottomSheetType.FOR_CLINIIC;
|
|
|
|
|
|
|
|
print("the cliininc id is ${clinic.clinicID}");
|
|
|
|
|
|
|
|
if (clinic.clinicID == 17 || clinic.clinicID == 235) {
|
|
|
|
|
|
|
|
bottomSheetType = RegionBottomSheetType.REGION_FOR_DENTAL_AND_LASER;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
openRegionListBottomSheet(context, bottomSheetType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -253,7 +258,7 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
if (data.bottomSheetState == AppointmentViaRegionState.HOSPITAL_SELECTION) {
|
|
|
|
if (data.bottomSheetState == AppointmentViaRegionState.HOSPITAL_SELECTION) {
|
|
|
|
return HospitalBottomSheetBody();
|
|
|
|
return HospitalBottomSheetBody();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(data.bottomSheetState == AppointmentViaRegionState.DOCTOR_SELECTION){
|
|
|
|
if (data.bottomSheetState == AppointmentViaRegionState.DOCTOR_SELECTION) {
|
|
|
|
bookAppointmentsViewModel.setProjectID(regionalViewModel.selectedHospital?.patientDoctorAppointmentList?.first.projectID.toString());
|
|
|
|
bookAppointmentsViewModel.setProjectID(regionalViewModel.selectedHospital?.patientDoctorAppointmentList?.first.projectID.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
|