itg succssful msg

mekawy-issues
ashwaq 6 years ago
parent a2799675e3
commit 5bba4cb9eb

@ -225,10 +225,11 @@ export class WorkListMainItgComponent implements OnInit {
this.workListService.getITGActionRequest(request, url) this.workListService.getITGActionRequest(request, url)
.subscribe((result: any) => { .subscribe((result: any) => {
if (result.MessageStatus != 1) { if (result.MessageStatus != 1) {
this.common.presentAlert(result.Message); this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus == 1) { } else if (result.MessageStatus == 1) {
console.log("hello action 1"); console.log("hello action 1");
this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.confirmMsg(1) this.confirmMsg(1)
@ -243,9 +244,11 @@ export class WorkListMainItgComponent implements OnInit {
console.log("hello action 2"); console.log("hello action 2");
if (result.MessageStatus != 1) { if (result.MessageStatus != 1) {
this.common.presentAlert(result.Message); this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus == 1) { } else if (result.MessageStatus == 1) {
this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.confirmMsg(2) this.confirmMsg(2)
// this.common.openNotificationPage(); // this.common.openNotificationPage();
this.skip(); this.skip();
@ -268,6 +271,8 @@ export class WorkListMainItgComponent implements OnInit {
} }
if (result.MessageStatus == 1) { if (result.MessageStatus == 1) {
this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.confirmMsg(3) this.confirmMsg(3)
// this.common.openNotificationPage(); // this.common.openNotificationPage();
this.skip(); this.skip();
@ -285,6 +290,8 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg')); this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus == 1) { } else if (result.MessageStatus == 1) {
this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.confirmMsg(4) this.confirmMsg(4)
// this.common.openNotificationPage(); // this.common.openNotificationPage();
this.skip(); this.skip();
@ -303,6 +310,8 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg')); this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus == 1) { } else if (result.MessageStatus == 1) {
this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.confirmMsg(5) this.confirmMsg(5)
// this.common.openNotificationPage(); // this.common.openNotificationPage();
this.skip(); this.skip();
@ -321,9 +330,11 @@ export class WorkListMainItgComponent implements OnInit {
.subscribe((result: any) => { .subscribe((result: any) => {
console.log("hello action 6"); console.log("hello action 6");
if (result.MessageStatus != 1) { if (result.MessageStatus != 1) {
this.common.presentAlert(result.Message); this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus == 1) { } else if (result.MessageStatus == 1) {
this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.confirmMsg(6) this.confirmMsg(6)
// this.common.openNotificationPage(); // this.common.openNotificationPage();
this.skip(); this.skip();
@ -336,7 +347,10 @@ export class WorkListMainItgComponent implements OnInit {
} }
}, this.ts.trPK('general', 'ok'), }, this.ts.trPK('general', 'ok'),
() => { this.actionSelected = '' }, this.ts.trPK('general', 'cancel'), () => {
this.actionSelected = ''
},
this.ts.trPK('general', 'cancel'),
this.ts.trPK('vacation-rule', 'confirmation'), this.ts.trPK('vacation-rule', 'confirmation'),
this.confirmMsg(action)); this.confirmMsg(action));

Loading…
Cancel
Save