This commit is contained in:
tiago.kayaya
2021-03-24 17:43:55 +01:00
parent d9a04c7519
commit dbaa967482
3 changed files with 38 additions and 5 deletions
@@ -84,9 +84,16 @@
<h5>Intervenientes</h5>
<ion-item class="ion-no-margin ion-no-padding">
<ion-label>
<div>
<p>Tiago Kayaya</p>
<p>Tiago Kayaya</p>
<div *ngFor="let interveniente of intervenientes">
<p>{{interveniente.Name}}</p>
</div>
</ion-label>
</ion-item>
<h5>Com conhecimento</h5>
<ion-item class="ion-no-margin ion-no-padding">
<ion-label>
<div *ngFor="let c of cc">
<p>{{c.Name}}</p>
</div>
</ion-label>
</ion-item>
@@ -26,6 +26,8 @@ export class ExpedienteDetailPage implements OnInit {
eventsList: Event[];
serialnumber: string;
profile: string;
intervenientes: any;
cc: any;
constructor(private activateRoute: ActivatedRoute,
private processes: ProcessesService,
@@ -68,9 +70,20 @@ export class ExpedienteDetailPage implements OnInit {
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
"Remetente": res.workflowInstanceDataFields.Sender,
"Note": res.workflowInstanceDataFields.Note,
"FolderId": res.workflowInstanceDataFields.FolderID
}
this.fulltask = res;
console.log(res);
this.processes.GetTaskParticipants(this.task.FolderId).subscribe(users=>{
this.intervenientes = users.filter(user=>{
return user.Type == 'I';
});
this.cc = users.filter(user=>{
return user.Type == 'CC';
});
console.log(users);
})
});
}