Appointment implementation in Provider 1.0

mirza_development
Mirza.Shafique@cloudsolutions.com.sa 2 years ago
parent 4962ea2d8b
commit 511342adef

@ -44,6 +44,7 @@ class AppointmentsVM extends BaseVM {
required this.providerRepo, required this.providerRepo,
required this.commonRepo}); required this.commonRepo});
bool isUpcommingEnabled = true;
bool isFetchingLists = false; bool isFetchingLists = false;
int selectedBranch = 0; int selectedBranch = 0;
int selectedAppointmentIndex = 0; int selectedAppointmentIndex = 0;
@ -374,7 +375,7 @@ class AppointmentsVM extends BaseVM {
myFilteredAppointments = myAppointments; myFilteredAppointments = myAppointments;
myUpComingAppointments = myAppointments myUpComingAppointments = myAppointments
.where((element) => .where((element) =>
element.appointmentStatusEnum == AppointmentStatusEnum.booked) element.appointmentStatusEnum == AppointmentStatusEnum.confirmed)
.toList(); .toList();
setState(ViewState.idle); setState(ViewState.idle);
// applyFilterOnAppointmentsVM(appointmentStatusEnum: AppointmentStatusEnum.allAppointments); // applyFilterOnAppointmentsVM(appointmentStatusEnum: AppointmentStatusEnum.allAppointments);
@ -407,7 +408,7 @@ class AppointmentsVM extends BaseVM {
myFilteredAppointments = myAppointments; myFilteredAppointments = myAppointments;
myUpComingAppointments = myAppointments myUpComingAppointments = myAppointments
.where((element) => .where((element) =>
element.appointmentStatusEnum == AppointmentStatusEnum.booked) element.appointmentStatusEnum == AppointmentStatusEnum.booked)
.toList(); .toList();
applyFilterOnAppointmentsVM( applyFilterOnAppointmentsVM(
@ -456,7 +457,7 @@ class AppointmentsVM extends BaseVM {
} }
} }
Future<MResponse> createMergeAppointment(Map<String, dynamic> map, Future<MResponse> createMergeAppointment(Map<String, dynamic> map,
{bool isNeedToRebuild = false}) async { {bool isNeedToRebuild = false}) async {
if (isNeedToRebuild) setState(ViewState.busy); if (isNeedToRebuild) setState(ViewState.busy);
MResponse genericRespModel = MResponse genericRespModel =

Loading…
Cancel
Save