|
|
|
|
@ -497,16 +497,16 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
checkRequestType(index) {
|
|
|
|
|
if (this.notificationArray[index].REQUEST_TYPE === 'PO') {
|
|
|
|
|
this.intializeNotificationDetail();
|
|
|
|
|
} else
|
|
|
|
|
if (this.notificationArray[index].REQUEST_TYPE === 'PR') {
|
|
|
|
|
this.common.openWorklistMainPOPage();
|
|
|
|
|
} else if (this.notificationArray[index].REQUEST_TYPE === 'PR') {
|
|
|
|
|
this.common.openWorklistMainPRPage();
|
|
|
|
|
} else
|
|
|
|
|
if (this.notificationArray[index].REQUEST_TYPE === 'MO') {
|
|
|
|
|
} else if (this.notificationArray[index].REQUEST_TYPE === 'MO') {
|
|
|
|
|
this.common.openWorklistMainMRPage();
|
|
|
|
|
} else {
|
|
|
|
|
} else if (this.notificationArray[index].REQUEST_TYPE === 'ITEM_CREATION') {
|
|
|
|
|
this.intializeNotificationDetail();
|
|
|
|
|
} else {
|
|
|
|
|
this.common.openWorklistMainPage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
actionButton(action) {
|
|
|
|
|
@ -544,8 +544,8 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
ButtonAction == "APPROVE" ||
|
|
|
|
|
ButtonAction == "REJECT" ||
|
|
|
|
|
ButtonAction == "APPROVED" ||
|
|
|
|
|
ButtonAction == "REJECTED" ||
|
|
|
|
|
ButtonAction == "DEL" ||
|
|
|
|
|
ButtonAction == "CLOSE"
|
|
|
|
|
) {
|
|
|
|
|
@ -560,10 +560,10 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
|
// this.WorkListActionObj,
|
|
|
|
|
// WorklistMainPRComponent.PASS_NOTIFICATION_INFO
|
|
|
|
|
// );
|
|
|
|
|
if (ButtonAction == "APPROVE") {
|
|
|
|
|
if (ButtonAction == "APPROVED") {
|
|
|
|
|
this.confirmMsg = this.ts.trPK('worklistMain', 'approveMsg')
|
|
|
|
|
}
|
|
|
|
|
else if (ButtonAction == "REJECT") {
|
|
|
|
|
else if (ButtonAction == "REJECTED") {
|
|
|
|
|
this.confirmMsg = this.ts.trPK('worklistMain', 'rejectMsg')
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -653,7 +653,8 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
|
ButtonAction == "TRANSFER" ||
|
|
|
|
|
ButtonAction == "TRANSFER_INFO" ||
|
|
|
|
|
ButtonAction == "APPROVE_AND_FORWARD" ||
|
|
|
|
|
ButtonAction == "FORWARD"
|
|
|
|
|
ButtonAction == "FORWARD" ||
|
|
|
|
|
ButtonAction == "RETURNED"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|