mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
pull of peter changes 3
This commit is contained in:
@@ -106,7 +106,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
AllProcess = []
|
||||
|
||||
workerList : Worker
|
||||
// workerList : Worker
|
||||
|
||||
@ViewChild(ExpedientsPage) expedientesPage: ExpedientsPage;
|
||||
@ViewChild(PendentesPage) pendentesListPage: PendentesPage;
|
||||
@@ -128,11 +128,11 @@ export class GabineteDigitalPage implements OnInit {
|
||||
public NotificationsService: NotificationsService
|
||||
) {
|
||||
|
||||
this.workerList = new Worker(new URL('./list.worker.js', import.meta.url));
|
||||
// this.workerList = new Worker(new URL('./list.worker.js', import.meta.url));
|
||||
|
||||
this.workerList.onmessage = (oEvent) => {
|
||||
this.AllProcess = oEvent.data
|
||||
}
|
||||
// this.workerList.onmessage = (oEvent) => {
|
||||
// this.AllProcess = oEvent.data
|
||||
// }
|
||||
|
||||
window.onresize = (event) => {
|
||||
// if not mobile remove all component
|
||||
@@ -197,70 +197,78 @@ export class GabineteDigitalPage implements OnInit {
|
||||
});
|
||||
|
||||
|
||||
this.NotificationsService.registerCallback(
|
||||
'despachos',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'despachos-pr',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'expediente',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'gabinete-digital',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'parecer',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'deferimento',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'diplomas-assinar',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'diplomas',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
this.NotificationsService.registerCallback(
|
||||
'expedientes-pr',
|
||||
() => {
|
||||
this.LoadCounts();
|
||||
console.log('refresh with notification')
|
||||
}
|
||||
)
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type:'despachos',
|
||||
// funx:() => {
|
||||
// // this.loadCount();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type:'*',
|
||||
// funx:() => {
|
||||
// // this.LoadCounts();
|
||||
// console.log('refresh with notification *')
|
||||
// }
|
||||
// })
|
||||
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type:'despachos-pr',
|
||||
// funx:() => {
|
||||
// // this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type:'expediente',
|
||||
// funx: () => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type:'gabinete-digital',
|
||||
// funx:() => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type:'parecer',
|
||||
// funx: () => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type: 'deferimento',
|
||||
// funx: () => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type: 'diplomas-assinar',
|
||||
// funx: () => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type: 'diplomas',
|
||||
// funx: () => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
// this.NotificationsService.registerCallback({
|
||||
// type: 'expedientes-pr',
|
||||
// funx: () => {
|
||||
// this.LoadCounts();
|
||||
// console.log('refresh with notification')
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
|
||||
@@ -578,7 +586,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
updateAllProcess() {
|
||||
this.AllProcess = this.expedientegbstore.list.concat(this.pedidosstore.listparecer).concat(this.pedidosstore.listdeferimento)
|
||||
.concat(this.despachoprstore.list).concat(this.eventoaprovacaostore.listmd).concat(this.eventoaprovacaostore.listpr).concat(this.despachoStore.list)
|
||||
.concat(this.deplomasStore.diplomasParaAssinarList).concat(this.deplomasStore.diplomasAssinadoList).concat(this.deplomasStore.DiplomaGerarList)
|
||||
.concat(this.deplomasStore.diplomasParaAssinarList).concat(this.deplomasStore.diplomasAssinadoList).concat(this.deplomasStore.DiplomaGerarList).concat(this.pendentesstore.list)
|
||||
|
||||
// try{
|
||||
// this.workerList.postMessage([
|
||||
@@ -591,8 +599,6 @@ export class GabineteDigitalPage implements OnInit {
|
||||
// .concat(this.despachoprstore.list).concat(this.eventoaprovacaostore.listmd).concat(this.eventoaprovacaostore.listpr).concat(this.despachoStore.list)
|
||||
// .concat(this.deplomasStore.diplomasParaAssinarList).concat(this.deplomasStore.diplomasAssinadoList).concat(this.deplomasStore.DiplomaGerarList)
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
get getAllProcessCount() {
|
||||
|
||||
Reference in New Issue
Block a user