|
|
|
@ -55,7 +55,9 @@ export class HomeComponent implements OnInit {
|
|
|
|
public absService: AbsenceListService,
|
|
|
|
public absService: AbsenceListService,
|
|
|
|
public accrualService: AccrualService,
|
|
|
|
public accrualService: AccrualService,
|
|
|
|
public authService: AuthenticationService
|
|
|
|
public authService: AuthenticationService
|
|
|
|
) {}
|
|
|
|
) {
|
|
|
|
|
|
|
|
// this.userData =this.common.sharedService.getSharedData(AuthenticatedUser.SHARED_DATA,false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
ngOnInit() {
|
|
|
|
|
|
|
|
|
|
|
|
@ -66,8 +68,8 @@ export class HomeComponent implements OnInit {
|
|
|
|
private getUserDetails(){
|
|
|
|
private getUserDetails(){
|
|
|
|
this.authService.loadAuthenticatedUser().subscribe((user: AuthenticatedUser) => {
|
|
|
|
this.authService.loadAuthenticatedUser().subscribe((user: AuthenticatedUser) => {
|
|
|
|
if (user) {
|
|
|
|
if (user) {
|
|
|
|
this.emp_no=user.EMPLOYEE_NUMBER;
|
|
|
|
// this.emp_no=user.EMPLOYEE_NUMBER;
|
|
|
|
this.getAccrualBalance();
|
|
|
|
// this.getAccrualBalance();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@ -236,7 +238,7 @@ createAbsence() {
|
|
|
|
let todayDate = month + '/' + day + '/' + year;
|
|
|
|
let todayDate = month + '/' + day + '/' + year;
|
|
|
|
let effectiveDate = todayDate;
|
|
|
|
let effectiveDate = todayDate;
|
|
|
|
const request = {
|
|
|
|
const request = {
|
|
|
|
P_SELECTED_EMPLOYEE_NUMBER: this.emp_no,
|
|
|
|
P_SELECTED_EMPLOYEE_NUMBER: this.selEmp,
|
|
|
|
P_EFFECTIVE_DATE: effectiveDate
|
|
|
|
P_EFFECTIVE_DATE: effectiveDate
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|