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