Verb of the action changed

This commit is contained in:
Eudes Inácio
2023-02-17 12:18:28 +01:00
parent d44ca806ef
commit 87d8863d7d
23 changed files with 65 additions and 15 deletions
@@ -437,6 +437,7 @@ export class DespachoPrPage implements OnInit {
component: AddNotePage,
componentProps: {
showAttachmentBtn: true,
actionName: actionName
},
cssClass: classs,
backdropDismiss: true
@@ -127,7 +127,7 @@
<div *ngIf="task" class="aside-right flex-column height-100 overflow-y-auto">
<div class="buttons" *ngIf="task.activityInstanceName == 'Tarefa de Despacho'">
<div class="option-desc" *ngIf="task.WorkflowName == 'Despacho do Presidente da República' "> <div>Responder ao PR</div> </div>
<button (click)="openAddNoteModal('Executado')" class="btn-cancel" shape="round" >Executado</button>
<button (click)="tstemethod(executadoText)" class="btn-cancel" shape="round" >Executado</button>
<div class="option-desc" *ngIf="task.WorkflowName == 'Despacho do Presidente da República' ">Reencaminhar para Área Jurídica</div>
<button (click)="openAddNoteModal('Gerar Diploma')" *ngIf="task.WorkflowName == 'Despacho do Presidente da República'" class="btn-cancel" style="margin-bottom: 0px !important;" shape="round" >Gerar Diploma </button>
<div class="option-desc" *ngIf="task.WorkflowName == 'Despacho do Presidente da República' " >Outras opções</div>
@@ -140,7 +140,7 @@
<button (click)="sendExpedienteToPending()" *ngIf="task.Status != 'Pending'" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
</div>
<div class="buttons" *ngIf="task.activityInstanceName == 'Reexecutar Despacho'">
<button (click)="openAddNoteModal('Executado')" class="btn-cancel" shape="round" >Executado</button>
<button (click)="tstemethod('Executado')" class="btn-cancel" shape="round" >Executado</button>
<button (click)="openDelegarModal(task)" class="btn-cancel" shape="round" >Delegar</button>
<div class="solid"></div>
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efetuar Despacho</button>
@@ -47,6 +47,9 @@ export class DespachoPage implements OnInit {
profile: string;
intervenientes: any = []
cc: any = [];
executadoText: string = "Executado";
gerarText: string = "Gerar"
constructor(private activateRoute: ActivatedRoute,
private processes: ProcessesService,
@@ -394,7 +397,12 @@ export class DespachoPage implements OnInit {
// loader.remove()
}
tstemethod(value: string) {
alert(value)
}
async openAddNoteModal(actionName: string) {
let classs;
if (window.innerWidth <= 800) {
classs = 'modal modal-desktop'
@@ -405,6 +413,7 @@ export class DespachoPage implements OnInit {
component: AddNotePage,
componentProps: {
showAttachmentBtn: true,
actionName: actionName
},
cssClass: classs,
backdropDismiss: true
@@ -212,6 +212,7 @@ export class DiplomasGerarPage implements OnInit {
component: AddNotePage,
componentProps: {
showAttachmentBtn: true,
actionName:false
},
cssClass: classs,
backdropDismiss: true
@@ -377,6 +377,7 @@ export class DiplomaPage implements OnInit {
const modal = await this.modalController.create({
component: AddNotePage,
componentProps: {
actionName:actionName
},
cssClass: classs,
backdropDismiss: true
@@ -297,6 +297,7 @@ export class ExpedienteDetailPage implements OnInit {
component: AddNotePage,
componentProps: {
showAttachmentBtn: false,
actionName:actionName
},
cssClass: classs,
//backdropDismiss: true
@@ -366,6 +366,7 @@ export class ExpedientePrPage implements OnInit {
component: AddNotePage,
componentProps: {
showAttachmentBtn: false,
actionName:actionName
},
cssClass: classs,
//backdropDismiss: true
@@ -663,6 +663,7 @@ export class PedidoPage implements OnInit {
component: AddNotePage,
componentProps: {
showAttachmentBtn: true,
actionName:actionName
},
cssClass: classs,
backdropDismiss: true