|
|
|
|
@ -256,7 +256,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
|
|
|
|
|
cancelAppointment(DoctorList docObject, AppoitmentAllHistoryResultList appo, BuildContext context) async {
|
|
|
|
|
ConfirmDialog.closeAlertDialog(context);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context, barrierDismissible: false);
|
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
|
bool isLiveCareSchedule = await this.sharedPref.getBool(IS_LIVECARE_APPOINTMENT);
|
|
|
|
|
service.cancelAppointment(appo, context, isReschedule: true).then((res) {
|
|
|
|
|
@ -326,7 +326,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
final timeSlot = DocAvailableAppointments.selectedAppoDateTime;
|
|
|
|
|
String logs = await sharedPref.getString('selectedLogSlots');
|
|
|
|
|
List<dynamic> decodedLogs = json.decode(logs);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context, barrierDismissible: false);
|
|
|
|
|
AppoitmentAllHistoryResultList appo;
|
|
|
|
|
widget.service
|
|
|
|
|
.insertAppointment(docObject.doctorID, docObject.clinicID, docObject.projectID, widget.selectedTime, widget.selectedDate, initialSlotDuration, projectViewModel.isArabic ? 1 : 2, context, null, null, null, projectViewModel)
|
|
|
|
|
@ -383,7 +383,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
final timeSlot = DocAvailableAppointments.selectedAppoDateTime;
|
|
|
|
|
widget.selectedDate = timeSlot.toUtc().add(Duration(hours: 3)).toString().split(" ")[0];
|
|
|
|
|
widget.selectedTime = timeSlot.toUtc().add(Duration(hours: 3)).toString().split(" ")[1].substring(0, 5);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context, barrierDismissible: false);
|
|
|
|
|
AppoitmentAllHistoryResultList appo;
|
|
|
|
|
widget.service.insertLiveCareScheduleAppointment(docObject.doctorID, docObject.clinicID, docObject.projectID, docObject.serviceID, widget.selectedTime, widget.selectedDate, projectViewModel.isArabic ? 1 : 2, context).then((res) {
|
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
|
@ -444,7 +444,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
getPatientShare(context, String appointmentNo, int clinicID, int projectID, DoctorList docObject) {
|
|
|
|
|
int languageID = projectViewModel.isArabic ? 1 : 2;
|
|
|
|
|
String errorMsg = "";
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context, barrierDismissible: false);
|
|
|
|
|
widget.service.getPatientShare(appointmentNo, clinicID, projectID, languageID, context).then((res) {
|
|
|
|
|
projectViewModel.selectedBodyPartList.clear();
|
|
|
|
|
projectViewModel.laserSelectionDuration = 0;
|
|
|
|
|
|