|
|
|
|
@ -53,8 +53,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
getPassNotificationDetails: any;
|
|
|
|
|
public static PASS_RES_ATTR = "passResAttr";
|
|
|
|
|
TransactionID: number = -999;
|
|
|
|
|
notificationBodyRes: any;
|
|
|
|
|
actionHistoryRes: any;
|
|
|
|
|
notificationBodyRes: any =[];
|
|
|
|
|
actionHistoryRes: any =[];
|
|
|
|
|
notificationButtonRes: any;
|
|
|
|
|
actionMode: any;
|
|
|
|
|
pInformation: string = "";
|
|
|
|
|
@ -70,7 +70,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
P_RESPOND_ATTRIBUTES_TBL: any;
|
|
|
|
|
selEmployeeID: any;
|
|
|
|
|
actionType: string = "";
|
|
|
|
|
notificationArray: any;
|
|
|
|
|
notificationArray: any =[];
|
|
|
|
|
notificationDynamicAttributeArr: any;
|
|
|
|
|
private textInput: TextInput;
|
|
|
|
|
private textArea: TextAreaInput;
|
|
|
|
|
@ -80,7 +80,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
notificationCount: any;
|
|
|
|
|
activeSegment: any = "item-req";
|
|
|
|
|
lines_note_limit: any = 24;
|
|
|
|
|
attachmentRes: any;
|
|
|
|
|
attachmentRes: any =[];
|
|
|
|
|
private WorkListActionHistoryObj: WorkListActionHistoryRequest;
|
|
|
|
|
IsReachEnd: boolean = true;
|
|
|
|
|
notiActionBtnMore: any = [];
|
|
|
|
|
@ -88,7 +88,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
confirmMsg: string;
|
|
|
|
|
newArr: any = [];
|
|
|
|
|
selEmp: any;
|
|
|
|
|
subordinatesleaveList: any;
|
|
|
|
|
subordinatesleaveList: any =[];
|
|
|
|
|
private WorkListSubmitterInfoObj: WorkListSubmitterInfoRequest;
|
|
|
|
|
submitterInfoRes: any;
|
|
|
|
|
approveDis: boolean = false;
|
|
|
|
|
@ -119,7 +119,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
) {
|
|
|
|
|
this.direction = TranslatorService.getCurrentLanguageName()
|
|
|
|
|
this.WorkListActionHistoryObj = new WorkListActionHistoryRequest();
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = 1;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_LIMIT = this.P_PAGE_LIMIT;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -168,6 +168,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
console.log("for next()"+ this.getPassNotificationDetails.ROW_NUM);
|
|
|
|
|
this.notificationArray=[]
|
|
|
|
|
this.subordinatesleaveList=[];
|
|
|
|
|
this.notificationArray = this.common.sharedService.getSharedData(
|
|
|
|
|
HomeComponent.NOTIFICATION_ARR,
|
|
|
|
|
false
|
|
|
|
|
@ -192,7 +194,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
this.WorkListActionObj.P_COMMENTS = "";
|
|
|
|
|
this.WorkListActionObj.P_APPROVER_INDEX = null;
|
|
|
|
|
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = this.P_PAGE_NUM;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_NUM = 1;
|
|
|
|
|
this.WorkListActionHistoryObj.P_PAGE_LIMIT = this.P_PAGE_LIMIT;
|
|
|
|
|
this.WorkListActionHistoryObj.P_NOTIFICATION_ID = this.getPassNotificationDetails.NOTIFICATION_ID;
|
|
|
|
|
this.WorkListAttachObj.P_NOTIFICATION_ID = this.getPassNotificationDetails.NOTIFICATION_ID;
|
|
|
|
|
@ -253,6 +255,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getEITNotificationDetails(notificationBodyObj) {
|
|
|
|
|
this.notificationBodyRes = []
|
|
|
|
|
this.worklistMainService
|
|
|
|
|
.getEITNotificationBody(notificationBodyObj)
|
|
|
|
|
.subscribe((result: EITNotificatonBodyResponse) => {
|
|
|
|
|
@ -261,6 +264,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getAbsenceNotificationDetails(notificationBodyObj) {
|
|
|
|
|
this.notificationBodyRes = [];
|
|
|
|
|
this.worklistMainService
|
|
|
|
|
.getAbsencesNotificationBody(notificationBodyObj)
|
|
|
|
|
.subscribe((result: AbsenceNotificatonBodyResponse) => {
|
|
|
|
|
@ -269,7 +273,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleWorkListBodyResult(result, Type) {
|
|
|
|
|
this.notificationBodyRes = {};
|
|
|
|
|
|
|
|
|
|
if (this.common.validResponse(result)) {
|
|
|
|
|
this.pInformation = result.P_INFORMATION;
|
|
|
|
|
this.pQuestion = result.P_QUESTION;
|
|
|
|
|
@ -277,11 +281,17 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
if (result.GetEITCollectionNotificationBodyList) {
|
|
|
|
|
this.notificationBodyRes =
|
|
|
|
|
result.GetEITCollectionNotificationBodyList;
|
|
|
|
|
if(this.notificationBodyRes[0].Collection_Notification){
|
|
|
|
|
console.log(this.notificationBodyRes[0].Collection_Notification);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else if (Type == "ABSENCE") {
|
|
|
|
|
if (result.GetAbsenceCollectionNotificationBodyList) {
|
|
|
|
|
this.notificationBodyRes =
|
|
|
|
|
result.GetAbsenceCollectionNotificationBodyList;
|
|
|
|
|
result.GetAbsenceCollectionNotificationBodyList ;
|
|
|
|
|
if(this.notificationBodyRes[0].Collection_Notification){
|
|
|
|
|
console.log(this.notificationBodyRes[0].Collection_Notification);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// getDimensions(this.notificationBodyRes) {
|
|
|
|
|
let obj = (this.notificationBodyRes[0].Collection_Notification).filter(function (list) {
|
|
|
|
|
@ -304,6 +314,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getNotificationButtons(notificationButtonsObj) {
|
|
|
|
|
this.notificationButtonRes=[];
|
|
|
|
|
this.worklistMainService
|
|
|
|
|
.getNotificationButtons(notificationButtonsObj)
|
|
|
|
|
.subscribe((result: NotificatonButtonResponse) => {
|
|
|
|
|
@ -422,7 +433,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
this.common.openWorklistMainPRPage()
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if(this.notificationArray[index].REQUEST_TYPE == "MR" ){
|
|
|
|
|
if(this.notificationArray[index].REQUEST_TYPE == "MO" ){
|
|
|
|
|
this.common.openWorklistMainMRPage()
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
@ -773,6 +784,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
getAttachmentNotification(WorkListAttachObj) {
|
|
|
|
|
this.attachmentRes = []
|
|
|
|
|
console.log(" this.P_PAGE_NUM: "+ this.P_PAGE_NUM);
|
|
|
|
|
|
|
|
|
|
this.worklistAttachService.getAttach(WorkListAttachObj).
|
|
|
|
|
subscribe((result: NotificationGetAttachResponse) => {
|
|
|
|
|
@ -791,6 +804,8 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
getActionHistory(WorkListActionHistoryObj) {
|
|
|
|
|
this.IsReachEnd = true;
|
|
|
|
|
this.actionHistoryRes =[];
|
|
|
|
|
console.log(" this.P_PAGE_NUM: "+ this.P_PAGE_NUM);
|
|
|
|
|
this.worklistService.getActionHistory(WorkListActionHistoryObj).
|
|
|
|
|
subscribe((result: WorkListActionHistoryResponse) => {
|
|
|
|
|
this.handleWorkListActionHistoryResult(result);
|
|
|
|
|
@ -944,6 +959,7 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getsubmitterInfo(notificationSubmitterInfoObj) {
|
|
|
|
|
this.submitterInfoRes=[];
|
|
|
|
|
this.worklistMainService.getSubmitterInfo(notificationSubmitterInfoObj).
|
|
|
|
|
subscribe((result: WorklistsubmitterInfoResponse) => {
|
|
|
|
|
this.handleSubmitterInfoResult(result);
|
|
|
|
|
|