|
|
|
|
@ -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 {
|
|
|
|
|
|