mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -31,7 +31,6 @@ import { PendentesPage } from '../shared/gabinete-digital/pendentes/pendentes.pa
|
|||||||
import { DespachosPrPage } from '../shared/gabinete-digital/despachos-pr/despachos-pr.page';
|
import { DespachosPrPage } from '../shared/gabinete-digital/despachos-pr/despachos-pr.page';
|
||||||
import { DiplomasPage } from '../pages/gabinete-digital/diplomas/diplomas.page';
|
import { DiplomasPage } from '../pages/gabinete-digital/diplomas/diplomas.page';
|
||||||
import { ExpedientesPrPage } from '../shared/gabinete-digital/expedientes-pr/expedientes-pr.page';
|
import { ExpedientesPrPage } from '../shared/gabinete-digital/expedientes-pr/expedientes-pr.page';
|
||||||
import { SignedDiplomaComponent } from '../shared/gabinete-digital/signed-diploma/signed-diploma.component';
|
|
||||||
import { DiplomasAssinarPage } from '../shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page';
|
import { DiplomasAssinarPage } from '../shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page';
|
||||||
import { ChatPopoverPageModule } from '../shared/popover/chat-popover/chat-popover.module';
|
import { ChatPopoverPageModule } from '../shared/popover/chat-popover/chat-popover.module';
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import { DespachosPage } from 'src/app/shared/gabinete-digital/despachos/despach
|
|||||||
import { DespachosPrPage } from 'src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page';
|
import { DespachosPrPage } from 'src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page';
|
||||||
import { DiplomasPage } from 'src/app/shared/gabinete-digital/diplomas/diplomas.page';
|
import { DiplomasPage } from 'src/app/shared/gabinete-digital/diplomas/diplomas.page';
|
||||||
import { ExpedientesPrPage } from 'src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page';
|
import { ExpedientesPrPage } from 'src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page';
|
||||||
import { SignedDiplomaComponent } from 'src/app/shared/gabinete-digital/signed-diploma/signed-diploma.component';
|
|
||||||
import { DiplomasAssinarPage } from 'src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page';
|
import { DiplomasAssinarPage } from 'src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page';
|
||||||
import { ComponentsModule } from 'src/app/components/components.module';
|
import { ComponentsModule } from 'src/app/components/components.module';
|
||||||
import { EmptyContainerPageModule } from 'src/app/shared/empty-container/empty-container.module';
|
import { EmptyContainerPageModule } from 'src/app/shared/empty-container/empty-container.module';
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import { AuthService } from 'src/app/services/auth.service';
|
|||||||
import { User } from 'src/app/models/user.model';
|
import { User } from 'src/app/models/user.model';
|
||||||
import { DespachosPrPage } from 'src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page'
|
import { DespachosPrPage } from 'src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page'
|
||||||
import { DiplomasPage } from 'src/app/shared/gabinete-digital/diplomas/diplomas.page';
|
import { DiplomasPage } from 'src/app/shared/gabinete-digital/diplomas/diplomas.page';
|
||||||
import { SignedDiplomaComponent } from 'src/app/shared/gabinete-digital/signed-diploma/signed-diploma.component';
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-gabinete-digital',
|
selector: 'app-gabinete-digital',
|
||||||
templateUrl: './gabinete-digital.page.html',
|
templateUrl: './gabinete-digital.page.html',
|
||||||
@@ -486,19 +485,6 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async openSignedDiplom(){
|
|
||||||
const modal = await this.modalController.create({
|
|
||||||
component: SignedDiplomaComponent,
|
|
||||||
componentProps:{
|
|
||||||
profile: this.profile,
|
|
||||||
},
|
|
||||||
cssClass: 'modal modal-desktop',
|
|
||||||
//backdropDismiss: false
|
|
||||||
});
|
|
||||||
await modal.present();
|
|
||||||
modal.onDidDismiss();
|
|
||||||
}
|
|
||||||
|
|
||||||
async openDeploma() {
|
async openDeploma() {
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: DiplomasPage,
|
component: DiplomasPage,
|
||||||
|
|||||||
@@ -1,226 +0,0 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<ion-toolbar class="header-toolbar">
|
|
||||||
<div class="main-header">
|
|
||||||
<div class="title-content">
|
|
||||||
<div class="middle">
|
|
||||||
<ion-label class="title">Novo Evento</ion-label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content>
|
|
||||||
<div class="main-content">
|
|
||||||
<div class="ion-item-container">
|
|
||||||
<ion-input type="text" placeholder="Assunto" ></ion-input>
|
|
||||||
</div>
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-location.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class flex-grow-1">
|
|
||||||
<ion-input type="text" placeholder="Localização" ></ion-input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Error messages -->
|
|
||||||
<!-- <span class="error ion-padding" >
|
|
||||||
Campo obrigatório
|
|
||||||
</span> -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class flex-grow-1">
|
|
||||||
<ion-select placeholder="Selecione agenda"
|
|
||||||
|
|
||||||
interface="action-sheet" Cancel-text="Cancelar"
|
|
||||||
required>
|
|
||||||
<ion-select-option value="Oficial">Oficial</ion-select-option>
|
|
||||||
<ion-select-option value="Pessoal">Pessoal</ion-select-option>
|
|
||||||
</ion-select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class flex-grow-1">
|
|
||||||
<ion-select placeholder="Selecione tipo"
|
|
||||||
interface="action-sheet"
|
|
||||||
Cancel-text="Cancelar" required>
|
|
||||||
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
|
||||||
<ion-select-option value="Viagem">Viagem</ion-select-option>
|
|
||||||
<ion-select-option value="Conferência">Conferência</ion-select-option>
|
|
||||||
<ion-select-option value="Encontro">Encontro</ion-select-option>
|
|
||||||
</ion-select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class flex-grow-1">
|
|
||||||
<ion-datetime
|
|
||||||
placeholder="Início"
|
|
||||||
displayFormat="D MMM YYYY H:mm"
|
|
||||||
minuteValues="0,15,30,45"
|
|
||||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
|
||||||
min="2018"
|
|
||||||
max="2022"
|
|
||||||
>
|
|
||||||
</ion-datetime>
|
|
||||||
<!-- <ion-input placeholder="Data início" [(ngModel)]="postData.StartDate"></ion-input> -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class flex-grow-1">
|
|
||||||
<ion-datetime
|
|
||||||
placeholder="Fim"
|
|
||||||
displayFormat="D MMM YYYY H:mm"
|
|
||||||
minuteValues="0,15,30,45"
|
|
||||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
|
||||||
min="2018"
|
|
||||||
max="2022"
|
|
||||||
>
|
|
||||||
</ion-datetime>
|
|
||||||
<!-- <ion-input placeholder="Data fim" [(ngModel)]="postData.EndDate"></ion-input> -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-refresh.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class flex-grow-1">
|
|
||||||
<ion-select placeholder="Selecione repetição" value="false" interface="action-sheet" Cancel-text="Cancelar" required>
|
|
||||||
<ion-select-option value="false">Não se repete</ion-select-option>
|
|
||||||
<ion-select-option value="true">Repete</ion-select-option>
|
|
||||||
</ion-select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- <div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class-no-height flex-grow-1">
|
|
||||||
|
|
||||||
<div class="list-people">
|
|
||||||
<ion-item lines="none">
|
|
||||||
<ion-list>
|
|
||||||
<ion-label *ngIf="taskParticipants.length ==0" class="list-people-title">Adicionar intervenientes</ion-label>
|
|
||||||
<ion-label *ngFor="let participant of taskParticipants">{{participant.Name}}</ion-label>
|
|
||||||
</ion-list>
|
|
||||||
</ion-item>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="add-people" >
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<!-- <div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-people-cc.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class-no-height flex-grow-1">
|
|
||||||
<div class="list-people">
|
|
||||||
|
|
||||||
<ion-item lines="none">
|
|
||||||
<ion-list>
|
|
||||||
<ion-label *ngIf="taskParticipantsCc.length ==0" class="list-people-title">Com conhecimento</ion-label>
|
|
||||||
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
|
||||||
</ion-list>
|
|
||||||
</ion-item>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="add-people" >
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="ion-item-class-2 d-flex">
|
|
||||||
<div class="ion-icon-class">
|
|
||||||
<ion-icon slot="start" src="assets/images/icons-description.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="ion-input-class-no-height flex-grow-1">
|
|
||||||
|
|
||||||
<ion-textarea placeholder="Detalhes" ></ion-textarea>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<!-- <div class="ion-item-container-no-border" >
|
|
||||||
<ion-label>
|
|
||||||
<div class="attach-icon">
|
|
||||||
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="attach-document">
|
|
||||||
<ion-label>Adicionar documentos</ion-label>
|
|
||||||
</div>
|
|
||||||
</ion-label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="list " *ngFor="let document of documents; let i = index" >
|
|
||||||
<ion-list>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<p class="d-flex ion-justify-content-between">
|
|
||||||
<span class="attach-title-item">{{document.Assunto}}</span>
|
|
||||||
<span class="app-name">{{document.appName}}</span>
|
|
||||||
<span class="close-button text-black" >
|
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
<p><span class="span-left">{{document.EntidadeOrganicaNome}}</span><span class="span-right"> {{document.Data | date: 'dd-MM-yy'}} </span></p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
</ion-list>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</ion-content>
|
|
||||||
<ion-footer class="ion-no-border px-20">
|
|
||||||
<ion-toolbar class="d-flex justify-space-between">
|
|
||||||
<ion-buttons slot="start">
|
|
||||||
<ion-button class="btn-cancel" fill="clear" color="#061b52" (click)="close()">
|
|
||||||
<ion-label>Cancelar</ion-label>
|
|
||||||
</ion-button>
|
|
||||||
</ion-buttons>
|
|
||||||
<ion-title></ion-title>
|
|
||||||
<ion-buttons slot="end">
|
|
||||||
<ion-button class="btn-ok" fill="clear" color="#fff" (click)="save()">
|
|
||||||
<ion-label>Gravar</ion-label>
|
|
||||||
</ion-button>
|
|
||||||
</ion-buttons>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-footer>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
||||||
import { IonicModule } from '@ionic/angular';
|
|
||||||
|
|
||||||
import { RequestToAppearComponent } from './request-to-appear.component';
|
|
||||||
|
|
||||||
describe('RequestToAppearComponent', () => {
|
|
||||||
let component: RequestToAppearComponent;
|
|
||||||
let fixture: ComponentFixture<RequestToAppearComponent>;
|
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ RequestToAppearComponent ],
|
|
||||||
imports: [IonicModule.forRoot()]
|
|
||||||
}).compileComponents();
|
|
||||||
|
|
||||||
fixture = TestBed.createComponent(RequestToAppearComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
}));
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-request-to-appear',
|
|
||||||
templateUrl: './request-to-appear.component.html',
|
|
||||||
styleUrls: ['./request-to-appear.component.scss'],
|
|
||||||
})
|
|
||||||
export class RequestToAppearComponent implements OnInit {
|
|
||||||
|
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
ngOnInit() {}
|
|
||||||
|
|
||||||
}
|
|
||||||
+1
-1
@@ -15,6 +15,6 @@ import { PublicationDetailPage } from './publication-detail.page';
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
PublicationDetailPageRoutingModule
|
PublicationDetailPageRoutingModule
|
||||||
],
|
],
|
||||||
declarations: []
|
declarations: [PublicationDetailPage]
|
||||||
})
|
})
|
||||||
export class PublicationDetailPageModule {}
|
export class PublicationDetailPageModule {}
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="thetitle"><ion-label >Despachos</ion-label></div>
|
<div class="thetitle"><ion-label >Despachos</ion-label></div>
|
||||||
<div class="theicon">
|
<div class="theicon">
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
<button class="btn-no-color" (click)="doRefresh()">
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh()">
|
||||||
<ion-refresher-content
|
<ion-refresher-content
|
||||||
pullingIcon="chevron-down-circle-outline"
|
pullingIcon="chevron-down-circle-outline"
|
||||||
pullingText="deslize para actualizar"
|
pullingText="deslize para actualizar"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="thetitle"><ion-label >Diplomas</ion-label></div>
|
<div class="thetitle"><ion-label >Diplomas</ion-label></div>
|
||||||
<div class="theicon">
|
<div class="theicon">
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
<button class="btn-no-color" (click)="doRefresh()">
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh()">
|
||||||
<ion-refresher-content
|
<ion-refresher-content
|
||||||
pullingIcon="chevron-down-circle-outline"
|
pullingIcon="chevron-down-circle-outline"
|
||||||
pullingText="deslize para actualizar"
|
pullingText="deslize para actualizar"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh()">
|
||||||
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||||
<ion-refresher-content>
|
<ion-refresher-content>
|
||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh()">
|
||||||
<ion-refresher-content
|
<ion-refresher-content
|
||||||
pullingIcon="chevron-down-circle-outline"
|
pullingIcon="chevron-down-circle-outline"
|
||||||
pullingText="deslize para actualizar"
|
pullingText="deslize para actualizar"
|
||||||
|
|||||||
@@ -1,119 +0,0 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<div class="title">
|
|
||||||
<div class="thetitle"><ion-label >Diploma assinados</ion-label></div>
|
|
||||||
<div class="theicon">
|
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- <ion-toolbar>
|
|
||||||
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
|
|
||||||
<ion-segment-button value="validar">
|
|
||||||
Diplomas por validar
|
|
||||||
</ion-segment-button>
|
|
||||||
<ion-segment-button value="assinados">
|
|
||||||
Diplomas assinados PR
|
|
||||||
</ion-segment-button>
|
|
||||||
</ion-segment>
|
|
||||||
</ion-toolbar> -->
|
|
||||||
</ion-header>
|
|
||||||
<ion-content>
|
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
||||||
<ion-refresher-content
|
|
||||||
pullingIcon="chevron-down-circle-outline"
|
|
||||||
pullingText="deslize para actualizar"
|
|
||||||
refreshingSpinner="circles"
|
|
||||||
refreshingText="A actualizar...">
|
|
||||||
</ion-refresher-content>
|
|
||||||
</ion-refresher>
|
|
||||||
|
|
||||||
<div class="width-100" [ngSwitch]="segment">
|
|
||||||
<div *ngIf="diplomasList">
|
|
||||||
<ion-list *ngSwitchCase="'validar'">
|
|
||||||
<!-- *ngFor = "let task of parecerList; let i = index"
|
|
||||||
(click)="viewExpedientDetail(task.SerialNumber)" -->
|
|
||||||
<ion-item
|
|
||||||
class="expediente ion-no-padding cursor-pointer"
|
|
||||||
*ngFor = "let task of diplomasList"
|
|
||||||
(click)="viewPedidoDetail(task.SerialNumber)"
|
|
||||||
>
|
|
||||||
<!-- (click)="viewExpedientDetail(task.SerialNumber)" -->
|
|
||||||
<!-- [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]" -->
|
|
||||||
<div class="item width-100">
|
|
||||||
<div class="exp-top-detail">
|
|
||||||
<div class="exp-date">
|
|
||||||
<ion-label>{{ task.CreateDate | date: 'dd-MM-yy' }}</ion-label>
|
|
||||||
</div>
|
|
||||||
<div class="exp-remetente">
|
|
||||||
<ion-label>{{task.Remetente}}</ion-label>
|
|
||||||
</div>
|
|
||||||
<div class="exp-icon">
|
|
||||||
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
|
||||||
<label></label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="exp-bottom-detail">
|
|
||||||
<ion-label>{{ task.Folio }}</ion-label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ion-item>
|
|
||||||
</ion-list>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div *ngIf="">
|
|
||||||
<ion-list *ngSwitchCase="'assinados'">
|
|
||||||
<ion-item
|
|
||||||
class="expediente ion-no-padding cursor-pointer"
|
|
||||||
*ngFor = "let task of diplomasList"
|
|
||||||
(click)="viewPedidoDetail(task.SerialNumber)"
|
|
||||||
>
|
|
||||||
<div class="item width-100">
|
|
||||||
<div class="exp-top-detail">
|
|
||||||
<div class="exp-date">
|
|
||||||
<ion-label>{{ task.CreateDate | date: 'dd-MM-yy' }}</ion-label>
|
|
||||||
</div>
|
|
||||||
<div class="exp-remetente">
|
|
||||||
<ion-label>{{task.Remetente}}</ion-label>
|
|
||||||
</div>
|
|
||||||
<div class="exp-icon">
|
|
||||||
<ion-menu-button style="width: 35px; height: 41px;" autoHide="false">
|
|
||||||
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
|
||||||
</ion-menu-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="exp-bottom-detail">
|
|
||||||
<ion-label>{{ task.Folio }}</ion-label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ion-item>
|
|
||||||
</ion-list>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div *ngIf="!diplomasList">
|
|
||||||
|
|
||||||
<ion-list>
|
|
||||||
<ion-item>
|
|
||||||
<ion-thumbnail slot="end">
|
|
||||||
<ion-skeleton-text animated></ion-skeleton-text>
|
|
||||||
</ion-thumbnail>
|
|
||||||
<ion-label>
|
|
||||||
<h3><ion-skeleton-text animated style="width: 50%"></ion-skeleton-text></h3>
|
|
||||||
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
|
||||||
<p><ion-skeleton-text animated style="width: 60%"></ion-skeleton-text></p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-thumbnail slot="end">
|
|
||||||
<ion-skeleton-text animated></ion-skeleton-text>
|
|
||||||
</ion-thumbnail>
|
|
||||||
<ion-label>
|
|
||||||
<h3><ion-skeleton-text animated style="width: 50%"></ion-skeleton-text></h3>
|
|
||||||
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
|
||||||
<p><ion-skeleton-text animated style="width: 60%"></ion-skeleton-text></p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
</ion-list>
|
|
||||||
</div>
|
|
||||||
</ion-content>
|
|
||||||
|
|
||||||
@@ -1,177 +0,0 @@
|
|||||||
@import '~src/function.scss';
|
|
||||||
/* CONTENT */
|
|
||||||
:host{
|
|
||||||
padding: 30px 20px 0 20px !important;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.title{
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 25px;
|
|
||||||
color:#000;
|
|
||||||
overflow: auto;
|
|
||||||
|
|
||||||
.thetitle{
|
|
||||||
width: fit-content;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.theicon{
|
|
||||||
width: fit-content;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.item-list-small{
|
|
||||||
font-size: 11px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.ion-item-class{
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
.label-text{
|
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
//DIV
|
|
||||||
ion-item{
|
|
||||||
--background: none;
|
|
||||||
}
|
|
||||||
.item {
|
|
||||||
//border-radius: 15px;
|
|
||||||
//box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
|
||||||
//Sborder: solid 1px #e9e9e9;
|
|
||||||
background-color: var(--white);
|
|
||||||
margin: 0 auto;
|
|
||||||
//padding: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.div-content-expediente{
|
|
||||||
width: 100%;
|
|
||||||
float: left;
|
|
||||||
border-left: 3px solid #dae3f3;
|
|
||||||
padding:5px 5px 15px 5px;
|
|
||||||
margin: 10px 0 10px 0;
|
|
||||||
background: #dae3f3;
|
|
||||||
border-radius: 20px;
|
|
||||||
}
|
|
||||||
.div-content-pendentes{
|
|
||||||
width: 100%;
|
|
||||||
float: left;
|
|
||||||
border-left: 3px solid #d9d9d9;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
.div-content-expediente h3, .div-content-pendentes h3{
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-size: 14pt;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.div-icon{
|
|
||||||
width: 10%;
|
|
||||||
font-size: 20px;
|
|
||||||
float: left;
|
|
||||||
color: #808080;
|
|
||||||
}
|
|
||||||
.div-icon ion-icon{
|
|
||||||
display: block;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
}
|
|
||||||
.div-content-expediente p, .div-content-pendentes p{
|
|
||||||
font-size: 14pt;
|
|
||||||
color: rgb(94, 92, 92);
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.span-left{
|
|
||||||
/* border: 1px solid red; */
|
|
||||||
float: left;
|
|
||||||
font-size: 12px;
|
|
||||||
padding-left: 18px;
|
|
||||||
}
|
|
||||||
.span-right{
|
|
||||||
/* border: 1px solid blue; */
|
|
||||||
text-align: right;
|
|
||||||
float: right;
|
|
||||||
font-size: 12px;
|
|
||||||
padding-right: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* New CSS */
|
|
||||||
.expediente{
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
.exp-list-item{
|
|
||||||
//width: 368px;
|
|
||||||
overflow: auto;
|
|
||||||
/* border-bottom: 1px solid gray; */
|
|
||||||
margin: 10px auto;
|
|
||||||
}
|
|
||||||
.exp-top-detail{
|
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
.exp-date{
|
|
||||||
width: auto;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
font-stretch: normal;
|
|
||||||
font-style: normal;
|
|
||||||
line-height: normal;
|
|
||||||
letter-spacing: normal;
|
|
||||||
color: #797979;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.exp-remetente{
|
|
||||||
//width: 200px;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #000000;
|
|
||||||
float: left;
|
|
||||||
margin-left: 16px;
|
|
||||||
|
|
||||||
}
|
|
||||||
.exp-icon{
|
|
||||||
width: 45px;
|
|
||||||
float: right;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
.exp-icon ion-icon{
|
|
||||||
font-size: 25px;
|
|
||||||
color: #42b9fe;
|
|
||||||
}
|
|
||||||
.exp-bottom-detail{
|
|
||||||
float: left;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #0d89d1;
|
|
||||||
}
|
|
||||||
.div-top-header{
|
|
||||||
width: 400px;
|
|
||||||
margin: 6px auto;
|
|
||||||
background-color: #0782c9;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
.div-search{
|
|
||||||
font-size: 45px;
|
|
||||||
float: left;
|
|
||||||
margin: 0 0 0 10px
|
|
||||||
}
|
|
||||||
.div-logo{
|
|
||||||
background: transparent;
|
|
||||||
width: 150px;
|
|
||||||
margin: 2.5px 0 2.5px 71px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.div-logo img{
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.div-profile{
|
|
||||||
font-size: 45px;
|
|
||||||
float: right;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
||||||
import { IonicModule } from '@ionic/angular';
|
|
||||||
|
|
||||||
import { SignedDiplomaComponent } from './signed-diploma.component';
|
|
||||||
|
|
||||||
describe('SignedDiplomaComponent', () => {
|
|
||||||
let component: SignedDiplomaComponent;
|
|
||||||
let fixture: ComponentFixture<SignedDiplomaComponent>;
|
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ SignedDiplomaComponent ],
|
|
||||||
imports: [IonicModule.forRoot()]
|
|
||||||
}).compileComponents();
|
|
||||||
|
|
||||||
fixture = TestBed.createComponent(SignedDiplomaComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
}));
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,185 +0,0 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
|
||||||
import { Router } from '@angular/router';
|
|
||||||
import { DailyWorkTask, tasksList } from '../../../models/dailyworktask.model';
|
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
|
||||||
import { formatDate } from '@angular/common';
|
|
||||||
import { ModalController, NavParams } from '@ionic/angular';
|
|
||||||
import { AlertService } from 'src/app/services/alert.service';
|
|
||||||
import { DiplomaPage } from 'src/app/pages/gabinete-digital/diplomas/diploma/diploma.page';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-signed-diploma',
|
|
||||||
templateUrl: './signed-diploma.component.html',
|
|
||||||
styleUrls: ['./signed-diploma.component.scss'],
|
|
||||||
})
|
|
||||||
export class SignedDiplomaComponent implements OnInit {
|
|
||||||
|
|
||||||
//profile:string;
|
|
||||||
diplomasList:DailyWorkTask[] = [];
|
|
||||||
showLoader: boolean;
|
|
||||||
totalDocs:any;
|
|
||||||
serialNumber:string;
|
|
||||||
|
|
||||||
@Input() profile:string;
|
|
||||||
@Input() segment:string;
|
|
||||||
|
|
||||||
constructor(
|
|
||||||
private processes:ProcessesService,
|
|
||||||
private modalController: ModalController,
|
|
||||||
private alertService: AlertService,
|
|
||||||
) {
|
|
||||||
this.profile = 'mdgpr';
|
|
||||||
this.segment = 'validar'
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
//Inicializar segment
|
|
||||||
this.segment = 'assinados';
|
|
||||||
this.LoadList();
|
|
||||||
}
|
|
||||||
segmentChanged(ev: any) {
|
|
||||||
this.LoadList();
|
|
||||||
}
|
|
||||||
|
|
||||||
notImplemented(){
|
|
||||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
|
||||||
}
|
|
||||||
|
|
||||||
async LoadList(){
|
|
||||||
|
|
||||||
|
|
||||||
let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
|
||||||
this.diplomasList = new Array();
|
|
||||||
|
|
||||||
console.log(diplomas);
|
|
||||||
switch (this.segment) {
|
|
||||||
case 'validar':
|
|
||||||
let diplomasValidar = diplomas.reverse().filter(data => data.workflowInstanceDataFields.Status == "Revising");
|
|
||||||
console.log(diplomasValidar);
|
|
||||||
diplomasValidar.forEach(element => {
|
|
||||||
let DocId = element.workflowInstanceDataFields.FolderID;
|
|
||||||
let ApplicationId = element.workflowInstanceDataFields.ApplicationId;
|
|
||||||
this.processes.GetDocumentDetails(DocId, '361').subscribe(res=>{
|
|
||||||
this.totalDocs = res.DocumentsTotal;
|
|
||||||
console.log(res.DocumentsTotal);
|
|
||||||
let date = new Date(element.taskStartDate);
|
|
||||||
date.setMonth(date.getMonth() + 1);
|
|
||||||
let taskDate = date.getFullYear()+"-"+ date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+ ":"+date.getSeconds();
|
|
||||||
|
|
||||||
let task = {
|
|
||||||
"SerialNumber": element.serialNumber,
|
|
||||||
"Folio": element.workflowInstanceDataFields.Subject,
|
|
||||||
"Senders": element.originator.email,
|
|
||||||
"CreateDate": taskDate,
|
|
||||||
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
|
||||||
"Remetente": element.workflowInstanceDataFields.Remetente,
|
|
||||||
"DocumentsQty": 0,
|
|
||||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
|
||||||
"WorkflowName": element.workflowDisplayName,
|
|
||||||
"activityInstanceName": element.activityInstanceName,
|
|
||||||
}
|
|
||||||
this.diplomasList.push(task);
|
|
||||||
},
|
|
||||||
(error)=>{
|
|
||||||
let date = new Date(element.taskStartDate);
|
|
||||||
date.setMonth(date.getMonth() + 1);
|
|
||||||
let taskDate = date.getFullYear()+"-"+ date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+ ":"+date.getSeconds();
|
|
||||||
|
|
||||||
let task = {
|
|
||||||
"SerialNumber": element.serialNumber,
|
|
||||||
"Folio": element.workflowInstanceDataFields.Subject,
|
|
||||||
"Senders": element.originator.email,
|
|
||||||
"CreateDate": taskDate,
|
|
||||||
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
|
||||||
"Remetente": element.workflowInstanceDataFields.Remetente,
|
|
||||||
"DocumentsQty": 0,
|
|
||||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
|
||||||
"WorkflowName": element.workflowDisplayName,
|
|
||||||
"activityInstanceName": element.activityInstanceName,
|
|
||||||
}
|
|
||||||
this.diplomasList.push(task);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
this.showLoader = false;
|
|
||||||
break;
|
|
||||||
case 'assinados':
|
|
||||||
let diplomasassinado = diplomas.reverse().filter(data => data.workflowInstanceDataFields.Status == "Signed");
|
|
||||||
console.log('Assinados');
|
|
||||||
|
|
||||||
diplomasassinado.forEach(element => {
|
|
||||||
let DocId = element.workflowInstanceDataFields.FolderID;
|
|
||||||
let ApplicationId = element.workflowInstanceDataFields.ApplicationId;
|
|
||||||
this.processes.GetDocumentDetails(DocId, '361').subscribe(res=>{
|
|
||||||
this.totalDocs = res.DocumentsTotal;
|
|
||||||
console.log(res.DocumentsTotal);
|
|
||||||
let date = new Date(element.taskStartDate);
|
|
||||||
date.setMonth(date.getMonth() + 1);
|
|
||||||
let taskDate = date.getFullYear()+"-"+ date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+ ":"+date.getSeconds();
|
|
||||||
|
|
||||||
let task = {
|
|
||||||
"SerialNumber": element.serialNumber,
|
|
||||||
"Folio": element.workflowInstanceDataFields.Subject,
|
|
||||||
"Senders": element.workflowInstanceDataFields.Sender,
|
|
||||||
"CreateDate": taskDate,
|
|
||||||
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
|
||||||
"Remetente": element.workflowInstanceDataFields.Remetente,
|
|
||||||
"DocumentsQty": 0,
|
|
||||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
|
||||||
"WorkflowName": element.workflowDisplayName,
|
|
||||||
"activityInstanceName": element.activityInstanceName,
|
|
||||||
}
|
|
||||||
this.diplomasList.push(task);
|
|
||||||
},
|
|
||||||
(error)=>{
|
|
||||||
let date = new Date(element.taskStartDate);
|
|
||||||
date.setMonth(date.getMonth() + 1);
|
|
||||||
let taskDate = date.getFullYear()+"-"+ date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+ ":"+date.getSeconds();
|
|
||||||
|
|
||||||
let task = {
|
|
||||||
"SerialNumber": element.serialNumber,
|
|
||||||
"Folio": element.workflowInstanceDataFields.Subject,
|
|
||||||
"Senders": element.workflowInstanceDataFields.Sender,
|
|
||||||
"CreateDate": taskDate,
|
|
||||||
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
|
||||||
"Remetente": element.workflowInstanceDataFields.Remetente,
|
|
||||||
"DocumentsQty": 0,
|
|
||||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
|
||||||
"WorkflowName": element.workflowDisplayName,
|
|
||||||
"activityInstanceName": element.activityInstanceName,
|
|
||||||
}
|
|
||||||
this.diplomasList.push(task);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
this.showLoader = false;
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
doRefresh(event) {
|
|
||||||
this.LoadList();
|
|
||||||
setTimeout(() => {
|
|
||||||
//event.target.complete();
|
|
||||||
}, 2000);
|
|
||||||
}
|
|
||||||
|
|
||||||
async viewPedidoDetail(serialNumber:any) {
|
|
||||||
console.log(this.profile);
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
|
||||||
component: DiplomaPage,
|
|
||||||
componentProps:{
|
|
||||||
enterAnimation: "",
|
|
||||||
serialNumber: serialNumber,
|
|
||||||
profile: this.profile,
|
|
||||||
},
|
|
||||||
cssClass: 'modal modal-desktop',
|
|
||||||
});
|
|
||||||
await modal.present();
|
|
||||||
modal.onDidDismiss().then((res)=>{
|
|
||||||
console.log('refresh list');
|
|
||||||
this.LoadList();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user