mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
<iframe id="iframe" [src]="trustedUrl" height="100%" width="100%" title="Iframe Example"></iframe>
|
<iframe id="iframe" [src]="trustedUrl" height="100%" width="100%" title="Iframe Example"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!trustedUrl" class=" height-100 width-100 d-flex align-center justify-center">
|
<div *ngIf="!trustedUrl" style="text-align: center;" class=" height-100 width-100 d-flex align-center justify-center">
|
||||||
Estamos a preparar a visualização do documento. Por favor aguarde.
|
Estamos a preparar a visualização do documento. Por favor aguarde.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ import { ToastService } from 'src/app/services/toast.service';
|
|||||||
import { EliminateEventPage } from 'src/app/modals/eliminate-event/eliminate-event.page';
|
import { EliminateEventPage } from 'src/app/modals/eliminate-event/eliminate-event.page';
|
||||||
import { Location } from '@angular/common'
|
import { Location } from '@angular/common'
|
||||||
import { ExpedientTaskModalPageNavParamsTask } from 'src/app/models/ExpedientTaskModalPage';
|
import { ExpedientTaskModalPageNavParamsTask } from 'src/app/models/ExpedientTaskModalPage';
|
||||||
import { SearchDocumentDetails, SearchFolderDetails } from 'src/app/models/search-document';
|
|
||||||
import { EventDetailsDocumentsOptionsPage } from 'src/app/shared/popover/event-details-documents-options/event-details-documents-options.page';
|
|
||||||
import { SearchedDocumentOptionsPage } from 'src/app/shared/popover/searched-document-options/searched-document-options.page';
|
|
||||||
import { DocumentSetUpMeetingPage } from 'src/app/modals/document-set-up-meeting/document-set-up-meeting.page';
|
import { DocumentSetUpMeetingPage } from 'src/app/modals/document-set-up-meeting/document-set-up-meeting.page';
|
||||||
import { ExpedientTaskModalPage } from '../../gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
import { ExpedientTaskModalPage } from '../../gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
||||||
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
|
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
|
||||||
|
|||||||
@@ -172,70 +172,6 @@ export class ViewEventPage implements OnInit {
|
|||||||
|
|
||||||
const docId = this.loadedEvent.Attachments[ this.dicIndex].SourceId
|
const docId = this.loadedEvent.Attachments[ this.dicIndex].SourceId
|
||||||
const applicationId: any = this.loadedEvent.Attachments[ this.dicIndex].ApplicationId
|
const applicationId: any = this.loadedEvent.Attachments[ this.dicIndex].ApplicationId
|
||||||
|
|
||||||
// this.processes.GetDocumentDetails(docId, applicationId).subscribe( async(res)=> {
|
|
||||||
|
|
||||||
// this.LoadedDocument = res;
|
|
||||||
// this.LoadedDocument.Subject = this.LoadedDocument.Assunto
|
|
||||||
|
|
||||||
// let thedate = new Date(this.LoadedDocument.DateDispatch || this.LoadedDocument.DocDate);
|
|
||||||
// this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
|
|
||||||
|
|
||||||
// let task: ExpedientTaskModalPageNavParamsTask
|
|
||||||
// let document: SearchDocumentDetails = this.LoadedDocument
|
|
||||||
// let folder: SearchFolderDetails = this.LoadedDocument
|
|
||||||
|
|
||||||
// if(this.LoadedDocument.ApplicationID == 361 || this.LoadedDocument.ApplicationId == 361) {
|
|
||||||
// task = {
|
|
||||||
// serialNumber: folder.DispatchNumber,
|
|
||||||
// taskStartDate: folder.DateDispatch,
|
|
||||||
// isEvent: true,
|
|
||||||
// workflowInstanceDataFields: {
|
|
||||||
// FolderID: folder['FolderId'] || folder['FolderID'] || folder.folderId,
|
|
||||||
// Subject: folder.Assunto,
|
|
||||||
// SourceSecFsID: folder.ApplicationID || folder['ApplicationId'],
|
|
||||||
// SourceType: 'FOLDER',
|
|
||||||
// SourceID: folder.folderId,
|
|
||||||
// DispatchNumber: folder.DispatchNumber
|
|
||||||
// },
|
|
||||||
// }
|
|
||||||
// } else if (document.ApplicationID == 8 || document.ApplicationId == 8) {
|
|
||||||
// task = {
|
|
||||||
// serialNumber: document.DocId,
|
|
||||||
// taskStartDate: document.DocDate,
|
|
||||||
// isEvent: true,
|
|
||||||
// workflowInstanceDataFields: {
|
|
||||||
// FolderID: null,
|
|
||||||
// Subject: document.Assunto,
|
|
||||||
// DispatchNumber: null,
|
|
||||||
// SourceSecFsID: document.ApplicationID || document.ApplicationId,
|
|
||||||
// SourceType: 'DOC',
|
|
||||||
// SourceID: document.DocId,
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// console.log('unexpected ApplicationID')
|
|
||||||
// }
|
|
||||||
|
|
||||||
// const modal = await this.modalController.create({
|
|
||||||
// component: ViewDocumentPage,
|
|
||||||
// componentProps: {
|
|
||||||
// trustedUrl: '',
|
|
||||||
// file: {
|
|
||||||
// title: task.workflowInstanceDataFields.Subject,
|
|
||||||
// url: '',
|
|
||||||
// title_link: '',
|
|
||||||
// },
|
|
||||||
// Document: this.LoadedDocument,
|
|
||||||
// applicationId: task.workflowInstanceDataFields.SourceSecFsID,
|
|
||||||
// docId: this.LoadedDocument.DocId || this.LoadedDocument.DocID,
|
|
||||||
// folderId: folder['FolderId'] || folder['FolderID'] || folder.folderId
|
|
||||||
// },
|
|
||||||
// cssClass: 'modal modal-desktop'
|
|
||||||
// });
|
|
||||||
// await modal.present();
|
|
||||||
// });
|
|
||||||
|
|
||||||
const selectedDoc = this.loadedEvent.Attachments[ this.dicIndex]
|
const selectedDoc = this.loadedEvent.Attachments[ this.dicIndex]
|
||||||
|
|
||||||
console.log('selectedDoc', selectedDoc)
|
console.log('selectedDoc', selectedDoc)
|
||||||
@@ -254,7 +190,6 @@ export class ViewEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: ViewDocumentPage,
|
component: ViewDocumentPage,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
|||||||
Reference in New Issue
Block a user