mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
28 KiB
JSON
1 line
28 KiB
JSON
|
|
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./pedidos.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./pedidos.page.scss?ngResource\";\nimport { Component, EventEmitter, Output, ViewChild } from '@angular/core';\nimport { ActivatedRoute, NavigationStart, Router } from '@angular/router';\nimport { CalendarComponent } from 'ionic2-calendar';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { Platform } from '@ionic/angular';\nimport { AlertService } from 'src/app/services/alert.service';\nimport { PedidosStore } from 'src/app/store/pedidos-store.service';\nimport { ModalService } from 'src/app/services/modal.service';\nimport { SqliteService } from 'src/app/services/sqlite.service';\nimport { BackgroundService } from 'src/app/services/background.service';\nimport { SortService } from 'src/app/services/functions/sort.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { TaskService } from 'src/app/services/task.service';\nimport { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';\nimport { RouteService } from 'src/app/services/route.service';\nlet PedidosPage = class PedidosPage {\n constructor(router, processes, alertService, activatedRoute, modalService, sqliteservice, sortService, backgroundservice, platform, ThemeService, TaskService, RouteService) {\n this.router = router;\n this.processes = processes;\n this.alertService = alertService;\n this.activatedRoute = activatedRoute;\n this.modalService = modalService;\n this.sqliteservice = sqliteservice;\n this.sortService = sortService;\n this.backgroundservice = backgroundservice;\n this.platform = platform;\n this.ThemeService = ThemeService;\n this.TaskService = TaskService;\n this.RouteService = RouteService;\n this.taskslist = [];\n this.parecerList = [];\n this.listToPresentparecerList = [];\n this.listToPresentdeferimentoList = [];\n this.parecerListResult = [];\n this.deferimentoListResult = [];\n this.deferimentoList = [];\n this.skeletonLoader = true;\n this.pedidosstorage = PedidosStore;\n this.customTaskPipe = new CustomTaskPipe();\n this.openExpedientDetail = new EventEmitter();\n this.filterName = 'Todos';\n this.showSearch = false;\n this.searchSubject = '';\n this.list = [];\n this.ordinance = 'old';\n this.listPedidosParecer = [];\n this.listPedidosDeferimento = [];\n this.segment = 'parecer';\n this.activatedRoute.queryParams.subscribe(params => {\n if (params['deferimento'] == 'true') {\n this.segment = 'deferimento';\n } else if (params['parecer'] == 'true') {\n this.segment = 'parecer';\n }\n });\n const modal = this.modalService.BookMeetingModalPage({\n task: ''\n }, {});\n }\n ngOnInit() {\n this.LoadList();\n this.router.events.forEach(event => {\n if (event instanceof NavigationStart && '/home/gabinete-digital/pedidos?parecer=true'.startsWith(event.url) || event instanceof NavigationStart && '/home/gabinete-digital/pedidos?deferimento=true'.startsWith(event.url)) {\n if (window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {\n this.refreshing();\n } else {\n this.LoadList();\n }\n }\n });\n this.backgroundservice.registerBackService('Online', () => {\n this.getFromDb();\n });\n this.dynamicSearch();\n }\n reorderList(orderBy) {\n this.ordinance = orderBy;\n this.dynamicSearch();\n }\n dynamicSearch() {\n var _this = this;\n return _asyncToGenerator(function* () {\n if (_this.showSearch && _this.searchSubject) {\n const listPedidosParecer = _this.pedidosstorage.listparecer.filter(task => {\n let subject = task.Folio || task.Subject || task.workflowInstanceDataFiel
|