mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
+10
-3
@@ -84,9 +84,16 @@
|
|||||||
<h5>Intervenientes</h5>
|
<h5>Intervenientes</h5>
|
||||||
<ion-item class="ion-no-margin ion-no-padding">
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<div>
|
<div *ngFor="let interveniente of intervenientes">
|
||||||
<p>Tiago Kayaya</p>
|
<p>{{interveniente.Name}}</p>
|
||||||
<p>Tiago Kayaya</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>
|
</div>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
eventsList: Event[];
|
eventsList: Event[];
|
||||||
serialnumber: string;
|
serialnumber: string;
|
||||||
profile: string;
|
profile: string;
|
||||||
|
intervenientes: any;
|
||||||
|
cc: any;
|
||||||
|
|
||||||
constructor(private activateRoute: ActivatedRoute,
|
constructor(private activateRoute: ActivatedRoute,
|
||||||
private processes: ProcessesService,
|
private processes: ProcessesService,
|
||||||
@@ -68,9 +70,20 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
||||||
"Remetente": res.workflowInstanceDataFields.Sender,
|
"Remetente": res.workflowInstanceDataFields.Sender,
|
||||||
"Note": res.workflowInstanceDataFields.Note,
|
"Note": res.workflowInstanceDataFields.Note,
|
||||||
|
"FolderId": res.workflowInstanceDataFields.FolderID
|
||||||
}
|
}
|
||||||
this.fulltask = res;
|
this.fulltask = res;
|
||||||
console.log(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);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,8 +37,7 @@ export class ProcessesService {
|
|||||||
return this.http.get<any>(`${geturl}`, options);
|
return this.http.get<any>(`${geturl}`, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetTask(serialnumber:string): Observable<any>
|
GetTask(serialnumber:string): Observable<any>{
|
||||||
{
|
|
||||||
const geturl = environment.apiURL + 'Tasks/FindTask';
|
const geturl = environment.apiURL + 'Tasks/FindTask';
|
||||||
let params = new HttpParams();
|
let params = new HttpParams();
|
||||||
|
|
||||||
@@ -50,6 +49,20 @@ export class ProcessesService {
|
|||||||
};
|
};
|
||||||
return this.http.get<any>(`${geturl}`, options);
|
return this.http.get<any>(`${geturl}`, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GetTaskParticipants(folderId:string): Observable<any>{
|
||||||
|
const geturl = environment.apiURL + 'Processes/GetUsersInDispash';
|
||||||
|
let params = new HttpParams();
|
||||||
|
|
||||||
|
params = params.set("folderId", folderId);
|
||||||
|
|
||||||
|
let options = {
|
||||||
|
headers: this.headers,
|
||||||
|
params: params
|
||||||
|
};
|
||||||
|
return this.http.get<any>(`${geturl}`, options);
|
||||||
|
}
|
||||||
|
|
||||||
FindTaskDocId(serialnumber:string): Observable<any>
|
FindTaskDocId(serialnumber:string): Observable<any>
|
||||||
{
|
{
|
||||||
const geturl = environment.apiURL + 'Tasks/FindExpedienteDocId';
|
const geturl = environment.apiURL + 'Tasks/FindExpedienteDocId';
|
||||||
|
|||||||
Reference in New Issue
Block a user