mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Refinamentos 1
This commit is contained in:
@@ -10,10 +10,6 @@ const routes: Routes = [
|
|||||||
path: '',
|
path: '',
|
||||||
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'viewer',
|
|
||||||
loadChildren: () => import('./pages/events/attachments/viewer/viewer.module').then( m => m.ViewerPageModule)
|
|
||||||
},
|
|
||||||
/* {
|
/* {
|
||||||
path: 'cal-modal',
|
path: 'cal-modal',
|
||||||
loadChildren: () => import('./pages/cal-modal/cal-modal.module').then( m => m.CalModalPageModule)
|
loadChildren: () => import('./pages/cal-modal/cal-modal.module').then( m => m.CalModalPageModule)
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: AttachmentsPage
|
component: AttachmentsPage
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'viewer',
|
|
||||||
loadChildren: () => import('./viewer/viewer.module').then( m => m.ViewerPageModule)
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ import { AttachmentsService } from 'src/app/services/attachments.service';
|
|||||||
import { Attachment } from 'src/app/models/attachment.model';
|
import { Attachment } from 'src/app/models/attachment.model';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||||
import { AlertController, ModalController } from '@ionic/angular';
|
|
||||||
import { ViewerPage } from 'src/app/pages/events/attachments/viewer/viewer.page'
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-attachments',
|
selector: 'app-attachments',
|
||||||
@@ -16,7 +14,7 @@ export class AttachmentsPage implements OnInit {
|
|||||||
loadedEventAttachments: Attachment[];
|
loadedEventAttachments: Attachment[];
|
||||||
pageId: string;
|
pageId: string;
|
||||||
|
|
||||||
constructor(private attachamentsService: AttachmentsService, private activatedRoute: ActivatedRoute, private iab: InAppBrowser, private route: Router, private modalCtrl: ModalController) { }
|
constructor(private attachamentsService: AttachmentsService, private activatedRoute: ActivatedRoute, private iab: InAppBrowser, private route: Router) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
/* Emit new data when something changes */
|
/* Emit new data when something changes */
|
||||||
@@ -39,23 +37,9 @@ export class AttachmentsPage implements OnInit {
|
|||||||
|
|
||||||
async viewDocument(documenturl:string)
|
async viewDocument(documenturl:string)
|
||||||
{
|
{
|
||||||
//var ref = cordova.InAppBrowser.open(documenturl, '_blank', 'location=yes');
|
const url: string = documenturl.replace("webTRIX.Viewer","webTRIX.Viewer/branch1");
|
||||||
|
const browser = this.iab.create(url,"_blank");
|
||||||
const browser = this.iab.create(documenturl, "_self")
|
|
||||||
browser.show();
|
browser.show();
|
||||||
|
|
||||||
// const modal = await this.modalCtrl.create({
|
|
||||||
// component: ViewerPage,
|
|
||||||
// componentProps: {
|
|
||||||
// externalLink: documenturl
|
|
||||||
// },
|
|
||||||
// cssClass: 'viewer',
|
|
||||||
// backdropDismiss: false
|
|
||||||
// });
|
|
||||||
|
|
||||||
// await modal.present();
|
|
||||||
|
|
||||||
// modal.onDidDismiss();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
navigateBack(){
|
navigateBack(){
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
|
||||||
|
|
||||||
import { ViewerPage } from './viewer.page';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
component: ViewerPage
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [RouterModule.forChild(routes)],
|
|
||||||
exports: [RouterModule],
|
|
||||||
})
|
|
||||||
export class ViewerPageRoutingModule {}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { FormsModule } from '@angular/forms';
|
|
||||||
|
|
||||||
import { IonicModule } from '@ionic/angular';
|
|
||||||
|
|
||||||
import { ViewerPageRoutingModule } from './viewer-routing.module';
|
|
||||||
|
|
||||||
import { ViewerPage } from './viewer.page';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
FormsModule,
|
|
||||||
IonicModule,
|
|
||||||
ViewerPageRoutingModule
|
|
||||||
],
|
|
||||||
declarations: [ViewerPage]
|
|
||||||
})
|
|
||||||
export class ViewerPageModule {}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<ion-header>
|
|
||||||
<ion-toolbar>
|
|
||||||
<ion-title>viewer</ion-title>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content>
|
|
||||||
<iframe class="e2e-iframe-untrusted-src" *ngIf="externalLink" [src]="externalLinkSanitized" width="100%" height="100%" frameborder="0"
|
|
||||||
sandbox="allow-scripts
|
|
||||||
allow-pointer-lock
|
|
||||||
allow-same-origin
|
|
||||||
allow-popups
|
|
||||||
allow-forms"></iframe>
|
|
||||||
<!-- <iframe class="e2e-iframe-untrusted-src" *ngIf="externalLink" [src]="externalLinkSanitized" width="100%" height="100%" frameborder="0"
|
|
||||||
sandbox="allow-presentation
|
|
||||||
allow-scripts
|
|
||||||
allow-top-navigation
|
|
||||||
allow-pointer-lock
|
|
||||||
allow-same-origin
|
|
||||||
allow-popups
|
|
||||||
allow-forms"></iframe> -->
|
|
||||||
</ion-content>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
import { IonicModule } from '@ionic/angular';
|
|
||||||
|
|
||||||
import { ViewerPage } from './viewer.page';
|
|
||||||
|
|
||||||
describe('ViewerPage', () => {
|
|
||||||
let component: ViewerPage;
|
|
||||||
let fixture: ComponentFixture<ViewerPage>;
|
|
||||||
|
|
||||||
beforeEach(async(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ ViewerPage ],
|
|
||||||
imports: [IonicModule.forRoot()]
|
|
||||||
}).compileComponents();
|
|
||||||
|
|
||||||
fixture = TestBed.createComponent(ViewerPage);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
}));
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
|
||||||
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-viewer',
|
|
||||||
templateUrl: './viewer.page.html',
|
|
||||||
styleUrls: ['./viewer.page.scss'],
|
|
||||||
})
|
|
||||||
export class ViewerPage implements OnInit {
|
|
||||||
|
|
||||||
externalLink: string;
|
|
||||||
externalLinkSanitized: SafeResourceUrl;
|
|
||||||
|
|
||||||
constructor(public sanitizer: DomSanitizer) { }
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
this.externalLinkSanitized = this.sanitizer.bypassSecurityTrustResourceUrl(this.externalLink);
|
|
||||||
console.log(this.externalLinkSanitized);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -78,9 +78,6 @@ export class EventDetailPage implements OnInit {
|
|||||||
|
|
||||||
async deleteConfirm()
|
async deleteConfirm()
|
||||||
{
|
{
|
||||||
console.log(this.loadedEvent.Attendees);
|
|
||||||
console.log(this.loadedEvent.CalendarName);
|
|
||||||
|
|
||||||
const alert = await this.alertController.create({
|
const alert = await this.alertController.create({
|
||||||
cssClass: 'my-custom-class',
|
cssClass: 'my-custom-class',
|
||||||
header: 'Apagar evento!',
|
header: 'Apagar evento!',
|
||||||
|
|||||||
@@ -25,17 +25,13 @@ export class FeedPage implements OnInit {
|
|||||||
timeDate = this.today.getHours() + ":" + this.today.getMinutes();
|
timeDate = this.today.getHours() + ":" + this.today.getMinutes();
|
||||||
showGreeting(){
|
showGreeting(){
|
||||||
if(this.today.getHours() >= 6 && this.today.getHours() < 12){
|
if(this.today.getHours() >= 6 && this.today.getHours() < 12){
|
||||||
console.log(this.grettings[0]+this.today.getHours());
|
|
||||||
this.greetting = this.grettings[0];
|
this.greetting = this.grettings[0];
|
||||||
}
|
}
|
||||||
else if(this.today.getHours() >= 12 && this.today.getHours() < 18){
|
else if(this.today.getHours() >= 12 && this.today.getHours() < 18){
|
||||||
console.log(this.grettings[1]+this.today.getHours());
|
|
||||||
this.greetting = this.grettings[1];
|
this.greetting = this.grettings[1];
|
||||||
}
|
}
|
||||||
else /* if(this.today.getHours() < 6 && this.today.getHours() >= 18) */{
|
else /* if(this.today.getHours() < 6 && this.today.getHours() >= 18) */{
|
||||||
console.log(this.grettings[2]+this.today.getHours());
|
|
||||||
this.greetting = this.grettings[2];
|
this.greetting = this.grettings[2];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -16,8 +16,7 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
|
|
||||||
constructor(private activateRoute: ActivatedRoute,
|
constructor(private activateRoute: ActivatedRoute,
|
||||||
private processes:ProcessesService,
|
private processes:ProcessesService,
|
||||||
private iab: InAppBrowser,
|
private iab: InAppBrowser) { }
|
||||||
private loadingService: LoadingService) { }
|
|
||||||
|
|
||||||
task: DailyWorkTask;
|
task: DailyWorkTask;
|
||||||
|
|
||||||
@@ -48,7 +47,8 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
|
|
||||||
viewDocument()
|
viewDocument()
|
||||||
{
|
{
|
||||||
const browser = this.iab.create(this.task.DocumentURL,"_blank");
|
const url: string = this.task.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer/branch1");
|
||||||
|
const browser = this.iab.create(url,"_blank");
|
||||||
browser.show();
|
browser.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,11 +21,11 @@
|
|||||||
<ion-label>Correspondência</ion-label>
|
<ion-label>Correspondência</ion-label>
|
||||||
<ion-button slot="end">{{ count_exp_dailywork }}</ion-button>
|
<ion-button slot="end">{{ count_exp_dailywork }}</ion-button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item (click)="load()" class="ion-activated">
|
<ion-item (click)="notImplemented()" class="ion-activated">
|
||||||
<ion-label>Pedidos de parecer</ion-label>
|
<ion-label>Pedidos de parecer</ion-label>
|
||||||
<ion-button slot="end">{{count_exp_pp}}</ion-button>
|
<ion-button slot="end">{{count_exp_pp}}</ion-button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item (click)="load()">
|
<ion-item (click)="notImplemented()">
|
||||||
<ion-label>Pedidos de deferimento</ion-label>
|
<ion-label>Pedidos de deferimento</ion-label>
|
||||||
<ion-button slot="end">{{count_exp_pd}}</ion-button>
|
<ion-button slot="end">{{count_exp_pd}}</ion-button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
@@ -36,11 +36,11 @@
|
|||||||
<ion-card-header>
|
<ion-card-header>
|
||||||
<ion-card-title>Diplomas</ion-card-title>
|
<ion-card-title>Diplomas</ion-card-title>
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
<ion-item (click)="load()" class="ion-item-change-color">
|
<ion-item (click)="notImplemented()" class="ion-item-change-color">
|
||||||
<ion-label>Assinados pelo PR</ion-label>
|
<ion-label>Assinados pelo PR</ion-label>
|
||||||
<ion-button slot="end">{{count_dip_apr}}</ion-button>
|
<ion-button slot="end">{{count_dip_apr}}</ion-button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item primary (click)="load()" class="ion-activated">
|
<ion-item primary (click)="notImplemented()" class="ion-activated">
|
||||||
<ion-label>Por validar (MDGPR)</ion-label>
|
<ion-label>Por validar (MDGPR)</ion-label>
|
||||||
<ion-button slot="end">{{count_dip_pv}}</ion-button>
|
<ion-button slot="end">{{count_dip_pv}}</ion-button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<ion-card-header>
|
<ion-card-header>
|
||||||
<ion-card-title>Despachos Efectuados</ion-card-title>
|
<ion-card-title>Despachos Efectuados</ion-card-title>
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
<ion-item (click)="load()" class="ion-item-change-color">
|
<ion-item (click)="notImplemented()" class="ion-item-change-color">
|
||||||
<ion-label>Presidente da República</ion-label>
|
<ion-label>Presidente da República</ion-label>
|
||||||
<ion-button slot="end">{{count_de_pr}}</ion-button>
|
<ion-button slot="end">{{count_de_pr}}</ion-button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-gabinete-digital',
|
selector: 'app-gabinete-digital',
|
||||||
@@ -11,7 +12,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
segment:string;
|
segment:string;
|
||||||
showLoader: boolean;
|
showLoader: boolean;
|
||||||
|
|
||||||
constructor(private processesbackend:ProcessesService) { }
|
constructor(private processesbackend:ProcessesService, private alertService: AlertService) { }
|
||||||
|
|
||||||
count_exp_dailywork : number;
|
count_exp_dailywork : number;
|
||||||
count_exp_pp : string;
|
count_exp_pp : string;
|
||||||
@@ -46,9 +47,9 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
load()
|
notImplemented()
|
||||||
{
|
{
|
||||||
|
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ export class LoadingService {
|
|||||||
await loading.present();
|
await loading.present();
|
||||||
|
|
||||||
const { role, data } = await loading.onDidDismiss();
|
const { role, data } = await loading.onDidDismiss();
|
||||||
console.log('Loading dismissed!');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async customizedLoading() {
|
async customizedLoading() {
|
||||||
@@ -32,7 +31,6 @@ export class LoadingService {
|
|||||||
await loading.present();
|
await loading.present();
|
||||||
|
|
||||||
const { role, data } = await loading.onDidDismiss();
|
const { role, data } = await loading.onDidDismiss();
|
||||||
console.log('Loading dismissed with role:', role);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Ionic App</title>
|
<title>Gabinete Digital</title>
|
||||||
|
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user