|
|
|
@ -81,7 +81,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
lines_note_limit: any = 24;
|
|
|
|
lines_note_limit: any = 24;
|
|
|
|
attachmentRes: any;
|
|
|
|
attachmentRes: any;
|
|
|
|
private WorkListActionHistoryObj: WorkListActionHistoryRequest;
|
|
|
|
private WorkListActionHistoryObj: WorkListActionHistoryRequest;
|
|
|
|
IsReachEnd: boolean = false;
|
|
|
|
IsReachEnd: boolean = true;
|
|
|
|
notiActionBtnMore: any = [];
|
|
|
|
notiActionBtnMore: any = [];
|
|
|
|
messageSuccess: boolean = false;
|
|
|
|
messageSuccess: boolean = false;
|
|
|
|
confirmMsg: string;
|
|
|
|
confirmMsg: string;
|
|
|
|
@ -719,7 +719,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getActionHistory(WorkListActionHistoryObj) {
|
|
|
|
getActionHistory(WorkListActionHistoryObj) {
|
|
|
|
this.IsReachEnd = false;
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
this.worklistService.getActionHistory(WorkListActionHistoryObj).
|
|
|
|
this.worklistService.getActionHistory(WorkListActionHistoryObj).
|
|
|
|
subscribe((result: WorkListActionHistoryResponse) => {
|
|
|
|
subscribe((result: WorkListActionHistoryResponse) => {
|
|
|
|
this.handleWorkListActionHistoryResult(result);
|
|
|
|
this.handleWorkListActionHistoryResult(result);
|
|
|
|
@ -979,9 +979,10 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadMoreActionHistory() {
|
|
|
|
loadMoreActionHistory() {
|
|
|
|
console.log("doInfinite action history MR");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.IsReachEnd) {
|
|
|
|
if (!this.IsReachEnd) {
|
|
|
|
|
|
|
|
console.log("doInfinite action history MR");
|
|
|
|
|
|
|
|
|
|
|
|
this.worklistService.getActionHistory(this.WorkListActionHistoryObj).
|
|
|
|
this.worklistService.getActionHistory(this.WorkListActionHistoryObj).
|
|
|
|
subscribe((result: any) => {
|
|
|
|
subscribe((result: any) => {
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
@ -1009,6 +1010,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log("no doInfinite action history MR");
|
|
|
|
|
|
|
|
|
|
|
|
//if (infiniteScroll)
|
|
|
|
//if (infiniteScroll)
|
|
|
|
//infiniteScroll.target.complete();
|
|
|
|
//infiniteScroll.target.complete();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|