Add parecer and deferimento integration

Create models
Update methods in processes
This commit is contained in:
Tiago Kayaya
2020-11-17 14:59:33 +01:00
parent 3ee87a0845
commit 52908b509d
10 changed files with 161 additions and 57 deletions
@@ -34,17 +34,12 @@ export class ApproveEventModalPage implements OnInit {
)
{
this.serialNumber = this.navParams.get('serialNumber');
}
ngOnInit() {
this.getTask();
console.log(this.today);
this.getTask();
}
notImplemented(){
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
}
@@ -77,8 +72,7 @@ export class ApproveEventModalPage implements OnInit {
console.log('Emendar');
this.menu.close();
this.openEmendMessageModal(serialNumber);
/* this.modalController.dismiss(null); */
this.modalController.dismiss(null);
}
rejectTask(serialNumber:string){
@@ -125,8 +119,8 @@ export class ApproveEventModalPage implements OnInit {
}
console.log(body);
this.processes.PostTaskAction(body);
this.alertService.presentAlert('Operação realizada com sucesso!');
this.router.navigate(['/home/gabinete-digital/event-list']);
this.alertService.presentAlert('Operação realizada com sucesso!');
}
else{
this.alertService.presentAlert('Operação cancelada!');