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:
@@ -1,13 +1,8 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
import { NavigationEnd, NavigationExtras, Router } from '@angular/router';
|
import { NavigationEnd, Router } from '@angular/router';
|
||||||
import { CalendarComponent } from 'ionic2-calendar';
|
|
||||||
|
|
||||||
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
import { formatDate } from '@angular/common';
|
|
||||||
import { LoadingService } from 'src/app/services/loading.service';
|
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import { ExpedienteDetailPage } from 'src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page';
|
|
||||||
import { AlertService } from 'src/app/services/alert.service';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -21,21 +16,15 @@ export class ExpedientePage implements OnInit {
|
|||||||
showLoader: boolean;
|
showLoader: boolean;
|
||||||
//profile:string;
|
//profile:string;
|
||||||
|
|
||||||
@ViewChild(CalendarComponent) myCal: CalendarComponent;
|
|
||||||
|
|
||||||
taskslist:DailyWorkTask[];
|
taskslist:DailyWorkTask[];
|
||||||
serialNumber:string;
|
serialNumber:string;
|
||||||
|
|
||||||
@Input() profile:string;
|
|
||||||
@Output() openExpedientDetail:EventEmitter<any> = new EventEmitter<any>();
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private processes:ProcessesService,
|
private processes:ProcessesService,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private alertService: AlertService,
|
private alertService: AlertService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
) {
|
) {
|
||||||
this.profile = 'mdgpr';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -47,11 +36,6 @@ export class ExpedientePage implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
openExpedientDetailPage(data){
|
|
||||||
console.log(data);
|
|
||||||
this.openExpedientDetail.emit(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
LoadList(){
|
LoadList(){
|
||||||
this.showLoader = true;
|
this.showLoader = true;
|
||||||
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
|
|
||||||
desktopComponent: any = {
|
desktopComponent: any = {
|
||||||
showEventList: false,
|
showEventList: false,
|
||||||
showExpediente : false
|
showExpediente : false,
|
||||||
}
|
}
|
||||||
|
|
||||||
showEventsToApprove = false;
|
showEventsToApprove = false;
|
||||||
@@ -63,7 +63,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
showDiplomas = false;
|
showDiplomas = false;
|
||||||
showDiplomasAssinar = false;
|
showDiplomasAssinar = false;
|
||||||
showExpedientDetail = false;
|
showExpedientDetail = false;
|
||||||
showSignedDiploma = false
|
showSignedDiploma = false;
|
||||||
emptyTextDescription = 'Sem opção selecionada';
|
emptyTextDescription = 'Sem opção selecionada';
|
||||||
|
|
||||||
serialNumber:string;
|
serialNumber:string;
|
||||||
@@ -125,6 +125,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkUser(){
|
checkUser(){
|
||||||
|
this.selectedElement='Correspondence';
|
||||||
switch(this.loggeduser.Profile){
|
switch(this.loggeduser.Profile){
|
||||||
case 'MDGPR':
|
case 'MDGPR':
|
||||||
this.showExpedients = true;
|
this.showExpedients = true;
|
||||||
@@ -150,6 +151,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkRoutes(){
|
checkRoutes(){
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
if(this.router.url == '/home/gabinete-digital?eventos=true'){
|
if(this.router.url == '/home/gabinete-digital?eventos=true'){
|
||||||
this.openEventsToApprovePage();
|
this.openEventsToApprovePage();
|
||||||
this.selectedElement='approval';
|
this.selectedElement='approval';
|
||||||
|
|||||||
Reference in New Issue
Block a user