mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add viewer
This commit is contained in:
@@ -9,14 +9,15 @@ import { DespachoPageRoutingModule } from './despacho-routing.module';
|
||||
import { DespachoPage } from './despacho.page';
|
||||
import { SharedModule } from 'src/app/shared/shared.module';
|
||||
import { TaskDetailsPageModule } from 'src/app/shared/gabinete-digital/generic/task-details/task-details.module'
|
||||
import { ViewerAttachmentPageModule } from '../../viewer-attachment/viewer-attachment.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
|
||||
DespachoPageRoutingModule,
|
||||
ViewerAttachmentPageModule,
|
||||
TaskDetailsPageModule,
|
||||
SharedModule
|
||||
],
|
||||
|
||||
@@ -33,44 +33,8 @@
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="overflow-y-auto" style="margin-right: -20px; margin-right: -20px;">
|
||||
<div class="middle-content">
|
||||
<h5 *ngIf="intervenientes">Intervenientes</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding">
|
||||
<ion-label>
|
||||
<div *ngFor="let task of intervenientes">
|
||||
<p>{{task.Name}}</p>
|
||||
</div>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<div *ngIf="cc.length > 0">
|
||||
<h5 class="font-17-rem">Com conhecimento</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding">
|
||||
<ion-label>
|
||||
<div *ngFor="let c of cc">
|
||||
<p>{{c.Name}}</p>
|
||||
</div>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</div>
|
||||
<div *ngIf="fulltask.workflowInstanceDataFields.TaskMessage">
|
||||
<h5 class="font-17-rem">Detalhes</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding">
|
||||
<pre class="width-100 text">{{ fulltask.workflowInstanceDataFields.TaskMessage }} </pre>
|
||||
</ion-item>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-content width-100">
|
||||
<ion-list>
|
||||
<h5 class="font-17-rem">Documentos Anexados</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding cursor-pointer" *ngFor="let Document of mergedArray">
|
||||
<ion-label class="d-block" (click)="viewDocument(Document.DocId, Document,Document.content)">
|
||||
<p class="attach-title-item">{{ Document.Assunto || "Sem assunto" }} <span class="document-type" *ngIf="Document.content != ''">Rascunho</span></p>
|
||||
<p><span class="span-left">{{ Document.Sender}}</span><span class="span-right">{{ Document.DocDate | date: 'dd-MM-yyyy HH:mm' }}</span></p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
<div class="overflow-y-auto height-100" style="margin-right: -20px; margin-left: -20px; overflow: hidden">
|
||||
<app-viewer-attachment class="height-100" ></app-viewer-attachment>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -51,6 +51,10 @@ const routes: Routes = [
|
||||
{
|
||||
path: 'diplomas-gerar',
|
||||
loadChildren: () => import('./diplomas-gerar/diplomas-gerar.module').then( m => m.DiplomasGerarPageModule)
|
||||
},
|
||||
{
|
||||
path: 'viewer-attachment',
|
||||
loadChildren: () => import('./viewer-attachment/viewer-attachment.module').then( m => m.ViewerAttachmentPageModule)
|
||||
},
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const Bodyschema = z.object({
|
||||
SerialNumber: z.string(),
|
||||
DispatchDocId: z.number(),
|
||||
FolderID: z.any(),
|
||||
Subject: z.string(),
|
||||
Comment: z.string().optional(),
|
||||
DelegatedUserEmail: z.string().email(),
|
||||
UserId: z.any(),
|
||||
DraftIds: z.string(),
|
||||
})
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ViewerAttachmentPage } from './viewer-attachment.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: ViewerAttachmentPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class ViewerAttachmentPageRoutingModule {}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ViewerAttachmentPageRoutingModule } from './viewer-attachment-routing.module';
|
||||
|
||||
import { ViewerAttachmentPage } from './viewer-attachment.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ViewerAttachmentPageRoutingModule
|
||||
],
|
||||
declarations: [ViewerAttachmentPage],
|
||||
exports: [ViewerAttachmentPage],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class ViewerAttachmentPageModule {}
|
||||
@@ -0,0 +1,22 @@
|
||||
<div class="height-100 d-flex flex-column overflow-hidden">
|
||||
|
||||
<div class="overflow-x-auto d-flex pa-10" style="background-color: #d9d9d9;">
|
||||
<div class="pa-10 mx-10 card-text selected-card ">
|
||||
<div style="overflow: auto;">
|
||||
Attachment 1 sdhnfjanshdfhnasdhfahsdfja shdf asdf
|
||||
123123
|
||||
</div>
|
||||
</div>
|
||||
<div class="pa-10 mx-10 card-text">
|
||||
<div style="overflow: auto;"s>Attachment 2</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="height-100" >
|
||||
|
||||
<iframe _ngcontent-lxc-c492="" height="100%" width="100%" title="Iframe Example" class="iframe" src="https://gdviewer-dev.dyndns.info/pdfjs/web/viewpdf.aspx?file=/arq/638429873997432492.pdf&i=MjYxIzgjMTA2IzE3IzEyODA5MSNEb2N1bWVudENlbnRlcg==&e=MA==&p=MA==&m=cGF1bG8ucGludG9AZ2FiaW5ldGVkaWdpdGFsLmxvY2Fs&d=MA==&n=UGF1bG8gUGludG8=&mId=MA==&al=MA==&cn=T0E=&wm=RmFsc2U=&L=MA==&attInstance=MA==&OpenFromMail=MA=="></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
.card-text {
|
||||
width: 150px;
|
||||
border: 1px solid black;
|
||||
text-align: center;
|
||||
background: white;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
p {
|
||||
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.selected-card {
|
||||
border: 3px solid #ffb703;
|
||||
color: blue;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ViewerAttachmentPage } from './viewer-attachment.page';
|
||||
|
||||
describe('ViewerAttachmentPage', () => {
|
||||
let component: ViewerAttachmentPage;
|
||||
let fixture: ComponentFixture<ViewerAttachmentPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ViewerAttachmentPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ViewerAttachmentPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Component, OnInit, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
||||
import { IonicSlides } from '@ionic/angular';
|
||||
|
||||
@Component({
|
||||
selector: 'app-viewer-attachment',
|
||||
templateUrl: './viewer-attachment.page.html',
|
||||
styleUrls: ['./viewer-attachment.page.scss'],
|
||||
})
|
||||
export class ViewerAttachmentPage implements OnInit {
|
||||
|
||||
swiperModules = [IonicSlides];
|
||||
@Input() task: string;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user