fixing ReportGenerated in itg work list

Fatima-Q2-June
enadhilal 5 years ago
parent 3080d0bb74
commit 46914e104d

@ -158,6 +158,9 @@ export class WorkListMainItgComponent implements OnInit {
if (actionName == "Answer") {
return "../assets/imgs/mohemm-action/info.png"
}
if (actionName == "ReportGenerated") {
return "../assets/imgs/mohemm-action/info.png"
}
}
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'),
() => {
@ -462,7 +490,9 @@ export class WorkListMainItgComponent implements OnInit {
if (this.actionSelected === 'RequestInformation') {
this.presentModal(3);
}
if (this.actionSelected === 'ReportGenerated') {
this.actionService(7, this.grantRequest);
}
}

Loading…
Cancel
Save