|
|
|
@ -94,6 +94,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
rejectDis: boolean = false;
|
|
|
|
rejectDis: boolean = false;
|
|
|
|
requestDis: boolean = false;
|
|
|
|
requestDis: boolean = false;
|
|
|
|
moreDisabled: boolean = true;
|
|
|
|
moreDisabled: boolean = true;
|
|
|
|
|
|
|
|
dirfromNotificationPage: boolean = false;
|
|
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
|
public worklistService: WorklistService,
|
|
|
|
public worklistService: WorklistService,
|
|
|
|
@ -310,7 +311,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
if (this.notificationButtonRes[i].BUTTON_ACTION == "REQUEST_INFO") {
|
|
|
|
if (this.notificationButtonRes[i].BUTTON_ACTION == "REQUEST_INFO") {
|
|
|
|
this.requestDis = true;
|
|
|
|
this.requestDis = true;
|
|
|
|
} // if result == null
|
|
|
|
} // if result == null
|
|
|
|
else (
|
|
|
|
else if(
|
|
|
|
this.notificationButtonRes[i].BUTTON_ACTION != "APPROVED" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECTED" && this.notificationButtonRes[i].BUTTON_ACTION != "REQUEST_INFO")
|
|
|
|
this.notificationButtonRes[i].BUTTON_ACTION != "APPROVED" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECTED" && this.notificationButtonRes[i].BUTTON_ACTION != "REQUEST_INFO")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.moreDisabled = false;
|
|
|
|
this.moreDisabled = false;
|
|
|
|
@ -543,6 +544,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
EITNotificatonBodyResponse.NOT_WORKLIST
|
|
|
|
EITNotificatonBodyResponse.NOT_WORKLIST
|
|
|
|
);
|
|
|
|
);
|
|
|
|
// this.navCtrl.push("EitUpdateListPage");
|
|
|
|
// this.navCtrl.push("EitUpdateListPage");
|
|
|
|
|
|
|
|
this.common.eitUpdate();// must be test
|
|
|
|
|
|
|
|
|
|
|
|
} else if (this.getPassNotificationDetails.REQUEST_TYPE == "ABSENCE") {
|
|
|
|
} else if (this.getPassNotificationDetails.REQUEST_TYPE == "ABSENCE") {
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
this.notificationBodyRes,
|
|
|
|
this.notificationBodyRes,
|
|
|
|
@ -556,7 +559,18 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
// dirfromNotificationPage: true,
|
|
|
|
// dirfromNotificationPage: true,
|
|
|
|
// submitAbsObjList: this.notificationBodyRes[0].Collection_Notification
|
|
|
|
// submitAbsObjList: this.notificationBodyRes[0].Collection_Notification
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
this.common.openConfirmAbsece();
|
|
|
|
//this.common.openConfirmAbsece();
|
|
|
|
|
|
|
|
this.dirfromNotificationPage=true,
|
|
|
|
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
|
|
|
|
this.dirfromNotificationPage,
|
|
|
|
|
|
|
|
"dirfromNotificationPage"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
this.common.sharedService.setSharedData(
|
|
|
|
|
|
|
|
this.notificationBodyRes[0].Collection_Notification,
|
|
|
|
|
|
|
|
"submitAbsObjList"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.common.openSubmitAbsencePage();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (this.notificationButtonRes.length > 0 && !ButtonAction) {
|
|
|
|
else if (this.notificationButtonRes.length > 0 && !ButtonAction) {
|
|
|
|
|