|
|
@ -1,5 +1,7 @@ |
|
|
|
import { Component, OnInit } from '@angular/core'; |
|
|
|
import { Router } from '@angular/router'; |
|
|
|
import {MatSnackBar, MatSnackBarHorizontalPosition, |
|
|
|
MatSnackBarVerticalPosition,} from '@angular/material/snack-bar'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'app-annual-health-checkup', |
|
|
@ -7,17 +9,27 @@ import { Router } from '@angular/router'; |
|
|
|
styleUrls: ['./annual-health-checkup.component.scss'] |
|
|
|
}) |
|
|
|
export class AnnualHealthCheckupComponent implements OnInit { |
|
|
|
horizontalPosition: MatSnackBarHorizontalPosition = 'center'; |
|
|
|
verticalPosition: MatSnackBarVerticalPosition = 'bottom'; |
|
|
|
|
|
|
|
constructor(private router:Router) { } |
|
|
|
constructor(private router:Router, private _snackBar: MatSnackBar) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
this._snackBar.open('Employees who have attained the age of 40 years by 1st April 2022 will be covered under the Annual Health Check-up.', '',{ |
|
|
|
horizontalPosition: this.horizontalPosition, |
|
|
|
verticalPosition: this.verticalPosition, |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
selectedItem(item:string):void{ |
|
|
|
this._snackBar.dismiss(); |
|
|
|
if(item === 'generateLetter'){ |
|
|
|
this.router.navigate(['generateLetter']) |
|
|
|
this.router.navigate(['generateLetter']); |
|
|
|
}else{ |
|
|
|
this.router.navigate(['scheduleAppointment']) |
|
|
|
this.router.navigate(['scheduleAppointment']); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|