|
|
|
|
@ -665,6 +665,7 @@ export class WorklistMainMRComponent implements OnInit {
|
|
|
|
|
if (this.common.hasData(result.GetActionHistoryList)) {
|
|
|
|
|
this.actionHistoryRes = result.GetActionHistoryList;
|
|
|
|
|
this.P_PAGE_NUM++;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
let lastItemIndex = this.actionHistoryRes.length - 1;
|
|
|
|
|
if (result.GetActionHistoryList[lastItemIndex]) {
|
|
|
|
|
let lastitem = result.GetActionHistoryList[lastItemIndex];
|
|
|
|
|
@ -700,12 +701,13 @@ export class WorklistMainMRComponent implements OnInit {
|
|
|
|
|
console.log("doInfinite action history MR");
|
|
|
|
|
|
|
|
|
|
if (!this.IsReachEnd) {
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
this.worklistService.getActionHistory(this.WorkListActionHistoryObj).
|
|
|
|
|
subscribe((result: any) => {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
if (result.GetActionHistoryList != undefined) {
|
|
|
|
|
this.P_PAGE_NUM++;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
|
|
|
|
|
(result.GetActionHistoryList).forEach(element => {
|
|
|
|
|
if (element.ROW_NUM == element.NO_OF_ROWS) {
|
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
|
@ -783,12 +785,12 @@ export class WorklistMainMRComponent implements OnInit {
|
|
|
|
|
doInfiniteNotificationBody(infiniteScroll) {
|
|
|
|
|
console.log("doInfiniteNotificationBody MR");
|
|
|
|
|
if (!this.IsReachEnd) {
|
|
|
|
|
this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
this.worklistMainService.getMONotificationBody(this.WorkListActionHistoryObj).
|
|
|
|
|
subscribe((result: any) => {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
if (result.GetMoNotificationBodyList != undefined) {
|
|
|
|
|
this.P_PAGE_NUM++;
|
|
|
|
|
this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
(result.GetMoNotificationBodyList).forEach(element => {
|
|
|
|
|
if (element.ROW_NUM == element.NO_OF_ROWS) {
|
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
|
@ -820,12 +822,13 @@ export class WorklistMainMRComponent implements OnInit {
|
|
|
|
|
if (!this.IsReachEnd) {
|
|
|
|
|
console.log("this.IsReachEnd"+ this.IsReachEnd);
|
|
|
|
|
|
|
|
|
|
this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
this.worklistMainService.getMONotificationBody(this.WorkListBodyObj).
|
|
|
|
|
subscribe((result: any) => {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
if (result.GetMoNotificationBodyList != undefined) {
|
|
|
|
|
this.P_PAGE_NUM++;
|
|
|
|
|
this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
|
|
|
|
|
(result.GetMoNotificationBodyList).forEach(element => {
|
|
|
|
|
if (element.ROW_NUM == element.NO_OF_ROWS) {
|
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
|
@ -855,12 +858,13 @@ export class WorklistMainMRComponent implements OnInit {
|
|
|
|
|
console.log("doInfinite action history MR");
|
|
|
|
|
|
|
|
|
|
if (!this.IsReachEnd) {
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
this.worklistService.getActionHistory(this.WorkListActionHistoryObj).
|
|
|
|
|
subscribe((result: any) => {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
if (result.GetActionHistoryList != undefined) {
|
|
|
|
|
this.P_PAGE_NUM++;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
|
|
|
|
|
(result.GetActionHistoryList).forEach(element => {
|
|
|
|
|
if (element.ROW_NUM == element.NO_OF_ROWS) {
|
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
|
|