stamp next is not working

success message should be
"Your action has been executed successfully!"
if in case while approve reject delegate service gives error it should not move to next one​
sultan-q3
enadhilal 4 years ago
parent 50da1bd202
commit f597f56f00

@ -273,7 +273,7 @@ export class WorkListMainItgComponent implements OnInit {
} else if (result.MessageStatus === 1) {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
@ -295,7 +295,7 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus === 1) {
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = true;
this.common.sharedService.setSharedData(true, 'loadWorkList');
@ -323,7 +323,7 @@ export class WorkListMainItgComponent implements OnInit {
if (result.MessageStatus === 1) {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
@ -347,7 +347,7 @@ export class WorkListMainItgComponent implements OnInit {
} else if (result.MessageStatus === 1) {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
@ -372,7 +372,7 @@ export class WorkListMainItgComponent implements OnInit {
} else if (result.MessageStatus === 1) {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
@ -400,7 +400,7 @@ export class WorkListMainItgComponent implements OnInit {
} else if (result.MessageStatus === 1) {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
@ -429,7 +429,7 @@ export class WorkListMainItgComponent implements OnInit {
} else if (result.MessageStatus === 1) {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');

@ -135,7 +135,17 @@
</ion-list>
<div style="font-weight: bold;" *ngIf="searchKeySelect === '4'">
<div style="font-weight: bold;" *ngIf="searchKeySelect === '4' && !isFavoriteLetterActive">
<ion-slides [options]="slideOptsOne">
<ion-slide *ngFor="let filter of favLetter; let i=index">
<div>
<p (click)='selectedLetter(favLetter[i])'>{{filter}}</p>
</div>
</ion-slide>
</ion-slides>
</div>
<div style="font-weight: bold;" *ngIf="searchKeySelect === '4' && isFavoriteLetterActive">
<ion-slides [options]="slideOptsOne">
<ion-slide *ngFor="let filter of favLetter; let i=index">
<div [ngClass]="returnIsActiveFunction(i)? 'isFavLetterActive':''">
@ -238,7 +248,7 @@
<!-- favorite list -->
<div [hidden]="isAnswer==true"
*ngIf="favoriteUserList.length> 0 && !userSelected && ReplacementList.length ==0 && searchKeySelect == '4'">
*ngIf="favoriteUserList.length> 0 && !userSelected && ReplacementList.length ==0 && searchKeySelect == '4' && isFavoriteLetterActive">
<div class="uk-margin">
{{'replacementRoll, favorite' | translate}}
</div>
@ -269,6 +279,21 @@
</div>
</div>
<div *ngIf="favLetter.length > 0 && searchKeySelect == '4' && favoriteUserList.length === 0">
<ion-label>
<p style="text-align: center;">
select filter to show data
</p>
</ion-label>
</div>
<div *ngIf="favoriteUserList.length === 0 && searchKeySelect == '4' && favLetter.length ===0">
<ion-label>
<p style="text-align: center;">
Sorry there is no data
</p>
</ion-label>
</div>
<div *ngIf='messageSuccess' class="succssfullMSG">
<ion-col size="12">
<ion-icon class="succssfullIcon" name="checkmark"></ion-icon>

@ -40,6 +40,7 @@ export class WorkListReplacementItgComponent implements OnInit {
public direction = '';
arr = [];
delegtedEmp;
isFavoriteLetterActive = false;
public slideOptsOne = {
slidesPerView: 6,
@ -341,7 +342,7 @@ export class WorkListReplacementItgComponent implements OnInit {
this.favLetter.forEach((obj, index) => {
if(this.activeSelectedLetter) {}
if (index === 0) {
this.selectedLetter(obj);
// this.selectedLetter(obj);
this.favIsActive.push(true);
} else {
this.favIsActive.push(false);
@ -412,6 +413,7 @@ export class WorkListReplacementItgComponent implements OnInit {
}
selectedLetter(el) {
this.isFavoriteLetterActive = true;
this.favLetter.forEach((letter, index) => {
if (letter === el) {
this.favIsActive[index] = true;

@ -181,7 +181,14 @@
</div>
</div>
<div *ngIf="favoriteUserList.length === 0 && searchBy == '4'">
<div *ngIf="favLetter.length > 0 && searchBy == '4' && favoriteUserList.length === 0">
<ion-label>
<p style="text-align: center;">
select filter to show data
</p>
</ion-label>
</div>
<div *ngIf="favoriteUserList.length === 0 && searchBy == '4' && favLetter.length ===0">
<ion-label>
<p style="text-align: center;">
Sorry there is no data

@ -56,7 +56,7 @@ export class WorkListReplacementRollComponent implements OnInit {
spaceBetween: 5
};
public activeSelectedLetter:string;
public activeSelectedLetter: string;
constructor(public worklistService: WorklistService, private cs: CommonService, public ts: TranslatorService, public workListMainService: WorklistMainService, public modalCtrl: ModalController) {
this.P_PAGE_NUM = 1;
@ -463,7 +463,7 @@ export class WorkListReplacementRollComponent implements OnInit {
this.counter = 1;
} else if (selectValue === '4') {
// if (this.favoriteUserList.length === 0 || this.favoriteUserList === undefined) {
this.getFavruite();
// this.getFavruite();
// }
this.isFilter = true;
this.selectedType = 4;
@ -521,159 +521,156 @@ export class WorkListReplacementRollComponent implements OnInit {
this.favLetter = this.favLetter.filter((elem, index, self) => {
return index === self.indexOf(elem);
});
if (this.activeSelectedLetter) {
this.selectedLetter(this.activeSelectedLetter);
} else {
this.favLetter.forEach((obj, index) => {
if(this.activeSelectedLetter) {}
if (index === 0) {
// this.selectedLetter(obj);
this.favIsActive.push(true);
} else {
this.favIsActive.push(false);
}
});
}
console.log(this.favLetter);
console.log(this.favIsActive);
}
this.favLetter.forEach((obj, index) => {
if (this.activeSelectedLetter) { }
if (index === 0) {
// this.selectedLetter(obj);
this.favIsActive.push(true);
} else {
this.favIsActive.push(false);
}
});
console.log(this.favLetter);
console.log(this.favIsActive);
}
});
// this.worklistService.getFavorite({}, () => {
// }).subscribe((result) => {
// if (this.cs.validResponse(result)) {
// this.cs.stopLoading();
// this.favoriteUserList = result['Mohemm_GetFavoriteReplacementsList'];
// this.listOfFav = this.favoriteUserList;
// this.favoriteUserList.forEach((obj) => {
// obj.IsFavorite = true;
// });
// }
// });
}
// this.worklistService.getFavorite({}, () => {
// }).subscribe((result) => {
// if (this.cs.validResponse(result)) {
// this.cs.stopLoading();
// this.favoriteUserList = result['Mohemm_GetFavoriteReplacementsList'];
// this.listOfFav = this.favoriteUserList;
// this.favoriteUserList.forEach((obj) => {
// obj.IsFavorite = true;
// });
// }
// });
}
saveUserFavruiteList(request, isFav: boolean) {
this.worklistService.saveFavoriteList(request, () => {
}).subscribe((result) => {
if (this.cs.validResponse(result)) {
if (isFav) {
this.cs.greenToastPK("replacementRoll", "favorite-saved");
} else {
this.cs.redToastPK("replacementRoll", "favorite-unsaved");
}
this.getFavruite();
saveUserFavruiteList(request, isFav: boolean) {
this.worklistService.saveFavoriteList(request, () => {
}).subscribe((result) => {
if (this.cs.validResponse(result)) {
if (isFav) {
this.cs.greenToastPK("replacementRoll", "favorite-saved");
} else {
this.cs.redToastPK("replacementRoll", "favorite-unsaved");
}
});
}
this.getFavruite();
}
});
}
setFavorite(selEmp) {
selEmp.EMPLOYEE_DISPLAY_NAME = selEmp.EMPLOYEE_DISPLAY_NAME ? selEmp.EMPLOYEE_DISPLAY_NAME : selEmp.NAME;
selEmp.EMPLOYEE_IMAGE = selEmp.EMPLOYEE_IMAGE ? selEmp.EMPLOYEE_IMAGE : '';
selEmp.EMAIL_ADDRESS = selEmp.EMAIL_ADDRESS ? selEmp.EMAIL_ADDRESS : '';
selEmp.IsFavorite = !selEmp.IsFavorite;
let confirmBoxhtml = `<div>
setFavorite(selEmp) {
selEmp.EMPLOYEE_DISPLAY_NAME = selEmp.EMPLOYEE_DISPLAY_NAME ? selEmp.EMPLOYEE_DISPLAY_NAME : selEmp.NAME;
selEmp.EMPLOYEE_IMAGE = selEmp.EMPLOYEE_IMAGE ? selEmp.EMPLOYEE_IMAGE : '';
selEmp.EMAIL_ADDRESS = selEmp.EMAIL_ADDRESS ? selEmp.EMAIL_ADDRESS : '';
selEmp.IsFavorite = !selEmp.IsFavorite;
let confirmBoxhtml = `<div>
<h4>Do you want to add ` + selEmp.EMPLOYEE_DISPLAY_NAME + ` in your favorite list </h4>
<br/>
<br/>
<div class="fav-profileImageDiv"><ion-row>`;
if (selEmp.EMPLOYEE_IMAGE) {
confirmBoxhtml += '<div class="img-box"><img class="empImgeRep" src="data:image/png;base64,' + selEmp.EMPLOYEE_IMAGE + '"></div>';
}
if (!selEmp.EMPLOYEE_IMAGE) {
confirmBoxhtml += '<div class="img-box"><img class="empImgeRep" src="../assets/imgs/profile.png"></div>';
}
if (selEmp.EMPLOYEE_IMAGE) {
confirmBoxhtml += '<div class="img-box"><img class="empImgeRep" src="data:image/png;base64,' + selEmp.EMPLOYEE_IMAGE + '"></div>';
}
if (!selEmp.EMPLOYEE_IMAGE) {
confirmBoxhtml += '<div class="img-box"><img class="empImgeRep" src="../assets/imgs/profile.png"></div>';
}
confirmBoxhtml += ` <div class="name-box"><ion-label class="fav-employee-details">
confirmBoxhtml += ` <div class="name-box"><ion-label class="fav-employee-details">
<span>` + selEmp.EMPLOYEE_DISPLAY_NAME + `</span>
</ion-label>
</div></ion-row> </div>
</div>`;
const userIndex = this.favoriteUserList.findIndex(x => x['USER_NAME'] === selEmp.USER_NAME)
if (userIndex === -1) {
this.cs.presentConfirmDialog(
confirmBoxhtml
, () => {
const request =
[
{
'USER_NAME': selEmp['USER_NAME'],
'EMPLOYEE_DISPLAY_NAME': selEmp['EMPLOYEE_DISPLAY_NAME'],
'EMAIL_ADDRESS': selEmp.EMAIL_ADDRESS,
'EMPLOYEE_IMAGE': selEmp.EMPLOYEE_IMAGE,
'IsFavorite': selEmp.IsFavorite
}
];
this.saveUserFavruiteList(request, selEmp.IsFavorite);
}, () => { });
} else {
const request =
[
{
'USER_NAME': selEmp['USER_NAME'],
'EMPLOYEE_DISPLAY_NAME': selEmp['EMPLOYEE_DISPLAY_NAME'],
'EMAIL_ADDRESS': selEmp.EMAIL_ADDRESS,
'EMPLOYEE_IMAGE': selEmp.EMPLOYEE_IMAGE,
'IsFavorite': false
}
];
this.saveUserFavruiteList(request, false);
}
const userIndex = this.favoriteUserList.findIndex(x => x['USER_NAME'] === selEmp.USER_NAME)
if (userIndex === -1) {
this.cs.presentConfirmDialog(
confirmBoxhtml
, () => {
const request =
[
{
'USER_NAME': selEmp['USER_NAME'],
'EMPLOYEE_DISPLAY_NAME': selEmp['EMPLOYEE_DISPLAY_NAME'],
'EMAIL_ADDRESS': selEmp.EMAIL_ADDRESS,
'EMPLOYEE_IMAGE': selEmp.EMPLOYEE_IMAGE,
'IsFavorite': selEmp.IsFavorite
}
];
this.saveUserFavruiteList(request, selEmp.IsFavorite);
}, () => { });
} else {
const request =
[
{
'USER_NAME': selEmp['USER_NAME'],
'EMPLOYEE_DISPLAY_NAME': selEmp['EMPLOYEE_DISPLAY_NAME'],
'EMAIL_ADDRESS': selEmp.EMAIL_ADDRESS,
'EMPLOYEE_IMAGE': selEmp.EMPLOYEE_IMAGE,
'IsFavorite': false
}
];
this.saveUserFavruiteList(request, false);
}
}
listOfRealted: any = [];
listOfFav: any = [];
listOfRealted: any = [];
listOfFav: any = [];
filterList(event) {
const val = event.target.value;
if (this.selectedType === 1) {
if (val === '') {
this.actionHistory = this.listOfRealted;
} else {
this.actionHistory = this.listOfRealted.filter((item) => {
return (item.NAME.toLowerCase().indexOf(val.toLowerCase()) > -1);
});
}
} else if (this.selectedType === 4) {
if (val === '') {
this.favoriteUserList = this.listOfFav;
} else {
this.favoriteUserList = this.listOfFav.filter((item) => {
return (item.EMPLOYEE_DISPLAY_NAME.toLowerCase().indexOf(val.toLowerCase()) > -1);
});
}
filterList(event) {
const val = event.target.value;
if (this.selectedType === 1) {
if (val === '') {
this.actionHistory = this.listOfRealted;
} else {
this.actionHistory = this.listOfRealted.filter((item) => {
return (item.NAME.toLowerCase().indexOf(val.toLowerCase()) > -1);
});
}
} else if (this.selectedType === 4) {
if (val === '') {
this.favoriteUserList = this.listOfFav;
} else {
return;
this.favoriteUserList = this.listOfFav.filter((item) => {
return (item.EMPLOYEE_DISPLAY_NAME.toLowerCase().indexOf(val.toLowerCase()) > -1);
});
}
} else {
return;
}
}
selectedLetter(el) {
this.isFavoriteLetterActive = true;
this.favLetter.forEach((letter, index) => {
if (letter === el) {
this.favIsActive[index] = true;
this.activeSelectedLetter = el;
this.worklistService.getFavoriteByLetter(letter,() => {
}).subscribe((result) => {
if (this.cs.validResponse(result)) {
this.cs.stopLoading();
this.favoriteUserList = result['Mohemm_GetFavoriteReplacementsList'];
this.listOfFav = this.favoriteUserList;
this.favoriteUserList.forEach((obj) => {
obj.IsFavorite = true;
});
}
});
} else {
this.favIsActive[index] = false;
}
});
}
selectedLetter(el) {
this.isFavoriteLetterActive = true;
this.favLetter.forEach((letter, index) => {
if (letter === el) {
this.favIsActive[index] = true;
this.activeSelectedLetter = el;
this.worklistService.getFavoriteByLetter(letter, () => {
}).subscribe((result) => {
if (this.cs.validResponse(result)) {
this.cs.stopLoading();
this.favoriteUserList = result['Mohemm_GetFavoriteReplacementsList'];
this.listOfFav = this.favoriteUserList;
this.favoriteUserList.forEach((obj) => {
obj.IsFavorite = true;
});
}
});
} else {
this.favIsActive[index] = false;
}
});
}
returnIsActiveFunction(i) {
return this.favIsActive[i];
}
returnIsActiveFunction(i) {
return this.favIsActive[i];
}
}

@ -428,7 +428,7 @@ export class WorklistMainIcComponent implements OnInit {
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
// this.openNotificationsDashboard();
@ -1214,7 +1214,7 @@ export class WorklistMainIcComponent implements OnInit {
} else if (data.data.data == "Success") {
// this.openNotificationsDashboard();
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.nextNotfification();

@ -369,7 +369,7 @@ export class WorklistMainMRComponent implements OnInit {
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
// this.openNotificationsDashboard();
@ -1115,7 +1115,7 @@ export class WorklistMainMRComponent implements OnInit {
} else if (data.data.data == 'Success') {
// this.openNotificationsDashboard();
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.nextNotfification();

@ -405,7 +405,7 @@ export class WorklistMainPoComponent implements OnInit {
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
// this.openNotificationsDashboard();
@ -1182,7 +1182,7 @@ export class WorklistMainPoComponent implements OnInit {
if (data.data.data === 'cancel' || data.data.data === undefined) {
return;
} else if (data.data.data === 'Success') {
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
this.nextNotfification();
}, 2000);

@ -394,7 +394,7 @@ export class WorklistMainPRComponent implements OnInit {
// tslint:disable-next-line: triple-equals
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
// show succsfull popup
// this.messageSuccess = true;
// setTimeout(() => {
@ -1115,7 +1115,7 @@ export class WorklistMainPRComponent implements OnInit {
} else if (data.data.data == 'Success') {
// this.openNotificationsDashboard();
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.nextNotfification();

@ -51,7 +51,8 @@
getPassNotificationDetails?.REQUEST_TYPE != 'BASIC_DETAILS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'CONTACT' &&
getPassNotificationDetails?.REQUEST_TYPE != 'PHONE_NUMBERS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION'">
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION' &&
getPassNotificationDetails?.REQUEST_TYPE != 'CEI'">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;"
@ -299,7 +300,8 @@
getPassNotificationDetails?.REQUEST_TYPE == 'ADDRESS' ||
getPassNotificationDetails?.REQUEST_TYPE == 'CONTACT' &&
getPassNotificationDetails?.REQUEST_TYPE != 'PHONE_NUMBERS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION'">
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION' &&
getPassNotificationDetails?.REQUEST_TYPE != 'CEI'">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;"
src="../assets/icon/progress-loading.gif" /></p>
@ -348,7 +350,8 @@
<ion-col *ngIf="getPassNotificationDetails?.REQUEST_TYPE != 'BASIC_DETAILS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'ADDRESS' &&
getPassNotificationDetails?.REQUEST_TYPE == 'PHONE_NUMBERS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION'">
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION' &&
getPassNotificationDetails?.REQUEST_TYPE != 'CEI'">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;"
src="../assets/icon/progress-loading.gif" /></p>
@ -378,7 +381,40 @@
<ion-col *ngIf="getPassNotificationDetails?.REQUEST_TYPE != 'BASIC_DETAILS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'ADDRESS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'PHONE_NUMBERS' &&
getPassNotificationDetails?.REQUEST_TYPE == 'TERMINATION'">
getPassNotificationDetails?.REQUEST_TYPE == 'TERMINATION' &&
getPassNotificationDetails?.REQUEST_TYPE != 'CEI'">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;"
src="../assets/icon/progress-loading.gif" /></p>
</div>
<div class="no-data-div" *ngIf="notificationBodyRes?.length === 0 && !showInformation">
<p>{{ 'general, empty' | translate}}</p>
</div>
<div *ngIf='notificationBodyRes.length > 0'>
<ion-card style="width: 91%;">
<ion-card-content>
<div>
<ion-row *ngFor="let item of notificationBodyRes;let i=index;">
<ion-col class="rowBorder" [hidden]="item.UPDATED_FLAG == 'N'">
<label class="colItemReq">{{item.SEGMENT_PROMPT}}</label>
<br />
<label>{{item.SEGMENT_VALUE_DSP}}</label>
</ion-col>
</ion-row>
</div>
</ion-card-content>
</ion-card>
</div>
</ion-col>
<!-- IF CEI -->
<ion-col *ngIf =
"getPassNotificationDetails?.REQUEST_TYPE != 'BASIC_DETAILS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'ADDRESS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'PHONE_NUMBERS' &&
getPassNotificationDetails?.REQUEST_TYPE != 'TERMINATION' &&
getPassNotificationDetails?.REQUEST_TYPE == 'CEI'">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;"
src="../assets/icon/progress-loading.gif" /></p>

@ -225,7 +225,8 @@ export class WorklistMainComponent implements OnInit {
false
);
console.log(this.selectedFilter);
if (this.selectedFilter === 'HRSSA') {
if (this.selectedFilter === 'HRSSA' || this.selectedFilter === 'STAMP') {
console.log("ENAD")
this.arr_hr_req_only = [];
this.sortRequests();
}
@ -450,8 +451,8 @@ export class WorklistMainComponent implements OnInit {
} else if (Type === "CEI"){
if (result.GetCEICollectionNotificationBodyList) {
this.notificationBodyRes =
result.GetCEICollectionNotificationBodyList;
console.log(result);
result.GetCEICollectionNotificationBodyList[0].Collection_Notification;
console.log(result.GetCEICollectionNotificationBodyList[0].Collection_Notification);
}
}
else if (Type === "STAMP_MS"){
@ -558,7 +559,7 @@ export class WorklistMainComponent implements OnInit {
// }
// }
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
// this.openNotificationsDashboard();
@ -1141,7 +1142,7 @@ export class WorklistMainComponent implements OnInit {
return;
} else if (data.data.data == "Success") {
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
this.common.greenToastPK('worklist', 'done-successfully');
setTimeout(() => {
// this.messageSuccess = false;
this.nextNotfification();
@ -1235,7 +1236,7 @@ export class WorklistMainComponent implements OnInit {
}
sortRequests() {
for (let i = 0; i < this.notificationArray.length; i++) {
if (this.notificationArray[i].ITEM_TYPE === 'HRSSA') {
if (this.notificationArray[i].ITEM_TYPE === 'HRSSA' || this.notificationArray[i].ITEM_TYPE === 'STAMP') {
this.arr_hr_req_only.push(this.notificationArray[i]);
}
}

@ -2619,6 +2619,10 @@
"ar": "تم حفظ التغيير بنجاح",
"en": "Your change has been saved successfully"
},
"done-successfully": {
"ar": "تم تنفيذ الإجراء الخاص بك بنجاح!",
"en": "Your action has been executed successfully!"
},
"save-error": {
"ar": "هناك شئ خاطئ، يرجى المحاولة فى وقت لاحق",
"en": "Something went wrong please try again later"

Loading…
Cancel
Save