MOHEMM-SFH-COLORS
umasoodch 4 years ago
parent f35327ff36
commit 7f68976c8b

@ -307,12 +307,12 @@ export class WorklistMainPRComponent implements OnInit {
result.GetAbsenceCollectionNotificationBodyList; result.GetAbsenceCollectionNotificationBodyList;
} }
} else if (Type == 'PR') { } else if (Type == 'PR') {
if (result.GetPrNotificationBodyList) { if (result.SFH_GetPrNotificationBodyList) {
console.log('PR'); console.log('PR');
this.pInformation = result.GetPrNotificationBodyList.P_INFORMATION; this.pInformation = result.SFH_GetPrNotificationBodyList.P_INFORMATION;
this.PRHeader = result.GetPrNotificationBodyList.PRHeader; this.PRHeader = result.SFH_GetPrNotificationBodyList.PRHeader;
this.PRLines = result.GetPrNotificationBodyList.PRLines; this.PRLines = result.SFH_GetPrNotificationBodyList.PRLines;
for (var i = 0; i < this.PRHeader.length; i++) { for (var i = 0; i < this.PRHeader.length; i++) {
if (this.PRHeader[i].HDR_ATTRIBUTE_NAME === 'Requisition Total') { if (this.PRHeader[i].HDR_ATTRIBUTE_NAME === 'Requisition Total') {
this.totalH = this.PRHeader[i].HDR_ATTRIBUTE_NAME; this.totalH = this.PRHeader[i].HDR_ATTRIBUTE_NAME;
@ -329,7 +329,7 @@ export class WorklistMainPRComponent implements OnInit {
// HDR_ATTRIBUTE_VALUE // HDR_ATTRIBUTE_VALUE
} }
this.notificationBodyRes = this.notificationBodyRes =
result.GetPrNotificationBodyList; result.SFH_GetPrNotificationBodyList;
} }
} }
} }
@ -957,11 +957,11 @@ export class WorklistMainPRComponent implements OnInit {
this.worklistMainService.getPRNotificationBody(this.WorkListBodyObj). this.worklistMainService.getPRNotificationBody(this.WorkListBodyObj).
subscribe((result: any) => { subscribe((result: any) => {
if (this.common.validResponse(result)) { if (this.common.validResponse(result)) {
if (result.GetPrNotificationBodyList != undefined) { if (result.SFH_GetPrNotificationBodyList != undefined) {
this.P_PAGE_NUM++; this.P_PAGE_NUM++;
this.WorkListBodyObj.P_PAGE_NUM = 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) { if (element.ROW_NUM == element.NO_OF_ROWS) {
this.IsReachEnd = true; this.IsReachEnd = true;
} else { } else {

Loading…
Cancel
Save