add Stamp and remove the replacment loading.

enad-Q3
enadhilal 4 years ago
parent dab7e7a26c
commit f1e2251a7a

@ -638,33 +638,35 @@ export class HomeComponent implements OnInit {
this.ITGItem = [];
this.workListService.getITGCount('', '', this.isPostNoLoad)
.subscribe((result: any) => {
if (result.RequestType.length > 0) {
this.ITGSegment[0] = {
name: 'All',
code: 'All',
data: null,
style: false
};
this.ITGSegment[0].data = datas;
this.ITGSegment[0].names = names;
this.setActive(this.ITGSegment[0].code);
}
console.log(result.RequestType);
let count = 1;
for (let i = 0; i < result.RequestType.length; i++) {
console.log()
this.ITGSegment[count] = {
name: result.RequestType[i].RequestTypeName,
code: result.RequestType[i].RequestTypeCode,
data: result.RequestType[i].RequestDetails,
style: false
};
datas[i] = result.RequestType[i].RequestDetails;
names[i] = result.RequestType[i].RequestTypeCode;
count++;
if (result.RequestType) {
if (result.RequestType.length > 0) {
this.ITGSegment[0] = {
name: 'All',
code: 'All',
data: null,
style: false
};
this.ITGSegment[0].data = datas;
this.ITGSegment[0].names = names;
this.setActive(this.ITGSegment[0].code);
}
console.log(result.RequestType);
let count = 1;
for (let i = 0; i < result.RequestType.length; i++) {
console.log()
this.ITGSegment[count] = {
name: result.RequestType[i].RequestTypeName,
code: result.RequestType[i].RequestTypeCode,
data: result.RequestType[i].RequestDetails,
style: false
};
datas[i] = result.RequestType[i].RequestDetails;
names[i] = result.RequestType[i].RequestTypeCode;
count++;
}
//this.sortArrayOfAll(this.ITGSegment[0].data)
console.log(this.ITGSegment);
}
//this.sortArrayOfAll(this.ITGSegment[0].data)
console.log(this.ITGSegment);
});
}

@ -112,10 +112,15 @@
<div *ngIf="approvalInfo.Notes">
<div class="containerNote">
<div class="containerNote" *ngIf='!actionHistory'>
Note: {{approvalInfo.Notes}}
</div>
<div class="containerNote" style="height: auto;" *ngIf='actionHistory'>
Note: {{approvalInfo.Notes}}
</div>
<div *ngIf='approvalInfo.Notes.length >= 16'>
<a (click)="actionHistory = !actionHistory">{{'general, show-more' | translate}}</a>
</div>
</div>
</div>

@ -62,6 +62,7 @@ export class WorkListMainItgComponent implements OnInit {
defaultSegment = '';
public slideIndex = 0;
public messageSuccess = false;
public actionHistory = false;
constructor(
public common: CommonService,
public ts: TranslatorService,
@ -271,13 +272,16 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus === 1) {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(1);
this.skip();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
} else if (action === 2) {// reject
@ -291,13 +295,16 @@ 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');
setTimeout(() => {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(2);
this.skip();
this.messageSuccess = false;
// this.messageSuccess = false;
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
}
@ -315,15 +322,18 @@ export class WorkListMainItgComponent implements OnInit {
}
if (result.MessageStatus === 1) {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(3);
this.skip();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
}
@ -336,15 +346,18 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus === 1) {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(4);
this.skip();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
} else if (action === 5) { // answer
@ -358,15 +371,18 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus === 1) {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(5);
this.skip();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
}
@ -383,15 +399,18 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus === 1) {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(6);
this.skip();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
} else {
@ -409,15 +428,18 @@ export class WorkListMainItgComponent implements OnInit {
this.common.presentAlert(this.ts.trPK('general', 'error-itg'));
} else if (result.MessageStatus === 1) {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.sharedService.setSharedData(true, 'loadWorkList');
// this.common.presentAlert(this.ts.trPK('worklistMain', 'Tran_Succ'));
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.confirmMsg(6);
this.skip();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
} else {

@ -68,7 +68,7 @@ export class WorkListReplacementItgComponent implements OnInit {
this.relatedList.push(lookupObject[i]);
}
}
this.getFavruite();
// this.getFavruite();
} else {
this.select(this.delegtedEmp, 1);
}
@ -164,9 +164,11 @@ export class WorkListReplacementItgComponent implements OnInit {
if (this.isSave == true) {
if (this.selEmp) {
data = this.selEmp;
this.messageSuccess = true;
// this.messageSuccess = true;
this.cs.greenToastPK('worklist', 'save-successfully');
} else {
data = null;
this.cs.redToastPK('worklist', 'save-error');
}
if (typeof this.callback == 'function') {
this.callback(data);

@ -53,7 +53,7 @@ export class WorkListReplacementRollComponent implements OnInit {
this.P_PAGE_NUM = 1;
this.P_PAGE_LIMIT = 50;
this.getPassActionMode = this.cs.sharedService.getSharedData('passActionMode', false);
this.getFavruite();
// this.getFavruite();
this.getPassNotificationDetails = this.cs.sharedService.getSharedData('passNotificationInfo', false);
this.getpassResAttr = this.cs.sharedService.getSharedData('passResAttr', false);
this.pQuestion = this.cs.sharedService.getSharedData('pQuestion', false);
@ -489,8 +489,13 @@ export class WorkListReplacementRollComponent implements OnInit {
// }
}
getPlaceHolder() {
return this.searchBy == '1' ? this.ts.trPK('replacementRoll', 'searchbyname') : this.searchBy == '2' ? this.ts.trPK('replacementRoll', 'searchbyusername') : this.ts.trPK('replacementRoll', 'searchbyemail');
return this.searchBy === '1' ?
this.ts.trPK('replacementRoll', 'searchbyname') :
this.searchBy === '2' ?
this.ts.trPK('replacementRoll', 'searchbyusername') :
this.ts.trPK('replacementRoll', 'searchbyemail');
}
getFavruite() {
this.cs.startLoading();
this.worklistService.getFavorite({}, () => {
@ -503,20 +508,10 @@ export class WorkListReplacementRollComponent implements OnInit {
this.favoriteUserList.forEach((obj) => {
obj.IsFavorite = true;
});
/**** THIS CODE TO CHECK STAR OF EMPLOYEE IF IT IS IN FAVORITE LIST AND SHOW IN WORKFLOW LIST****/
// this.actionHistory.forEach((obj, i) => {
// if(this.favoriteUserList.some(x => x['USER_NAME'] === obj.USER_NAME)) {
// this.actionHistory[i].isInFavorite = true;
// } else {
// this.actionHistory[i].isInFavorite = false;
// }
// });
// console.log(this.actionHistory);
/**** END ****/
}
});
}
saveUserFavruiteList(request, isFav: boolean) {
this.worklistService.saveFavoriteList(request, () => {
}).subscribe((result) => {

@ -427,12 +427,15 @@ export class WorklistMainIcComponent implements OnInit {
// tslint:disable-next-line: triple-equals
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
// this.openNotificationsDashboard();
this.nextNotfification();
}, 5000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
} // valid it
}
@ -1210,13 +1213,16 @@ export class WorklistMainIcComponent implements OnInit {
return;
} else if (data.data.data == "Success") {
// this.openNotificationsDashboard();
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.nextNotfification();
}, 2000);
// this.nextNotfification();
} else {
this.common.redToastPK('worklist', 'save-error');
}
});

@ -368,12 +368,15 @@ export class WorklistMainMRComponent implements OnInit {
// tslint:disable-next-line: triple-equals
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
// this.openNotificationsDashboard();
this.nextNotfification();
}, 5000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
} // valid it
}
@ -1111,13 +1114,16 @@ export class WorklistMainMRComponent implements OnInit {
return;
} else if (data.data.data == 'Success') {
// this.openNotificationsDashboard();
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.nextNotfification();
}, 2000);
// this.nextNotfification();
} else {
this.common.redToastPK('worklist', 'save-error');
}
});

