mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -22,16 +22,16 @@
|
|||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
|
|
||||||
<div class="main-content width-100">
|
<div class="width-100">
|
||||||
<div *ngIf="despachoList">
|
<div *ngIf="despachoList">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-item
|
<ion-item
|
||||||
class="expediente ion-no-padding cursor-pointer"
|
class="expediente ion-no-padding cursor-pointer"
|
||||||
*ngFor = "let task of despachoList; let i = index"
|
*ngFor = "let task of despachoList; let i = index"
|
||||||
(click)="goToDespachoPr(task.SerialNumber)"
|
(click)="viewExpedientDetail(task.SerialNumber)"
|
||||||
>
|
>
|
||||||
<!-- [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]" -->
|
<!-- [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]" -->
|
||||||
<div class="item width-100" *ngIf="task.Status == 'Active'">
|
<div class="item width-100">
|
||||||
<div class="exp-top-detail">
|
<div class="exp-top-detail">
|
||||||
<div class="exp-date">
|
<div class="exp-date">
|
||||||
<ion-label>{{ task.CreateDate | date: 'dd-MM-yy' }}</ion-label>
|
<ion-label>{{ task.CreateDate | date: 'dd-MM-yy' }}</ion-label>
|
||||||
@@ -45,6 +45,10 @@
|
|||||||
<div class="exp-icon d-flex align-center">
|
<div class="exp-icon d-flex align-center">
|
||||||
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
||||||
<label>{{task.DocumentsQty}}</label>
|
<label>{{task.DocumentsQty}}</label>
|
||||||
|
|
||||||
|
<!-- <ion-menu-button (click)="docIndex(i)" style="width: 35px; height: 41px;" autoHide="false">
|
||||||
|
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
||||||
|
</ion-menu-button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-bottom-detail">
|
<div class="exp-bottom-detail">
|
||||||
@@ -56,7 +60,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="loading">
|
<div *ngIf="despachoList.length < 1">
|
||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-item>
|
<ion-item>
|
||||||
|
|||||||
@@ -98,13 +98,15 @@ goToDespachoPr(serialNumber:any){
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
let result = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
let result = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
||||||
|
console.log(result);
|
||||||
|
|
||||||
let despachosPr;
|
let despachosPr;
|
||||||
switch (this.loggeduser.Profile) {
|
switch (this.loggeduser.Profile) {
|
||||||
case 'MDGPR':
|
case 'MDGPR':
|
||||||
despachosPr = result.reverse().filter(data => data.activityInstanceName == "Tarefa de Despacho");
|
despachosPr = result.reverse().filter(data => data.activityInstanceName == "Assinar diploma");
|
||||||
break;
|
break;
|
||||||
case 'PR':
|
case 'PR':
|
||||||
despachosPr = result.reverse().filter(data => data.activityInstanceName == "Assinar diploma");
|
despachosPr = result.reverse().filter(data => data.activityInstanceName == "Concluir Despacho");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
console.log(despachosPr);
|
console.log(despachosPr);
|
||||||
|
|||||||
Reference in New Issue
Block a user