commented unwanted services in sfh

enad-SFH
umasoodch 4 years ago
parent c258b238af
commit 24d95b13b7

@ -45,14 +45,14 @@
</ion-label>
</ion-item>
<ion-item (click)="openMyRequestPage()">
<!-- <ion-item (click)="openMyRequestPage()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 14px !important;" src="../assets/imgs/my_team_icon.png" item-left>
</ion-thumbnail>
<ion-label class="profile">
{{ts.trPK('userProfile','HR-Request')}}
</ion-label>
</ion-item>
</ion-item> -->
<!-- <ion-item (click)="openChangePassword()"> -->
@ -66,7 +66,7 @@
</ion-label>
</ion-item>
<ion-item (click)="openDigitalId()">
<!-- <ion-item (click)="openDigitalId()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 25px !important;" src="../assets/imgs/ID_ico_menu.png" item-left>
</ion-thumbnail>
@ -74,9 +74,9 @@
{{ts.trPK('general','digital-id')}}
<ion-badge class="start-badge main-badge" slot="end" color="danger">{{notBadge}}</ion-badge>
</ion-label>
</ion-item>
</ion-item> -->
<ion-item *ngIf='userInfo?.show_business' (click)="openBusinessCard()">
<!-- <ion-item *ngIf='userInfo?.show_business' (click)="openBusinessCard()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 25px !important;" src="../assets/imgs/business-card-design.png" item-left>
</ion-thumbnail>
@ -84,7 +84,7 @@
{{ts.trPK('general','business-card')}}
<ion-badge class="start-badge main-badge" slot="end" color="danger">{{notBadge}}</ion-badge>
</ion-label>
</ion-item>
</ion-item> -->
</ion-list>
@ -141,14 +141,14 @@
{{ts.trPK('myTeam','myTeam-header')}}
</ion-label>
</ion-item>
<ion-item (click)="openMyRequestPage()">
<!-- <ion-item (click)="openMyRequestPage()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 14px !important;" src="../assets/imgs/my_team_icon.png" item-left>
</ion-thumbnail>
<ion-label class="profile">
{{ts.trPK('userProfile','HR-Request')}}
</ion-label>
</ion-item>
</ion-item> -->
<ion-item (click)="openChangePassword()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 25px !important;" src="../assets/imgs/lock_icon.png" item-left>
@ -165,7 +165,7 @@
</button> -->
</ion-item>
<ion-item (click)="openDigitalId()">
<!-- <ion-item (click)="openDigitalId()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 25px !important;" src="../assets/imgs/ID_ico_menu.png" item-left>
</ion-thumbnail>
@ -173,9 +173,9 @@
{{ts.trPK('general','digital-id')}}
<ion-badge class="start-badge main-badge" slot="end" color="danger">{{notBadge}}</ion-badge>
</ion-label>
</ion-item>
</ion-item> -->
<ion-item *ngIf='userInfo?.show_business' (click)="openBusinessCard()">
<!-- <ion-item *ngIf='userInfo?.show_business' (click)="openBusinessCard()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 25px !important;" src="../assets/imgs/business-card-design.png" item-left>
</ion-thumbnail>
@ -183,7 +183,7 @@
{{ts.trPK('general','business-card')}}
<ion-badge class="start-badge main-badge" slot="end" color="danger">{{notBadge}}</ion-badge>
</ion-label>
</ion-item>
</ion-item> -->
<!-- <ion-item (click)="profile()">
<ion-thumbnail slot="start" class="menu-thumb">