@ -404,12 +404,15 @@ export class WorklistMainPoComponent implements OnInit {
// tslint:disable-next-line: triple-equals
if (result.MessageStatus == 1) {
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
// this.openNotificationsDashboard();
this.nextNotfification();
}, 5000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
} // valid it
}
@ -1187,9 +1190,11 @@ export class WorklistMainPoComponent implements OnInit {
return;
} else if (data.data.data == "Success") {
// this.openNotificationsDashboard();
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.common.redToastPK('worklist', 'save-error');
this.nextNotfification();
}, 2000);
// this.nextNotfification();

@ -394,13 +394,16 @@ 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');
// show succsfull popup
this.messageSuccess = true;
setTimeout(() => {
this.messageSuccess = false;
}, 5000);
// this.messageSuccess = true;
// setTimeout(() => {
// this.messageSuccess = false;
// }, 5000);
// this.openNotificationsDashboard();
this.nextNotfification();
} else {
this.common.redToastPK('worklist', 'save-error');
}
} // valid it
}
@ -1111,13 +1114,16 @@ export class WorklistMainPRComponent implements OnInit {
return;
} else if (data.data.data == 'Success') {
// this.openNotificationsDashboard();
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.nextNotfification();
}, 2000);
// this.nextNotfification();
} else {
this.common.redToastPK('worklist', 'save-error');
}
});

