From 7f68976c8b8ecb7eb71711e89475102bd8a70311 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 28 Feb 2022 14:56:31 +0300 Subject: [PATCH] fixed pr --- .../worklist-main-pr/worklist-main-pr.component.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Mohem/src/app/notification/worklist-main-pr/worklist-main-pr.component.ts b/Mohem/src/app/notification/worklist-main-pr/worklist-main-pr.component.ts index 83f68c84..f46376b1 100644 --- a/Mohem/src/app/notification/worklist-main-pr/worklist-main-pr.component.ts +++ b/Mohem/src/app/notification/worklist-main-pr/worklist-main-pr.component.ts @@ -307,12 +307,12 @@ export class WorklistMainPRComponent implements OnInit { result.GetAbsenceCollectionNotificationBodyList; } } else if (Type == 'PR') { - if (result.GetPrNotificationBodyList) { + if (result.SFH_GetPrNotificationBodyList) { console.log('PR'); - this.pInformation = result.GetPrNotificationBodyList.P_INFORMATION; + this.pInformation = result.SFH_GetPrNotificationBodyList.P_INFORMATION; - this.PRHeader = result.GetPrNotificationBodyList.PRHeader; - this.PRLines = result.GetPrNotificationBodyList.PRLines; + this.PRHeader = result.SFH_GetPrNotificationBodyList.PRHeader; + this.PRLines = result.SFH_GetPrNotificationBodyList.PRLines; for (var i = 0; i < this.PRHeader.length; i++) { if (this.PRHeader[i].HDR_ATTRIBUTE_NAME === 'Requisition Total') { this.totalH = this.PRHeader[i].HDR_ATTRIBUTE_NAME; @@ -329,7 +329,7 @@ export class WorklistMainPRComponent implements OnInit { // HDR_ATTRIBUTE_VALUE } this.notificationBodyRes = - result.GetPrNotificationBodyList; + result.SFH_GetPrNotificationBodyList; } } } @@ -957,11 +957,11 @@ export class WorklistMainPRComponent implements OnInit { this.worklistMainService.getPRNotificationBody(this.WorkListBodyObj). subscribe((result: any) => { if (this.common.validResponse(result)) { - if (result.GetPrNotificationBodyList != undefined) { + if (result.SFH_GetPrNotificationBodyList != undefined) { this.P_PAGE_NUM++; this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM; - (result.GetPrNotificationBodyList).forEach(element => { + (result.SFH_GetPrNotificationBodyList).forEach(element => { if (element.ROW_NUM == element.NO_OF_ROWS) { this.IsReachEnd = true; } else {