|
|
|
|
@ -161,44 +161,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);
|
|
|
|
|
|