|
|
|
|
@ -73,11 +73,11 @@ export class HomePage implements OnInit {
|
|
|
|
|
public intervalCountdown: any;
|
|
|
|
|
public showLoader = true;
|
|
|
|
|
public statsButtons = [
|
|
|
|
|
{
|
|
|
|
|
title: this.ts.trPK('attendance-tracking', 'title'),
|
|
|
|
|
link: '0',
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: this.ts.trPK('attendance-tracking', 'title'),
|
|
|
|
|
// link: '0',
|
|
|
|
|
// show: true
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: this.ts.trPK('home', 'worklist'),
|
|
|
|
|
statsValue: 0,
|
|
|
|
|
@ -85,13 +85,13 @@ export class HomePage implements OnInit {
|
|
|
|
|
link: '1',
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: this.ts.trPK('home', 'missing-swipes'),
|
|
|
|
|
statsValue: 0,
|
|
|
|
|
icon: 'assets/icon/new-design/missing_swipe.png',
|
|
|
|
|
link: '2',
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: this.ts.trPK('home', 'missing-swipes'),
|
|
|
|
|
// statsValue: 0,
|
|
|
|
|
// icon: 'assets/icon/new-design/missing_swipe.png',
|
|
|
|
|
// link: '2',
|
|
|
|
|
// show: true
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: this.ts.trPK('home', 'leave-balance'),
|
|
|
|
|
statsValue: 0,
|
|
|
|
|
@ -380,11 +380,11 @@ export class HomePage implements OnInit {
|
|
|
|
|
this.openNotificationsDashbored();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.showOpenMissingSwipes();
|
|
|
|
|
this.showAttendanceTracking();
|
|
|
|
|
var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false);
|
|
|
|
|
if (!accrualBalance)
|
|
|
|
|
this.getAccrualBalance();
|
|
|
|
|
//this.showOpenMissingSwipes();
|
|
|
|
|
//this.showAttendanceTracking();
|
|
|
|
|
//var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false);
|
|
|
|
|
// if (!accrualBalance)
|
|
|
|
|
// this.getAccrualBalance();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Vacation_Rule() {
|
|
|
|
|
@ -665,12 +665,14 @@ export class HomePage implements OnInit {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
const key = 'P_OPEN_NTF_NUMBER';
|
|
|
|
|
this.countAllNotification = result[key];
|
|
|
|
|
this.ITGCountAllNotification();
|
|
|
|
|
//this.ITGCountAllNotification();
|
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
|
result,
|
|
|
|
|
'worklistNotifications'
|
|
|
|
|
);
|
|
|
|
|
this.common.setFilterValues(result['GetOpenNotificationsList']);
|
|
|
|
|
this.showLoader = false;
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.showLoader = false;
|
|
|
|
|
this.common.stopLoading();
|
|
|
|
|
@ -712,10 +714,10 @@ export class HomePage implements OnInit {
|
|
|
|
|
const countResult = result.Mohemm_ITG_Pending_Task_ResponseItem;
|
|
|
|
|
const totalCount = countResult.escalation + countResult.waitingToClose + countResult.waitingForAcceptance + countResult.extendTATRequest;
|
|
|
|
|
this.common.filterKeys['COC'] = totalCount;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.statsButtons[1].statsValue = Math.floor(this.statsButtons[1].statsValue + totalCount);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.common.sharedService.setSharedData(this.statsButtons[1].statsValue, 'total-count');
|
|
|
|
|
|
|
|
|
|
this.showLoader = false;
|
|
|
|
|
|