URL and features disabled

MOE_DEV
Sultan Khan 4 years ago
parent 3afc649085
commit defa182fcc

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

@ -27,9 +27,9 @@ export class ConnectorService {
public static retryTimes = 0; public static retryTimes = 0;
public static timeOut = 180 * 1000; public static timeOut = 180 * 1000;
public static host = 'https://uat.hmgwebservices.com/'; // public static host = 'https://uat.hmgwebservices.com/';
// public static host = 'https://hmgwebservices.com/'; // public static host = 'https://hmgwebservices.com/';
public static host = 'http://10.201.204.124:5818/' //MOE
constructor(public httpClient: HttpClient, constructor(public httpClient: HttpClient,
public cs: CommonService, public cs: CommonService,
private events: Events, private events: Events,

@ -47,7 +47,7 @@
</ion-slide> </ion-slide>
</ion-slides> </ion-slides>
<ion-row class="attendance-module" *ngIf="i == 0"> <!-- <ion-row class="attendance-module" *ngIf="i == 0">
<ion-col [size]="8"> <ion-col [size]="8">
<h3>{{'home,monthly-attendance' | translate}}</h3> <h3>{{'home,monthly-attendance' | translate}}</h3>
<span>{{'home,monthly-time-sheet-view' | translate}}</span> <span>{{'home,monthly-time-sheet-view' | translate}}</span>
@ -58,10 +58,10 @@
<ion-col [size]="4"> <ion-col [size]="4">
<img src="assets/icon/new-design/attendance_button_icon.png"/> <img src="assets/icon/new-design/attendance_button_icon.png"/>
</ion-col> </ion-col>
</ion-row> </ion-row> -->
</ion-row> </ion-row>
<ion-row *ngIf="showStaticServices"> <!-- <ion-row *ngIf="showStaticServices">
<ion-col size="12"> <ion-col size="12">
<ion-label> {{'general,other-services' | translate}} </ion-label> <ion-label> {{'general,other-services' | translate}} </ion-label>
</ion-col> </ion-col>
@ -84,7 +84,7 @@
</ion-slides> </ion-slides>
</ion-row> </ion-row> -->
</ion-grid> </ion-grid>
</ion-content> </ion-content>

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

Loading…
Cancel
Save