You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
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',
|
|
templateUrl: './annual-health-checkup.component.html',
|
|
styleUrls: ['./annual-health-checkup.component.scss']
|
|
})
|
|
export class AnnualHealthCheckupComponent implements OnInit {
|
|
horizontalPosition: MatSnackBarHorizontalPosition = 'center';
|
|
verticalPosition: MatSnackBarVerticalPosition = 'bottom';
|
|
|
|
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']);
|
|
}else{
|
|
this.router.navigate(['scheduleAppointment']);
|
|
}
|
|
|
|
}
|
|
|
|
}
|