|
|
|
@ -429,10 +429,11 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
this.common.sharedService.setSharedData(true, 'loadWorkList');
|
|
|
|
this.common.sharedService.setSharedData(true, 'loadWorkList');
|
|
|
|
// this.messageSuccess = true;
|
|
|
|
// this.messageSuccess = true;
|
|
|
|
this.common.greenToastPK('worklist', 'done-successfully');
|
|
|
|
this.common.greenToastPK('worklist', 'done-successfully');
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.common.setTotalNumberOfWorklistRequest();
|
|
|
|
this.common.setTotalNumberOfWorklistRequest();
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
|
|
|
|
this.nextNotfification();
|
|
|
|
this.nextNotfification();
|
|
|
|
}, 5000);
|
|
|
|
}, 300);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.common.redToastPK('worklist', 'save-error');
|
|
|
|
this.common.redToastPK('worklist', 'save-error');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -482,13 +483,13 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
} else if (previousRequest === this.notificationArray[index].REQUEST_TYPE) {
|
|
|
|
} else if (previousRequest === this.notificationArray[index].REQUEST_TYPE) {
|
|
|
|
this.checkRequestType(index);
|
|
|
|
this.checkRequestType(index);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.common.setTotalNumberOfWorklistRequest(true);
|
|
|
|
//this.common.setTotalNumberOfWorklistRequest(true);
|
|
|
|
//this.common.sharedService.setSharedData(true, HomeComponent.COUNT_CHANGED);
|
|
|
|
this.common.sharedService.setSharedData(true, HomeComponent.COUNT_CHANGED);
|
|
|
|
this.common.openNotificationPage();
|
|
|
|
this.common.openNotificationPage();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.common.setTotalNumberOfWorklistRequest(true);
|
|
|
|
//this.common.setTotalNumberOfWorklistRequest(true);
|
|
|
|
//this.common.sharedService.setSharedData(true, HomeComponent.COUNT_CHANGED);
|
|
|
|
this.common.sharedService.setSharedData(true, HomeComponent.COUNT_CHANGED);
|
|
|
|
this.common.openNotificationPage();
|
|
|
|
this.common.openNotificationPage();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1221,10 +1222,11 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
// this.openNotificationsDashboard();
|
|
|
|
// this.openNotificationsDashboard();
|
|
|
|
// this.messageSuccess = true;
|
|
|
|
// this.messageSuccess = true;
|
|
|
|
this.common.greenToastPK('worklist', 'done-successfully');
|
|
|
|
this.common.greenToastPK('worklist', 'done-successfully');
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.common.setTotalNumberOfWorklistRequest();
|
|
|
|
this.common.setTotalNumberOfWorklistRequest();
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
|
|
|
|
this.nextNotfification();
|
|
|
|
this.nextNotfification();
|
|
|
|
}, 100);
|
|
|
|
}, 300);
|
|
|
|
// this.nextNotfification();
|
|
|
|
// this.nextNotfification();
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|