|
|
|
|
@ -262,7 +262,7 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
this.worklistMainService
|
|
|
|
|
.getPONotificationBody(notificationBodyObj)
|
|
|
|
|
.subscribe((result: PONotificatonBodyResponse) => {
|
|
|
|
|
// console.log(result.GetPoNotificationBodyList.POHeader[0].BUYER);
|
|
|
|
|
// console.log(result.SFH_GetPoNotificationBodyList.POHeader[0].BUYER);
|
|
|
|
|
this.handleWorkListBodyResult(result, "PO");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -309,11 +309,11 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else if (Type == "PO") {
|
|
|
|
|
if (result.GetPoNotificationBodyList) {
|
|
|
|
|
if (result.SFH_GetPoNotificationBodyList) {
|
|
|
|
|
// console.log("PO");
|
|
|
|
|
|
|
|
|
|
this.POHeader = result.GetPoNotificationBodyList.POHeader;
|
|
|
|
|
this.POLines = result.GetPoNotificationBodyList.POLines;
|
|
|
|
|
this.POHeader = result.SFH_GetPoNotificationBodyList.POHeader;
|
|
|
|
|
this.POLines = result.SFH_GetPoNotificationBodyList.POLines;
|
|
|
|
|
for (var i = 0; i < this.POHeader.length; i++) {
|
|
|
|
|
this.PO_NUMBER = this.POHeader[i].PO_NUMBER;
|
|
|
|
|
|
|
|
|
|
@ -332,7 +332,7 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
// HDR_ATTRIBUTE_VALUE
|
|
|
|
|
}
|
|
|
|
|
this.notificationBodyRes =
|
|
|
|
|
result.GetPoNotificationBodyList;
|
|
|
|
|
result.SFH_GetPoNotificationBodyList;
|
|
|
|
|
}
|
|
|
|
|
}//
|
|
|
|
|
}
|
|
|
|
|
@ -1032,10 +1032,10 @@ export class WorklistMainPoComponent implements OnInit {
|
|
|
|
|
this.worklistMainService.getPONotificationBody(this.WorkListBodyObj).
|
|
|
|
|
subscribe((result: any) => {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
if (result.GetPoNotificationBodyList != undefined) {
|
|
|
|
|
if (result.SFH_GetPoNotificationBodyList != undefined) {
|
|
|
|
|
this.P_PAGE_NUM++;
|
|
|
|
|
this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
(result.GetPoNotificationBodyList).forEach(element => {
|
|
|
|
|
(result.SFH_GetPoNotificationBodyList).forEach(element => {
|
|
|
|
|
if (element.ROW_NUM == element.NO_OF_ROWS) {
|
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
|
} else {
|
|
|
|
|
|