@ -40,7 +40,8 @@
<ion-grid>
<ion-row>
<ion-col>
<div *ngIf="pInformation && pInformation != '' " class="tipsPadding">{{pInformation}}</div>
<div *ngIf="pInformation && pInformation != '' " class="tipsPadding">{{pInformation}}
</div>
</ion-col>
</ion-row>
@ -50,13 +51,16 @@
*ngIf="getPassNotificationDetails?.REQUEST_TYPE != 'ADDRESS' && getPassNotificationDetails?.REQUEST_TYPE != 'BASIC_DETAILS' ">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;" src="../assets/icon/progress-loading.gif"/></p>
<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">
<div class="no-data-div" *ngIf="notificationBodyRes?.length === 0 &&
!showInformation && stampNsNotificationBodyRes?.length === 0 &&
stampMsNotificationBodyRes?.length === 0">
<p>{{ 'general, empty' | translate}}</p>
</div>
<div *ngIf="notificationBodyRes?.length > 0">
<ion-card *ngFor="let item of notificationBodyRes;let i=index; "
style="width: 91%;">
@ -76,6 +80,165 @@
</ion-card-content>
</ion-card>
</div>
<div *ngIf="stampNsNotificationBodyRes?.length > 0">
<ion-card *ngFor="let item of stampNsNotificationBodyRes;let i=index; "
style="width: 91%;">
<ion-card-content>
<div>
<ion-row>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'userProfile, empNo'| translate}} </label>
<br />
<label>{{item.EMPLOYEE_NUMBER}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'workList, assignment-number'| translate}}</label>
<br />
<label> {{item.ASSIGNMENT_NUMBER}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'userProfile, name'| translate}}</label>
<br />
<label> {{item.EMPLOYEE_NAME}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'workList, schedule-date'| translate}}</label>
<br />
<label> {{item.SCHEDULE_DATE| date}}</label>
</ion-col>
</ion-row>
</div>
</ion-card-content>
</ion-card>
</div>
<div *ngIf="stampMsNotificationBodyRes?.length > 0">
<ion-card *ngFor="let item of stampMsNotificationBodyRes;let i=index; "
style="width: 91%;">
<ion-card-content>
<div>
<ion-row>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'userProfile, empNo'| translate}} </label>
<br />
<label>{{item.EMPLOYEE_NUMBER}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'worklist, assignment-number'| translate}}</label>
<br />
<label> {{item.ASSIGNMENT_NUMBER}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'userProfile, name'| translate}}</label>
<br />
<label> {{item.EMPLOYEE_NAME}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
{{'worklist, schedule-date'| translate}}</label>
<br />
<label> {{item.SCHEDULE_DATE| date}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
Shift Type</label>
<br />
<label> {{item.SHT_TYPE_DESC}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
Shift</label>
<br />
<label> {{item.SHT_NAME}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
Break</label>
<br />
<label> {{item.BREAK_NAME}}</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<ion-row>
<label class="colItemReq">
Actual Swipe(s)</label>
<br />
<ion-col size="6">
<label class="colItemReq">
Start</label>
<br />
<label *ngIf="item.SHT_ACTUAL_START_TIME != ''">
{{item.SHT_ACTUAL_START_TIME}}</label>
<label
*ngIf="item.SHT_ACTUAL_START_TIME == ''">--</label>
</ion-col>
<ion-col size="6">
<label class="colItemReq">
End</label>
<br />
<label *ngIf='item.SHT_ACTUAL_END_TIME != ""'>
{{item.SHT_ACTUAL_END_TIME}}</label>
<label *ngIf='item.SHT_ACTUAL_END_TIME == ""'>--</label>
</ion-col>
</ion-row>
</ion-col>
</ion-row>
<ion-row>
<ion-col class="rowBorder" size="6">
<ion-row>
<label class="colItemReq">
Approved Swipe(s)</label>
<br />
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
Start</label>
<br />
<label *ngIf='item.APPROVED_START_TIME != ""'>
{{item.APPROVED_START_TIME}}</label>
<label *ngIf='item.APPROVED_START_TIME == ""'>--</label>
</ion-col>
<ion-col class="rowBorder" size="6">
<label class="colItemReq">
Start Reason</label>
<br />
<label *ngIf='item.APPROVED_START_REASON != ""'>
{{item.APPROVED_START_REASON}}</label>
<label
*ngIf='item.APPROVED_START_REASON == ""'>--</label>
</ion-col>
<ion-col size="6">
<label class="colItemReq">
End</label>
<br />
<label *ngIf='item.SHT_ACTUAL_END_TIME !=""'>
{{item.SHT_ACTUAL_END_TIME}}</label>
<label *ngIf='item.SHT_ACTUAL_END_TIME ==""'>--</label>
</ion-col>
<ion-col size="6">
<label class="colItemReq">
End Reason</label>
<br />
<label *ngIf="item.APPROVED_END_REASON_DESC != ''">
{{item.APPROVED_END_REASON_DESC}}</label>
<label
*ngIf="item.APPROVED_END_REASON_DESC == ''">--</label>
</ion-col>
</ion-row>
</ion-col>
</ion-row>
</div>
</ion-card-content>
</ion-card>
</div>
<div style="margin: 10px;font-weight: bold; "
*ngIf="subordinatesleaveList != undefined && subordinatesleaveList?.length > 0">
{{ts.trPK('worklistMain','employee-on-leave')}}
@ -131,13 +294,14 @@
<!-- IF BASIC_DETAILS -->
<ion-col *ngIf="getPassNotificationDetails?.REQUEST_TYPE == 'BASIC_DETAILS' ||
getPassNotificationDetails?.REQUEST_TYPE == 'ADDRESS'">
<div *ngIf="showInformation">
<p>{{'worklist, loading'| translate}} <img style="width: 3%;" src="../assets/icon/progress-loading.gif"/></p>
</div>
<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 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>
@ -154,7 +318,7 @@
</ion-label>
</ion-col>
</ion-row>
<ion-row *ngFor="let item of notificationBodyRes;let i=index;">
<ion-row *ngFor="let item of notificationBodyRes;let i=index;">
<ion-col class="rowBorder" size="6"
[hidden]="item.UPDATED_FLAG == 'N'">
<label class="colItemReq">{{item.SEGMENT_PROMPT}}</label>

@ -53,6 +53,8 @@ export class WorklistMainComponent implements OnInit {
public static PASS_RES_ATTR = "passResAttr";
TransactionID: number = -999;
notificationBodyRes: any = [];
stampNsNotificationBodyRes: any =[];
stampMsNotificationBodyRes: any =[];
actionHistoryRes: any = [];
notificationButtonRes: any;
actionMode: any;
@ -110,6 +112,7 @@ export class WorklistMainComponent implements OnInit {
public arr_hr_req_only = [];
public showInformation = true;
constructor(
public worklistService: WorklistService,
public common: CommonService,
@ -405,15 +408,15 @@ export class WorklistMainComponent implements OnInit {
}
}
else if (Type === "STAMP_MS"){
if (result.GetBasicDetNtfBodyList) {
this.notificationBodyRes =
if (result.GetStampMsNotificationBodyList) {
this.stampMsNotificationBodyRes =
result.GetStampMsNotificationBodyList;
console.log(result);
}
}
else if (Type === "STAMP_NS"){
if (result.GetBasicDetNtfBodyList) {
this.notificationBodyRes =
if (result.GetStampNsNotificationBodyList) {
this.stampNsNotificationBodyRes =
result.GetStampNsNotificationBodyList;
console.log(result);
}
@ -486,12 +489,15 @@ export class WorklistMainComponent implements OnInit {
// this.notificationArray.splice(i, 1);
// }
// }
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
// this.openNotificationsDashboard();
this.nextNotfification();
}, 2000);
} else {
this.common.redToastPK('worklist', 'save-error');
}
} // valid it
}
@ -1066,12 +1072,15 @@ export class WorklistMainComponent implements OnInit {
if (data.data.data == "cancel" || data.data.data == undefined) {
return;
} else if (data.data.data == "Success") {
this.messageSuccess = true;
// this.messageSuccess = true;
this.common.greenToastPK('worklist', 'save-successfully');
setTimeout(() => {
this.messageSuccess = false;
// this.messageSuccess = false;
this.nextNotfification();
}, 2000);
// this.nextNotfification();
} else {
this.common.redToastPK('worklist', 'save-error');
}
});
return await modal.present();

@ -2559,6 +2559,14 @@
"save-error":{
"ar":"هناك شئ خاطئ، يرجى المحاولة فى وقت لاحق",
"en":"Something went wrong please try again later"
},
"assignment-number":{
"ar":"رقم التخصيص ",
"en":"Assignment Number"
},
"schedule-date":{
"ar":"تاريخ الجدول",
"en":"Schedule Date"
}
},
"worklistMain": {

Loading…
Cancel
Save