mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
1 line
22 KiB
JSON
1 line
22 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 \"./forward.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./forward.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { AlertController, AnimationController, ModalController, NavParams } from '@ionic/angular';\nimport { Event } from 'src/app/models/event.model';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { EventsService } from 'src/app/services/events.service';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nimport { AlertService } from 'src/app/services/alert.service';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { SearchPage } from 'src/app/pages/search/search.page';\nimport { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.page';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nlet ForwardPage = class ForwardPage {\n constructor(modalController, router, navParams, processes, attachmentsService, calendarService, alertController, alertService, animationController, toastService, ThemeService, httpErroHandle) {\n this.modalController = modalController;\n this.router = router;\n this.navParams = navParams;\n this.processes = processes;\n this.attachmentsService = attachmentsService;\n this.calendarService = calendarService;\n this.alertController = alertController;\n this.alertService = alertService;\n this.animationController = animationController;\n this.toastService = toastService;\n this.ThemeService = ThemeService;\n this.httpErroHandle = httpErroHandle;\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.adding = \"intervenient\";\n this.formLocationSatus = false;\n this.showAttendees = false;\n this.documents = [];\n this.task = this.navParams.get('task');\n this.postData = new Event();\n this.eventBody = {\n BodyType: \"1\",\n Text: \"\"\n };\n this.postData.Body = this.eventBody;\n this.postData.Subject = this.task.Folio;\n this.postData.CalendarName = \"Oficial\";\n let selectedEndDate = new Date();\n }\n ngOnInit() {\n this.adding = \"intervenient\";\n }\n close() {\n this.router.navigate(['/home/gabinete-digital/expediente']);\n this.modalController.dismiss(null);\n }\n cancelTask() {\n this.modalController.dismiss(null);\n }\n goBack() {\n this.modalController.dismiss(null);\n if (window.innerWidth <= 800) {\n this.router.navigate(['/home/gabinete-digital/pedidos']);\n } else {\n let navigationExtras = {\n queryParams: {\n \"pedidos\": true\n }\n };\n this.router.navigate(['/home/gabinete-digital'], navigationExtras);\n }\n }\n assignar(note, documents) {\n var _this = this;\n return _asyncToGenerator(function* () {\n let body = {\n \"serialNumber\": _this.task.SerialNumber,\n \"action\": \"Reencaminhar\",\n \"ActionTypeId\": 98,\n \"dataFields\": {\n \"ReviewUserComment\": note\n },\n \"AttachmentList\": documents\n };\n })();\n }\n notImplemented() {\n this.alertService.presentAlert('Funcionalidade em desenvolvimento');\n }\n saveTask() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n const DocumentToSave = _this2.documents.map(e => {\n return {\n ApplicationId: e.ApplicationType,\n SourceId: e.Id\n };\n });\n let docs = {\n ProcessInstanceID: \"\",\n Attachments: DocumentToSave\n };\n if (_this2.taskParticipants.length < 1) {\n _this2.toastService._badRequest(\"Selecione um destinatário\");\n } else {\n let atte
|