{{ts.trPK('userProfile','profile-details')}}
{{employee.PAYROLL_NAME}}
-{{jobName}}
diff --git a/Mohem/src/app/my-team/details/details.component.ts b/Mohem/src/app/my-team/details/details.component.ts index 5edff21e..db913aff 100644 --- a/Mohem/src/app/my-team/details/details.component.ts +++ b/Mohem/src/app/my-team/details/details.component.ts @@ -235,7 +235,10 @@ export class DetailsComponent implements OnInit { ngOnInit() { this.common.startLoading(); this.intializeMemberDetail(); - this.showAttendanceTracking(); + this.employee = this.common.sharedService.getSharedData(MyTeamService.EMPLOYEE_SHARED_DATA, false); + console.log(this.employee); + this.jobName = this.employee.JOB_NAME; + // this.showAttendanceTracking(); // tslint:disable-next-line: max-line-length this.currentMonthName = this.direction === 'en' ? this.common.getMonthName(this.monthIndex) : this.common.getMonthNameAr(this.monthIndex); } @@ -245,10 +248,11 @@ export class DetailsComponent implements OnInit { this.employee = this.common.sharedService.getSharedData(MyTeamService.EMPLOYEE_SHARED_DATA, false); console.log(this.employee); - let jobTitle = this.employee.POSITION_NAME.split('.'); - if (jobTitle && jobTitle.length > 1) { - this.jobName = jobTitle[0] + " " + jobTitle[1]; - } + this.jobName = this.employee.JOB_NAME; + // let jobTitle = this.employee.POSITION_NAME.split('.'); + // if (jobTitle && jobTitle.length > 1) { + // this.jobName = jobTitle[0] + " " + jobTitle[1]; + // } const request = { P_SELECTED_EMPLOYEE_NUMBER: this.employee.EMPLOYEE_NUMBER diff --git a/Mohem/src/app/my-team/home/home.component.html b/Mohem/src/app/my-team/home/home.component.html index 2280064d..fb9a73ad 100644 --- a/Mohem/src/app/my-team/home/home.component.html +++ b/Mohem/src/app/my-team/home/home.component.html @@ -133,7 +133,7 @@