|
|
|
|
@ -264,8 +264,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
this.getAttachmentNotification(this.WorkListAttachObj);
|
|
|
|
|
this.getActionHistory(this.WorkListActionHistoryObj);
|
|
|
|
|
|
|
|
|
|
if (this.getPassNotificationDetails.REQUEST_TYPE == "EIT") {
|
|
|
|
|
this.getEITNotificationDetails(this.WorkListBodyObj);
|
|
|
|
|
if (this.getPassNotificationDetails.REQUEST_TYPE == "SIT") {
|
|
|
|
|
this.getSITNotificationDetails(this.WorkListBodyObj);
|
|
|
|
|
} else if (this.getPassNotificationDetails.REQUEST_TYPE == "ABSENCE") {
|
|
|
|
|
this.getAbsenceNotificationDetails(this.WorkListBodyObj);
|
|
|
|
|
} else if (this.getPassNotificationDetails.REQUEST_TYPE == "PO") {
|
|
|
|
|
@ -318,12 +318,12 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getEITNotificationDetails(notificationBodyObj) {
|
|
|
|
|
getSITNotificationDetails(notificationBodyObj) {
|
|
|
|
|
this.notificationBodyRes = []
|
|
|
|
|
this.worklistMainService
|
|
|
|
|
.getEITNotificationBody(notificationBodyObj)
|
|
|
|
|
.getSITNotificationBody(notificationBodyObj)
|
|
|
|
|
.subscribe((result: EITNotificatonBodyResponse) => {
|
|
|
|
|
this.handleWorkListBodyResult(result, "EIT");
|
|
|
|
|
this.handleWorkListBodyResult(result, "SIT");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -341,10 +341,10 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
this.pInformation = result.P_INFORMATION;
|
|
|
|
|
this.pQuestion = result.P_QUESTION;
|
|
|
|
|
if (Type == "EIT") {
|
|
|
|
|
if (result.GetEITCollectionNotificationBodyList) {
|
|
|
|
|
if (Type == "SIT") {
|
|
|
|
|
if (result.GetSITCollectionNotificationBodyList) {
|
|
|
|
|
this.notificationBodyRes =
|
|
|
|
|
result.GetEITCollectionNotificationBodyList;
|
|
|
|
|
result.GetSITCollectionNotificationBodyList;
|
|
|
|
|
if (this.notificationBodyRes[0].Collection_Notification) {
|
|
|
|
|
console.log(this.notificationBodyRes[0].Collection_Notification);
|
|
|
|
|
}
|
|
|
|
|
@ -692,7 +692,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
ButtonAction == "UPDATE_ACTION" ||
|
|
|
|
|
ButtonAction == "CONTINUE_ACTION"
|
|
|
|
|
) {
|
|
|
|
|
if (this.getPassNotificationDetails.REQUEST_TYPE == "EIT") {
|
|
|
|
|
if (this.getPassNotificationDetails.REQUEST_TYPE == "SIT") {
|
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
|
this.notificationBodyRes,
|
|
|
|
|
EITNotificatonBodyResponse.SHARED_DATA
|
|
|
|
|
@ -804,7 +804,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openNotificationBody() {
|
|
|
|
|
if (this.getPassNotificationDetails.REQUEST_TYPE == "EIT") {
|
|
|
|
|
if (this.getPassNotificationDetails.REQUEST_TYPE == "SIT") {
|
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
|
this.notificationBodyRes,
|
|
|
|
|
EITNotificatonBodyResponse.SHARED_DATA
|
|
|
|
|
@ -814,7 +814,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
EITNotificatonBodyResponse.NOT_WORKLIST
|
|
|
|
|
);
|
|
|
|
|
// this.navCtrl.push("WorkListDetailsPage", { NotBodyType: "EIT" });
|
|
|
|
|
this.common.sharedService.setSharedData("EIT", "NotBodyType");
|
|
|
|
|
this.common.sharedService.setSharedData("SIT", "NotBodyType");
|
|
|
|
|
this.common.openNotificationDetailsPage();
|
|
|
|
|
} else if (this.getPassNotificationDetails.REQUEST_TYPE == "ABSENCE") {
|
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
|
|