diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 9b4dc89..7d414b6 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -59,10 +59,20 @@ const routes: Routes = [
loadChildren: () => import('./screens/consultation-screen/consultation-screen.module').then(m => m.ConsultationScreenComponentModule),
canActivate: [AuthGuard]
},
+ {
+ path: 'consultation-screen/:consultationId',
+ loadChildren: () => import('./screens/consultation-screen/consultation-screen.module').then(m => m.ConsultationScreenComponentModule),
+ canActivate: [AuthGuard]
+ },
{
path: 'medical-review-screen',
loadChildren: () => import('./screens/medical-review-screen/medical-review-screen.module').then(m => m.MedicalReviewScreenModule),
canActivate: [AuthGuard]
+ },
+ {
+ path: 'medical-review-screen/:mbId',
+ loadChildren: () => import('./screens/medical-review-screen/medical-review-screen.module').then(m => m.MedicalReviewScreenModule),
+ canActivate: [AuthGuard]
}
]
},
diff --git a/src/app/classes/notificationtype-enum.ts b/src/app/classes/notificationtype-enum.ts
index 270207c..d128e67 100644
--- a/src/app/classes/notificationtype-enum.ts
+++ b/src/app/classes/notificationtype-enum.ts
@@ -1,7 +1,7 @@
export enum NotificationTypeEnum{
- BOOKING = ('BOOKING'),
- CONSULTATION = ("CONSULTATION"),
- FORM = ("FORM"),
- GENERAL = ("GENERAL"),
- MEDICAL_BOARD = ("MEDICAL BOARD")
+ GENERAL = "GENERAL",
+ BOOKING = "BOOKING",
+ CONSULTATION = "CONSULTATION",
+ FORM = "FORM",
+ MEDICAL_BOARD = "MEDICAL_BOARD"
}
\ No newline at end of file
diff --git a/src/app/layout/app-topbar/app-topbar.component.html b/src/app/layout/app-topbar/app-topbar.component.html
index e6c213e..e90d27e 100644
--- a/src/app/layout/app-topbar/app-topbar.component.html
+++ b/src/app/layout/app-topbar/app-topbar.component.html
@@ -85,7 +85,7 @@
{{notification.title}}
-
{{notification.message}}
+
{{notification.message}}
{{notification.notificationDate | date:'dd/MM/yyyy HH:mm'}}
diff --git a/src/app/layout/app-topbar/app-topbar.component.ts b/src/app/layout/app-topbar/app-topbar.component.ts
index 856a986..369b06f 100644
--- a/src/app/layout/app-topbar/app-topbar.component.ts
+++ b/src/app/layout/app-topbar/app-topbar.component.ts
@@ -108,13 +108,13 @@ export class AppTopbarComponent implements OnInit {
}
toDisable() {
+
return document.getElementById('msg').innerHTML.includes('...')
}
deleteNotification(notification) {
this.notificationService.deleteNotification(notification.notificationId).subscribe(
response => {
- this.messageService.add({ severity: 'success', summary: 'Service Message', detail: 'Notification Deleted' });
}, error => {
console.error(error)
}
@@ -149,10 +149,11 @@ export class AppTopbarComponent implements OnInit {
}
}
if (notification.notificationTypeEnum === NotificationTypeEnum.MEDICAL_BOARD) {
- url = url + "/medical-review-screen"
+ url = url + "/medical-review-screen"
if (notification.dynamicId !== undefined) {
url = url + "/" + notification.dynamicId
}
+
}
this.router.navigate([url])
diff --git a/src/app/screens/booking-management-screen/booking-management-screen.component.html b/src/app/screens/booking-management-screen/booking-management-screen.component.html
index dbaf7cf..58e8bef 100644
--- a/src/app/screens/booking-management-screen/booking-management-screen.component.html
+++ b/src/app/screens/booking-management-screen/booking-management-screen.component.html
@@ -147,10 +147,11 @@
Consultation type
diff --git a/src/app/screens/consultation-screen/consultation-screen.component.ts b/src/app/screens/consultation-screen/consultation-screen.component.ts
index 82cd539..e873fd8 100644
--- a/src/app/screens/consultation-screen/consultation-screen.component.ts
+++ b/src/app/screens/consultation-screen/consultation-screen.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { ActivatedRoute } from '@angular/router';
import { ConfirmationService, Message, MessageService } from 'primeng/api';
import { Consultation } from 'src/app/classes/consultation/consultation';
import { BreadcrumbService } from 'src/app/services/breadcrum.service';
@@ -14,20 +15,36 @@ import { ConsultationService } from 'src/app/services/consultation/consultation.
export class ConsultationScreenComponent implements OnInit {
myConsultations: Consultation[] = []
selectedConsultation: Consultation
+ passedConsultationId: number
isSelected: boolean
queueNumber: number
- constructor(private breadcrumbService: BreadcrumbService, private consultationService: ConsultationService) {
+ constructor(private breadcrumbService: BreadcrumbService, private activatedRoute: ActivatedRoute, private consultationService: ConsultationService) {
this.breadcrumbService.setItems([
{ label: 'Manage Consultation' }
])
}
ngOnInit() {
+ let tempString = this.activatedRoute.snapshot.paramMap.get('consultationId')
this.consultationService.retrieveServicemanConsultations().subscribe(
response => {
(async () => {
this.myConsultations = response.consultations
+ if (tempString !== '') {
+ this.passedConsultationId = parseInt(tempString)
+ for (var index = 0; index < this.myConsultations.length; index++) {
+ if (this.myConsultations[index].consultationId === this.passedConsultationId) {
+ this.selectedConsultation = this.myConsultations[index];
+ let a = ''
+ this.onRowSelect(a)
+ break;
+ }
+ }
+ }
+ else {
+ this.isSelected = false
+ }
})();
}, error => {
console.error(error)
diff --git a/src/app/screens/general-eforms-screen/general-eforms-screen.component.html b/src/app/screens/general-eforms-screen/general-eforms-screen.component.html
index ea1fc1a..5c13bce 100644
--- a/src/app/screens/general-eforms-screen/general-eforms-screen.component.html
+++ b/src/app/screens/general-eforms-screen/general-eforms-screen.component.html
@@ -27,7 +27,6 @@
style="float:right;">
-
- Home Page
+ Home Page
-
-
-
-
-
- {{unsubmittedForms.length}} unsubmitted forms
-
-
-
-
-
-
- You are required to submit these forms before your consultation!
-
-
-
-
-
- Form Name |
- Consultation Purpose |
- Due Date |
-
-
-
-
- {{formInstance.formTemplateMapping.formTemplateName}}
- |
- {{formInstance.booking.consultationPurpose.consultationPurposeName}} |
- {{formInstance.booking.bookingSlot.startDateTime | date:'dd/MM/yyyy HH:mm'}} |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Upcoming Booking
-
-
-
-
-
-
-
-
-
Consultation Purpose
-
{{nextBooking.consultationPurpose.consultationPurposeName}}
-
-
-
Venue
-
{{nextBooking.bookingSlot.medicalCentre.name}}
-
-
-
Date
-
{{nextBooking.bookingSlot.startDateTime | date:'dd/MM/yyyy HH:mm'}}
-
-
-
-
-
-
-
Upcoming Booking
-
-
-
-
You have no upcoming booking
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Upcoming Medical Review
+
+
+
+
+
+
+
+
+
Date
+
{{upcomingMedicalBoard.scheduledStartDate | date:'dd/MM/yyyy' }}
+
+
+
Time
+
{{upcomingMedicalBoard.scheduledStartDate | date:'HH:mm' }}
+
+
+
Assigned Chairman
+
Dr. {{upcomingMedicalBoard.chairman}}
+
+
+
+
+
+
+
Upcoming Medical Review
+
+
+
+
You have no upcoming medical Review
+
+
+
+
+
+
+
+
+
+
+
+ {{unsubmittedForms.length}}
+ unsubmitted forms
+
+
+
+
+
+
+ You are required to submit these forms before your consultation!
+
+
+
+
+
+ Form Name |
+ Consultation Purpose |
+ Due Date |
+
+
+
+
+ {{formInstance.formTemplateMapping.formTemplateName}}
+ |
+ {{formInstance.booking.consultationPurpose.consultationPurposeName}} |
+ {{formInstance.booking.bookingSlot.startDateTime | date:'dd/MM/yyyy HH:mm'}} |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Upcoming Booking
+
+
+
+
+
+
+
+
+
Consultation Purpose
+
{{nextBooking.consultationPurpose.consultationPurposeName}}
+
+
+
Venue
+
{{nextBooking.bookingSlot.medicalCentre.name}}
+
+
+
Date
+
{{nextBooking.bookingSlot.startDateTime | date:'dd/MM/yyyy HH:mm'}}
+
+
+
+
+
+
+
Upcoming Booking
+
+
+
+
You have no upcoming booking
+
+
+
+
+
+
-