|
|
|
@ -158,6 +158,9 @@ export class WorkListMainItgComponent implements OnInit {
|
|
|
|
if (actionName == "Answer") {
|
|
|
|
if (actionName == "Answer") {
|
|
|
|
return "../assets/imgs/mohemm-action/info.png"
|
|
|
|
return "../assets/imgs/mohemm-action/info.png"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (actionName == "ReportGenerated") {
|
|
|
|
|
|
|
|
return "../assets/imgs/mohemm-action/info.png"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public segmentChangedClick(event: any) {
|
|
|
|
public segmentChangedClick(event: any) {
|
|
|
|
@ -400,6 +403,31 @@ export class WorkListMainItgComponent implements OnInit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (action == 7) { //grant
|
|
|
|
|
|
|
|
url = WorkListMainItgComponent.GRANT;
|
|
|
|
|
|
|
|
if (this.grantRequest) {
|
|
|
|
|
|
|
|
request.AdditionalFields = this.grantRequest;
|
|
|
|
|
|
|
|
this.workListService.getITGActionRequest(request, url)
|
|
|
|
|
|
|
|
.subscribe((result: any) => {
|
|
|
|
|
|
|
|
if (result.MessageStatus != 1) {
|
|
|
|
|
|
|
|
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (result.MessageStatus == 1) {
|
|
|
|
|
|
|
|
this.messageSuccess = true;
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.messageSuccess = false;
|
|
|
|
|
|
|
|
this.common.sharedService.setSharedData(true, 'loadWorkList');
|
|
|
|
|
|
|
|
// this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
|
|
|
|
|
|
|
|
this.common.sharedService.setSharedData(true, 'loadWorkList');
|
|
|
|
|
|
|
|
this.confirmMsg(6);
|
|
|
|
|
|
|
|
this.skip();
|
|
|
|
|
|
|
|
}, 2000);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.common.presentAlert(this.ts.trPK('worklist', 'empty-comment'));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, this.ts.trPK('general', 'ok'),
|
|
|
|
}, this.ts.trPK('general', 'ok'),
|
|
|
|
() => {
|
|
|
|
() => {
|
|
|
|
@ -462,7 +490,9 @@ export class WorkListMainItgComponent implements OnInit {
|
|
|
|
if (this.actionSelected === 'RequestInformation') {
|
|
|
|
if (this.actionSelected === 'RequestInformation') {
|
|
|
|
this.presentModal(3);
|
|
|
|
this.presentModal(3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.actionSelected === 'ReportGenerated') {
|
|
|
|
|
|
|
|
this.actionService(7, this.grantRequest);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|