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