This commit is contained in:
tiago.kayaya
2021-07-13 14:34:05 +01:00
parent 03c9b56ea4
commit bc3306366b
16 changed files with 184 additions and 177 deletions
@@ -17,7 +17,7 @@ import { PedidoPage } from 'src/app/pages/gabinete-digital/pedidos/pedido/pedido
styleUrls: ['./pedidos.page.scss'],
})
export class PedidosPage implements OnInit {
//profile:string;
@ViewChild(CalendarComponent) myCal: CalendarComponent;
@@ -25,7 +25,7 @@ export class PedidosPage implements OnInit {
taskslist:DailyWorkTask[];
parecerList:any[];
fulltask:any;
parecerListResult:tasksList[] = [];
deferimentoListResult:tasksList[] = [];
@@ -39,11 +39,11 @@ export class PedidosPage implements OnInit {
@Output() openPedido:EventEmitter<any> = new EventEmitter<any>();
constructor(
private router: Router,
private router: Router,
private processes:ProcessesService,
private modalController: ModalController,
private alertService: AlertService,
) {
) {
this.profile = 'mdgpr';
}
@@ -57,7 +57,7 @@ export class PedidosPage implements OnInit {
}
});
}
segmentChanged(ev: any) {
this.LoadList();
}
@@ -101,16 +101,17 @@ export class PedidosPage implements OnInit {
"FolderID": element.workflowInstanceDataFields.FolderID,
"WorkflowName": element.workflowDisplayName,
"activityInstanceName": element.activityInstanceName,
"Status": element.workflowInstanceDataFields.Status,
}
this.parecerList.push(task);
});
}
else if(this.segment == 'deferimento') {
this.taskType = "Pedido de Deferimento";
this.processes.GetTasksList("Pedido de Deferimento", false).subscribe(result => {
this.taskslist = result;
this.deferimentoList = new Array();
let res = result.reverse();
res.forEach(element => {
@@ -133,7 +134,7 @@ export class PedidosPage implements OnInit {
}
this.deferimentoList.push(task);
});
});
}
}
@@ -168,4 +169,3 @@ export class PedidosPage implements OnInit {
}