@ -160,44 +160,44 @@ export class AppComponent implements OnInit {
this.User_name_Emp = user.EMPLOYEE_DISPLAY_NAME;
this.authService.checkAds({
EmployeeNumber: '',
ItgEnableAt: "After Service Submission", //After Service Submission
ItgServiceName: "Login"
}, () => { }, this.ts.trPK('general', 'ok')).subscribe(res => {
var result = JSON.parse(res.Mohemm_ITG_ResponseItem).result.data;
this.cs.sharedService.setSharedData(
result,
AuthenticationService.SERVEY_DATA
)
if (!CommonService.SKIP && result) {
if (result.notificationType == 'Survey') {
this.cs.navigateForward('/erm-channel/survey');
} else {
this.authService.adsDetails({
"ItgNotificationMasterId": result['notificationMasterId']
},
() => { }, this.ts.trPK('general', 'ok')
).subscribe((result) => {
var data = result.Mohemm_ITG_ResponseItem;
if (data) {
this.cs.sharedService.setSharedData(
JSON.parse(data),
AuthenticationService.ADS_DATA
);
this.cs.navigateForward('/erm-channel/home');
}
})
}
}
});
// this.authService.checkAds({
// EmployeeNumber: '',
// ItgEnableAt: "After Service Submission", //After Service Submission
// ItgServiceName: "Login"
// }, () => { }, this.ts.trPK('general', 'ok')).subscribe(res => {
// var result = JSON.parse(res.Mohemm_ITG_ResponseItem).result.data;
// this.cs.sharedService.setSharedData(
// result,
// AuthenticationService.SERVEY_DATA
// )
// if (!CommonService.SKIP && result) {
// if (result.notificationType == 'Survey') {
// this.cs.navigateForward('/erm-channel/survey');
// } else {
// this.authService.adsDetails({
// "ItgNotificationMasterId": result['notificationMasterId']
// },
// () => { }, this.ts.trPK('general', 'ok')
// ).subscribe((result) => {
// var data = result.Mohemm_ITG_ResponseItem;
// if (data) {
// this.cs.sharedService.setSharedData(
// JSON.parse(data),
// AuthenticationService.ADS_DATA
// );
// this.cs.navigateForward('/erm-channel/home');
// }
// })
// }
// }
// });
if (this.cs.getUpdateImage().status) {
this.user_image = this.sanitizer.bypassSecurityTrustUrl('data:image/png;base64,' + this.cs.getUpdateImage().img);

@ -58,7 +58,7 @@
</ion-row>
</ion-row>
<ion-row *ngIf="showStaticServices">
<!-- <ion-row *ngIf="showStaticServices">
<ion-col size="12">
<ion-label> {{'general,other-services' | translate}} </ion-label>
</ion-col>
@ -81,7 +81,7 @@
</ion-slides>
</ion-row>
</ion-row> -->
</ion-grid>
</ion-content>

@ -69,11 +69,6 @@ export class HomePage implements OnInit {
public isFakeLocationUsed = false;
public intervalCountdown: any;
public statsButtons = [
{
title: this.ts.trPK('attendance-tracking', 'title'),
link: '0',
show: true
},
{
title: this.ts.trPK('home', 'worklist'),
statsValue: 0,
@ -81,13 +76,6 @@ 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', 'leave-balance'),
statsValue: 0,
@ -304,8 +292,8 @@ export class HomePage implements OnInit {
for (const servicePrivilage of AuthenticationService.servicePrivilage) {
if (servicePrivilage.Previlege === false) {
if (servicePrivilage.ServiceName === 'accrualBalance') {
this.statsButtons[3].show = false;
this.statsButtons[4].show = false;
this.statsButtons[1].show = false;
this.statsButtons[2].show = false;
}
if (servicePrivilage.ServiceName === 'vacationRule') {
this.showVcationRule = false;
@ -316,8 +304,8 @@ export class HomePage implements OnInit {
// document.getElementById(servicePrivilage.ServiceName).style.filter =
// 'grayscale(1)';
} else {
this.statsButtons[3].show = true;
this.statsButtons[4].show = true;
this.statsButtons[1].show = true;
this.statsButtons[2].show = true;
this.showVcationRule = true;
}
}
@ -370,8 +358,8 @@ export class HomePage implements OnInit {
this.getMenu();
this.setServicesPrivilage();
this.openNotificationsDashbored();
this.showOpenMissingSwipes();
this.showAttendanceTracking();
// this.showOpenMissingSwipes();
// this.showAttendanceTracking();
this.getAccrualBalance();
}
@ -652,7 +640,8 @@ 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.statsButtons[0].statsValue = Math.floor(this.countAllNotification);
this.common.sharedService.setSharedData(
result,
'worklistNotifications'
@ -741,7 +730,7 @@ export class HomePage implements OnInit {
this.accrualBalancesList = result.GetAccrualBalancesList;
for (const accrualBalance of result.GetAccrualBalancesList) {
if (accrualBalance.ACCURAL_PLAN_NAME === 'HMG Annual Vacation Accrual Plan') {
this.statsButtons[3].statsValue = accrualBalance.ACCRUAL_NET_ENTITLEMENT === null ? 0 : Number(accrualBalance.ACCRUAL_NET_ENTITLEMENT.toFixed(2));
this.statsButtons[1].statsValue = accrualBalance.ACCRUAL_NET_ENTITLEMENT === null ? 0 : Number(accrualBalance.ACCRUAL_NET_ENTITLEMENT.toFixed(2));
this.common.sharedService.setSharedData(accrualBalance, 'leaveAccrualBalance');
this.common.sharedService.setSharedData(request, 'leaveAccrualBalanceDate');
this.common.sharedService.setSharedData(this.accrualBalancesList, 'tickitsbalance');
@ -749,7 +738,7 @@ export class HomePage implements OnInit {
totalTicketsLeft = totalTicketsLeft + accrualBalance.ACCRUAL_NET_ENTITLEMENT;
}
}
this.statsButtons[4].statsValue = Number(totalTicketsLeft.toFixed(2));
this.statsButtons[2].statsValue = Number(totalTicketsLeft.toFixed(2));
}
});
}

Loading…
Cancel
Save