mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save improvements from Moura review
This commit is contained in:
@@ -72,7 +72,6 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
approveTask(serialNumber:string){
|
approveTask(serialNumber:string){
|
||||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss(null);
|
||||||
}
|
}
|
||||||
@@ -87,7 +86,6 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
|
|
||||||
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss(null);
|
||||||
}
|
}
|
||||||
@@ -132,7 +130,6 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
//this.alertService.presentAlert('Operação cancelada!');
|
//this.alertService.presentAlert('Operação cancelada!');
|
||||||
|
|||||||
@@ -96,7 +96,10 @@ export class ViewEventPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
|
|
||||||
this.close();
|
this.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,7 +150,9 @@ export class EventEditPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
|
|
||||||
this.router.navigate(['/home/events']);
|
this.router.navigate(['/home/events']);
|
||||||
});
|
});
|
||||||
@@ -175,7 +177,9 @@ export class EventEditPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,9 @@ export class EventDetailModalPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
|
|
||||||
this.router.navigate(['/home/events']);
|
this.router.navigate(['/home/events']);
|
||||||
});
|
});
|
||||||
@@ -163,7 +165,9 @@ export class EventDetailModalPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,13 +144,13 @@ export class EventDetailPage implements OnInit {
|
|||||||
{
|
{
|
||||||
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0).subscribe(async () =>
|
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0).subscribe(async () =>
|
||||||
{
|
{
|
||||||
const alert = await this.alertController.create({
|
/* const alert = await this.alertController.create({
|
||||||
cssClass: 'my-custom-class',
|
cssClass: 'my-custom-class',
|
||||||
header: 'Evento removido',
|
header: 'Evento removido',
|
||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
await alert.present(); */
|
||||||
|
|
||||||
this.router.navigate(['/home/events']);
|
this.router.navigate(['/home/events']);
|
||||||
});
|
});
|
||||||
@@ -175,7 +175,9 @@ export class EventDetailPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+21
-16
@@ -1,24 +1,29 @@
|
|||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<div class="header-content">
|
|
||||||
<div class="header-title">
|
|
||||||
<label>Deseja eliminar este expediente?</label>
|
|
||||||
</div>
|
|
||||||
<div class="header-icon-left">
|
|
||||||
<ion-icon (click)="close()" name="close-outline"></ion-icon>
|
|
||||||
<!-- <ion-icon (click)="close()" src="assets/images/icons-arrow-arrow-left.svg"></ion-icon> -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
|
<div class="header-content width-100">
|
||||||
|
<div class="header-title d-flex width-90">
|
||||||
|
<label>Deseja retirar este expedienta da sua caixa de correspondência?</label>
|
||||||
|
</div>
|
||||||
|
<div class="header-icon-left width-10">
|
||||||
|
<button class="btn-no-color" (click)="close()">
|
||||||
|
<ion-icon name="close-outline"></ion-icon>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="header-body width-100">
|
||||||
|
<p>Nota: Ao efectuar esta operação não será possível tratar este expediente a partir da caixa de correspondência</p>
|
||||||
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
<ion-footer>
|
<ion-footer>
|
||||||
<ion-toolbar>
|
<ion-toolbar class="width-100 d-flex justify-space-between px-20">
|
||||||
<div class="buttons">
|
<ion-buttons slot="start">
|
||||||
<ion-item lines="none">
|
<button class="btn-delete" shape="round" (click)="close()">Não</button>
|
||||||
<ion-button class="button-reject" shape="round" (click)="close()">Não</ion-button>
|
</ion-buttons>
|
||||||
<ion-button class="button-approve" shape="round" (click)="save()">Sim</ion-button>
|
<ion-title></ion-title>
|
||||||
</ion-item>
|
<ion-buttons slot="end">
|
||||||
</div>
|
<button class="btn-ok" shape="round" (click)="save()">Sim</button>
|
||||||
|
</ion-buttons>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-footer>
|
</ion-footer>
|
||||||
|
|||||||
+13
-4
@@ -1,8 +1,11 @@
|
|||||||
|
ion-content{
|
||||||
|
--padding-top:15px;
|
||||||
|
--padding-start: 15px;
|
||||||
|
--padding-end: 15px;
|
||||||
|
}
|
||||||
.header-content{
|
.header-content{
|
||||||
width: 360px;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 25px;
|
|
||||||
}
|
}
|
||||||
.header-icon-left{
|
.header-icon-left{
|
||||||
width: 36px;
|
width: 36px;
|
||||||
@@ -11,13 +14,19 @@
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
.header-title{
|
.header-title{
|
||||||
width: 264px;
|
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 25px;
|
font-size: 20px;
|
||||||
margin: 0 5px 0 5px;
|
margin: 0 5px 0 5px;
|
||||||
color:#000;
|
color:#000;
|
||||||
float: left;
|
float: left;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
.header-body{
|
||||||
|
margin: 0 5px 0 5px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.buttons{
|
.buttons{
|
||||||
width: 320px;
|
width: 320px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|||||||
-3
@@ -80,7 +80,6 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss(null);
|
||||||
}
|
}
|
||||||
@@ -98,7 +97,6 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss(null);
|
||||||
}
|
}
|
||||||
@@ -145,7 +143,6 @@ export class ApproveEventModalPage implements OnInit {
|
|||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
//this.alertService.presentAlert('Operação cancelada!');
|
//this.alertService.presentAlert('Operação cancelada!');
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ export class ApproveEventPage implements OnInit {
|
|||||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,7 +92,6 @@ export class ApproveEventPage implements OnInit {
|
|||||||
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list'])
|
this.router.navigate(['/home/gabinete-digital/event-list'])
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
@@ -140,7 +138,6 @@ export class ApproveEventPage implements OnInit {
|
|||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list'])
|
this.router.navigate(['/home/gabinete-digital/event-list'])
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//this.alertService.presentAlert('Operação cancelada!');
|
//this.alertService.presentAlert('Operação cancelada!');
|
||||||
|
|||||||
+4
-4
@@ -26,10 +26,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class">
|
<div class="ion-input-class">
|
||||||
<ion-select placeholder="Prazo" [(ngModel)]="postData.Priority" interface="action-sheet" Cancel-text="Cancelar" required>
|
<ion-select placeholder="Prazo" [(ngModel)]="postData.Priority" interface="action-sheet" Cancel-text="Cancelar" required>
|
||||||
<ion-select-option value="99999861">Normal</ion-select-option>
|
<ion-select-option value="99999861">Normal (4 dias para a execução da tarefa)</ion-select-option>
|
||||||
<ion-select-option value="99999862">Urgente</ion-select-option>
|
<ion-select-option value="99999862">Urgente (2 dias para a execução da tarefa)</ion-select-option>
|
||||||
<ion-select-option value="99999863">Muito Urgente</ion-select-option>
|
<ion-select-option value="99999863">Muito Urgente (1 dia para a execução da tarefa)</ion-select-option>
|
||||||
<ion-select-option value="99999864">Urgentíssimo</ion-select-option>
|
<ion-select-option value="99999864">Urgentíssimo (8 horas para a execução da tarefa)</ion-select-option>
|
||||||
</ion-select>
|
</ion-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -153,7 +153,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
DispatchFolder: this.dispatchFolder,
|
DispatchFolder: this.dispatchFolder,
|
||||||
}
|
}
|
||||||
console.log(this.postData);
|
console.log(this.postData);
|
||||||
this.processes.postDespatcho(this.postData);
|
//this.processes.postDespatcho(this.postData);
|
||||||
break;
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
this.postData = {
|
this.postData = {
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.modalController.dismiss(serialNumber);
|
this.modalController.dismiss(serialNumber);
|
||||||
/* this.approveEventDismiss.emit({
|
/* this.approveEventDismiss.emit({
|
||||||
"serialNumber": serialNumber,
|
"serialNumber": serialNumber,
|
||||||
@@ -99,7 +98,6 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss(null);
|
||||||
}
|
}
|
||||||
@@ -148,7 +146,6 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
//this.router.navigate(['/home/gabinete-digital/event-list']);
|
//this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
|
||||||
this.goToEventsToApprove();
|
this.goToEventsToApprove();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@@ -99,7 +99,9 @@ export class ViewEventPage implements OnInit {
|
|||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
});
|
});
|
||||||
|
|
||||||
await alert.present();
|
setTimeout(()=>{
|
||||||
|
alert.dismiss();
|
||||||
|
}, 1500);
|
||||||
this.close();
|
this.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user