|
|
|
|
@ -153,7 +153,7 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
}//ngOn
|
|
|
|
|
intializeNotificationDetail() {
|
|
|
|
|
if (this.messageSuccess) {
|
|
|
|
|
document.getElementById("notificationDynamicFields").innerHTML = "";
|
|
|
|
|
document.getElementById("notificationDynamicFieldsPO").innerHTML = "";
|
|
|
|
|
}
|
|
|
|
|
console.log("intializeNotificationDetail");
|
|
|
|
|
this.getPassNotificationDetails = this.common.sharedService.getSharedData(
|
|
|
|
|
@ -378,6 +378,11 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
public nextNotfification() {
|
|
|
|
|
//let itemExist = false;
|
|
|
|
|
if( document.getElementById("notificationDynamicFieldsPO") != null){
|
|
|
|
|
|
|
|
|
|
document.getElementById("notificationDynamicFieldsPO").innerHTML = "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
let itemNo = this.getPassNotificationDetails.ROW_NUM;
|
|
|
|
|
console.log(itemNo);
|
|
|
|
|
let index = this.notificationArray.findIndex(x => x.ROW_NUM === itemNo);
|
|
|
|
|
@ -429,14 +434,17 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
this.P_RESPOND_ATTRIBUTES_TBL.push(obj);
|
|
|
|
|
}
|
|
|
|
|
console.log("a"+ this.P_RESPOND_ATTRIBUTES_TBL);
|
|
|
|
|
|
|
|
|
|
let repUserName = this.selEmployeeID;
|
|
|
|
|
if (this.hideForwordEmployee && this.hideForwordEmployee.ATTRIBUTE_NAME) {
|
|
|
|
|
let obj: any = {};
|
|
|
|
|
repUserName = "";
|
|
|
|
|
obj.ATTRIBUTE_NAME = this.hideForwordEmployee.ATTRIBUTE_NAME;
|
|
|
|
|
obj.ATTRIBUTE_TEXT_VALUE = this.selEmployeeID;
|
|
|
|
|
this.P_RESPOND_ATTRIBUTES_TBL.push(obj);
|
|
|
|
|
}
|
|
|
|
|
// if (this.hideForwordEmployee && this.hideForwordEmployee.ATTRIBUTE_NAME) {
|
|
|
|
|
// let obj: any = {};
|
|
|
|
|
// repUserName = "";
|
|
|
|
|
// obj.ATTRIBUTE_NAME = this.hideForwordEmployee.ATTRIBUTE_NAME;
|
|
|
|
|
// obj.ATTRIBUTE_TEXT_VALUE = this.selEmployeeID;
|
|
|
|
|
// this.P_RESPOND_ATTRIBUTES_TBL.push(obj);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
ButtonAction == "APPROVE" ||
|
|
|
|
|
ButtonAction == "REJECT" ||
|
|
|
|
|
@ -447,6 +455,7 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
this.WorkListActionObj.P_ACTION_MODE = ButtonAction;
|
|
|
|
|
this.WorkListActionObj.P_COMMENTS = "";
|
|
|
|
|
this.WorkListActionObj.RespondAttributeList = this.P_RESPOND_ATTRIBUTES_TBL;
|
|
|
|
|
|
|
|
|
|
//sheardData
|
|
|
|
|
|
|
|
|
|
// this.common.sharedService.setSharedData(
|
|
|
|
|
@ -471,7 +480,7 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
this.common.confirmAlertDialogAction(
|
|
|
|
|
() => {
|
|
|
|
|
this.applyAction(this.WorkListActionObj);
|
|
|
|
|
// this.applyAction(this.WorkListActionObj);
|
|
|
|
|
}, this.ts.trPK('general', 'ok'),
|
|
|
|
|
() => { }, this.ts.trPK('general', 'cancel'),
|
|
|
|
|
this.ts.trPK('vacation-rule', 'confirmation'),
|
|
|
|
|
@ -536,6 +545,8 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
this.P_RESPOND_ATTRIBUTES_TBL,
|
|
|
|
|
WorklistMainPoComponent.PASS_RES_ATTR
|
|
|
|
|
);
|
|
|
|
|
console.log("c"+ this.P_RESPOND_ATTRIBUTES_TBL);
|
|
|
|
|
|
|
|
|
|
// this.common.openWorklistRollReplacement();
|
|
|
|
|
this.openRepRolModal();
|
|
|
|
|
} else if (
|
|
|
|
|
@ -639,6 +650,8 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getNotificationResAttr(notificationButtonsObj) {
|
|
|
|
|
console.log("getNotificationResAttr");
|
|
|
|
|
|
|
|
|
|
this.worklistMainService
|
|
|
|
|
.notificationResponseAttr(notificationButtonsObj)
|
|
|
|
|
.subscribe((result: NotificatonButtonResponse) => {
|
|
|
|
|
@ -673,10 +686,12 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
} // End handleWorkListButtonsResult
|
|
|
|
|
|
|
|
|
|
notificationDynamicFields(notificationAttr) {
|
|
|
|
|
const containerId = 'notificationDynamicFields';
|
|
|
|
|
const containerId = 'notificationDynamicFieldsPO';
|
|
|
|
|
for (let i = 0; i < notificationAttr.length; i++) {
|
|
|
|
|
if (notificationAttr[i].ATTRIBUTE_TYPE == "VARCHAR2") {
|
|
|
|
|
this.textArea = new TextAreaInput(notificationAttr[i].ATTRIBUTE_DISPLAY_NAME, notificationAttr[i].ATTRIBUTE_NAME, "", containerId, "", "", "");
|
|
|
|
|
console.log(this.textArea );
|
|
|
|
|
|
|
|
|
|
} else if (notificationAttr[i].ATTRIBUTE_TYPE == "ROLE") {
|
|
|
|
|
|
|
|
|
|
} else if (notificationAttr[i].ATTRIBUTE_TYPE == "DATE") {
|
|
|
|
|
|