mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Revisão: Autenticação, Page Events, Page Expediente.
This commit is contained in:
+3
-3
@@ -11,19 +11,19 @@
|
||||
<ion-item-group>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Assunto</ion-label>
|
||||
<ion-input value='Reunião de Conselho de Ministros'></ion-input>
|
||||
<ion-input >{{task.Folio }}</ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Remetentes</ion-label>
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
<ion-input value='MINEC'></ion-input>
|
||||
<ion-input>{{ task.Senders }}</ion-input>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Data</ion-label>
|
||||
<ion-input value=''></ion-input>
|
||||
<ion-input value=''>{{ task.CreateDate }}</ion-input>
|
||||
</ion-item>
|
||||
<ion-list>
|
||||
<ion-list-header>Documentos a Anexar</ion-list-header>
|
||||
|
||||
+21
-1
@@ -1,4 +1,8 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
|
||||
import { DailyWorkTask } from '../../../../models/dailyworktask.model';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-expediente-detail',
|
||||
@@ -7,9 +11,25 @@ import { Component, OnInit } from '@angular/core';
|
||||
})
|
||||
export class ExpedienteDetailPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor(private activateRoute: ActivatedRoute,private processes:ProcessesService) { }
|
||||
|
||||
task:DailyWorkTask;
|
||||
|
||||
serialnumber:string;
|
||||
|
||||
ngOnInit() {
|
||||
this.activateRoute.paramMap.subscribe(paramMap => {
|
||||
if (!paramMap.has('SerialNumber')){
|
||||
return;
|
||||
}
|
||||
this.serialnumber = paramMap.get('SerialNumber');
|
||||
this.LoadTaskDetail(this.serialnumber);
|
||||
});
|
||||
}
|
||||
|
||||
LoadTaskDetail(serial:string)
|
||||
{
|
||||
this.task = this.processes.GetTaskDetail(serial);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,13 +22,15 @@
|
||||
<ion-list *ngSwitchCase="'expediente'">
|
||||
<ion-item-group>
|
||||
<ion-item-sliding>
|
||||
<ion-item lines="none">
|
||||
<ion-item lines="none"
|
||||
*ngFor = "let task of taskslist">
|
||||
<div class="div-content-expediente">
|
||||
<ion-item lines="none" [routerLink]="['/home/gabinete-digital/1/1']">
|
||||
<ion-icon slot="end" name="document-outline"></ion-icon>
|
||||
<h3>Reunião de Conselho de Ministros</h3>
|
||||
<ion-item lines="none" [routerLink]="['/home/gabinete-digital/1',task.SerialNumber]">
|
||||
<ion-icon slot="end" name="document-outline">
|
||||
</ion-icon>
|
||||
<h3>{{ task.Folio }}</h3>
|
||||
</ion-item>
|
||||
<p><span class="span-left">MINEC, MINFIN</span><span class="span-right">13 JAN</span></p>
|
||||
<p><span class="span-left">{{ task.Senders }}</span><span class="span-right">{{ task.CreateDate }}</span></p>
|
||||
</div>
|
||||
</ion-item>
|
||||
</ion-item-sliding>
|
||||
|
||||
@@ -4,6 +4,9 @@ import { ModalController } from '@ionic/angular';
|
||||
import { ExpedienteModalPage } from '../expediente-modal/expediente-modal.page';
|
||||
import { CalendarComponent } from 'ionic2-calendar';
|
||||
|
||||
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-expediente',
|
||||
templateUrl: './expediente.page.html',
|
||||
@@ -15,12 +18,16 @@ export class ExpedientePage implements OnInit {
|
||||
|
||||
@ViewChild(CalendarComponent) myCal: CalendarComponent;
|
||||
|
||||
constructor(private router: Router,private modalCtrl: ModalController ) { }
|
||||
taskslist:DailyWorkTask[];
|
||||
|
||||
constructor(private router: Router,private modalCtrl: ModalController, private processes:ProcessesService ) { }
|
||||
|
||||
ngOnInit() {
|
||||
//Inicializar segment
|
||||
this.segment = "expediente";
|
||||
this.LoadList();
|
||||
}
|
||||
|
||||
async openExpedienteModal(){
|
||||
const modal = await this.modalCtrl.create({
|
||||
component: ExpedienteModalPage,
|
||||
@@ -58,5 +65,10 @@ export class ExpedientePage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
LoadList()
|
||||
{
|
||||
this.taskslist = this.processes.GetDailyWorkTasks();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -7,15 +7,16 @@ const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: GabineteDigitalPage
|
||||
},
|
||||
{
|
||||
path: 'expediente',
|
||||
loadChildren: () => import('./expediente/expediente.module').then( m => m.ExpedientePageModule)
|
||||
},
|
||||
{
|
||||
path: 'expediente-modal',
|
||||
loadChildren: () => import('../../Pages/gabinete-digital/expediente-modal/expediente-modal.module').then( m => m.ExpedienteModalPageModule)
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'expediente',
|
||||
loadChildren: () => import('./expediente/expediente.module').then( m => m.ExpedientePageModule)
|
||||
},
|
||||
{
|
||||
path: 'expediente-modal',
|
||||
loadChildren: () => import('../../pages/gabinete-digital/expediente-modal/expediente-modal.module').then( m => m.ExpedienteModalPageModule)
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>Gbinete Digital</ion-title>
|
||||
<ion-title>Gabinete Digital</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
@@ -11,15 +11,15 @@
|
||||
<ion-card-content>
|
||||
<ion-item [routerLink]="['/home/gabinete-digital/1']">
|
||||
<ion-label>Correspondência</ion-label>
|
||||
<ion-button slot="end">1</ion-button>
|
||||
<ion-button slot="end">{{ count_exp_dailywork }}</ion-button>
|
||||
</ion-item>
|
||||
<ion-item [routerLink]="['/home/gabinete-digital/1']" class="ion-activated">
|
||||
<ion-label>Pedidos de parecer</ion-label>
|
||||
<ion-button slot="end">1</ion-button>
|
||||
<ion-button slot="end">{{count_exp_pp}}</ion-button>
|
||||
</ion-item>
|
||||
<ion-item [routerLink]="['/home/gabinete-digital/1']">
|
||||
<ion-label>Pedidos de deferimento</ion-label>
|
||||
<ion-button slot="end">1</ion-button>
|
||||
<ion-button slot="end">{{count_exp_pd}}</ion-button>
|
||||
</ion-item>
|
||||
</ion-card-content>
|
||||
</ion-card-header>
|
||||
@@ -30,11 +30,11 @@
|
||||
<ion-card-content>
|
||||
<ion-item (click)="load()" class="ion-item-change-color">
|
||||
<ion-label>Assinados pelo PR</ion-label>
|
||||
<ion-button slot="end">1</ion-button>
|
||||
<ion-button slot="end">{{count_dip_apr}}</ion-button>
|
||||
</ion-item>
|
||||
<ion-item primary (click)="load()" class="ion-activated">
|
||||
<ion-label>Por validar (MDGPR)</ion-label>
|
||||
<ion-button slot="end">1</ion-button>
|
||||
<ion-button slot="end">{{count_dip_pv}}</ion-button>
|
||||
</ion-item>
|
||||
</ion-card-content>
|
||||
</ion-card-header>
|
||||
@@ -45,7 +45,7 @@
|
||||
<ion-card-content>
|
||||
<ion-item (click)="load()" class="ion-item-change-color">
|
||||
<ion-label>Presidente da República</ion-label>
|
||||
<ion-button slot="end">1</ion-button>
|
||||
<ion-button slot="end">{{count_de_pr}}</ion-button>
|
||||
</ion-item>
|
||||
</ion-card-content>
|
||||
</ion-card-header>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-gabinete-digital',
|
||||
@@ -9,13 +10,30 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
segment:string;
|
||||
|
||||
constructor() { }
|
||||
constructor(private processesbackend:ProcessesService) { }
|
||||
|
||||
count_exp_dailywork : number;
|
||||
count_exp_pp : string;
|
||||
count_exp_pd : string;
|
||||
count_dip_apr : string;
|
||||
count_dip_pv : string;
|
||||
count_de_pr : string;
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadCounts();
|
||||
}
|
||||
|
||||
load(){
|
||||
|
||||
}
|
||||
|
||||
LoadCounts() {
|
||||
this.count_exp_dailywork = this.processesbackend.GetDailyWorkCount();
|
||||
this.count_exp_pp = "-";
|
||||
this.count_exp_pd = "-";
|
||||
this.count_dip_apr = "-";
|
||||
this.count_dip_pv = "-";
|
||||
this.count_de_pr = "-";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user