mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Merge branch 'developer-c' of bitbucket.org:equilibriumito/gabinete-digital into developer-c
This commit is contained in:
@@ -76,6 +76,10 @@ const routes: Routes = [
|
|||||||
path: 'edit-event',
|
path: 'edit-event',
|
||||||
loadChildren: () => import('../pages/agenda/edit-event/edit-event.module').then( m => m.EditEventPageModule)
|
loadChildren: () => import('../pages/agenda/edit-event/edit-event.module').then( m => m.EditEventPageModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'emend-message-modal',
|
||||||
|
loadChildren: () => import('../pages/agenda/emend-message-modal/emend-message-modal.module').then( m => m.EmendMessageModalPageModule)
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,12 +15,8 @@
|
|||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
<ion-footer>
|
<ion-footer>
|
||||||
<ion-toolbar>
|
<div class="buttons width-100">
|
||||||
<div class="buttons">
|
<button class="btn-delete" shape="round" (click)="close()">Cancelar</button>
|
||||||
<ion-item lines="none">
|
<button class="btn-ok" shape="round" (click)="save()">Gravar</button>
|
||||||
<ion-button class="button-reject" shape="round" (click)="close()">Cancelar</ion-button>
|
|
||||||
<ion-button class="button-approve" shape="round" (click)="save()">Gravar</ion-button>
|
|
||||||
</ion-item>
|
|
||||||
</div>
|
</div>
|
||||||
</ion-toolbar>
|
|
||||||
</ion-footer>
|
</ion-footer>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.header-content{
|
.header-content{
|
||||||
width: 360px;
|
//width: 360px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin: 25px auto;
|
margin: 25px auto;
|
||||||
}
|
}
|
||||||
@@ -39,3 +39,10 @@
|
|||||||
--background: #42b9fe;
|
--background: #42b9fe;
|
||||||
margin: 0 0px 0 12px;
|
margin: 0 0px 0 12px;
|
||||||
}
|
}
|
||||||
|
.buttons{
|
||||||
|
display: flex;
|
||||||
|
width: 100% !important;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 15px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
@@ -11,12 +11,14 @@ export class EmendMessageModalPage implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
) { }
|
) {
|
||||||
|
this.emendMessage = '';
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
close(){
|
close(){
|
||||||
this.modalController.dismiss(this.emendMessage);
|
this.modalController.dismiss('');
|
||||||
}
|
}
|
||||||
save(){
|
save(){
|
||||||
this.modalController.dismiss(this.emendMessage);
|
this.modalController.dismiss(this.emendMessage);
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="event-number p-small ion-text-center"> <strong>{{totalEvent}}</strong> eventos agendados para hoje</p>
|
<p class="event-number p-small ion-text-center"> <strong>{{totalEvent}}</strong> eventos agendados para hoje</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
|
|
||||||
<div class="next-meeting">
|
<div class="next-meeting">
|
||||||
<div class="meeting-time">{{currentHoursMinutes | date: 'HH:mm'}}</div>
|
<div class="meeting-time">{{currentHoursMinutes | date: 'HH:mm'}}</div>
|
||||||
<div class="meeting-description"> "{{currentEvent}}"</div>
|
<div class="meeting-description"> "{{currentEvent}}"</div>
|
||||||
|
|||||||
@@ -12,7 +12,11 @@
|
|||||||
|
|
||||||
<!-- Aside left -->
|
<!-- Aside left -->
|
||||||
<div class="aside-wrapper d-flex flex-column pt-25 justify-center width-md-40 ">
|
<div class="aside-wrapper d-flex flex-column pt-25 justify-center width-md-40 ">
|
||||||
<p class="text-center mt-0 aside-title px-20">Gabinete Digital</p>
|
<div class="title-container">
|
||||||
|
<span class="text-center mt-0 aside-title px-20">Gabinete Digital</span>
|
||||||
|
<ion-icon (click)="doRefresh($event)" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="aside overflow-y-auto d-flex d-md-block flex-wrap justify-center width-100 px-20">
|
<div class="aside overflow-y-auto d-flex d-md-block flex-wrap justify-center width-100 px-20">
|
||||||
<div class="exp-card d-flex flex-column justify-center" (click)="openEventsToApprovePage('MDGPR')">
|
<div class="exp-card d-flex flex-column justify-center" (click)="openEventsToApprovePage('MDGPR')">
|
||||||
<div class="d-flex justify-center">
|
<div class="d-flex justify-center">
|
||||||
|
|||||||
@@ -11,6 +11,15 @@ ion-content{
|
|||||||
ion-card-title{
|
ion-card-title{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.title-container{
|
||||||
|
margin-bottom: 15px;
|
||||||
|
.title-icon{
|
||||||
|
float: right;
|
||||||
|
margin-right: 20px;
|
||||||
|
font-size: 30px;
|
||||||
|
color: #0782c9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ion-card{
|
ion-card{
|
||||||
background-color: #d4d5ca;
|
background-color: #d4d5ca;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { EventsService } from 'src/app/services/events.service';
|
|||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import { EventListPage } from './event-list/event-list.page';
|
import { EventListPage } from './event-list/event-list.page';
|
||||||
import { ExpedientePage } from './expediente/expediente.page';
|
import { ExpedientePage } from './expediente/expediente.page';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-gabinete-digital',
|
selector: 'app-gabinete-digital',
|
||||||
@@ -44,7 +44,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
private processesbackend:ProcessesService,
|
private processesbackend:ProcessesService,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private alertService: AlertService,
|
private alertService: AlertService,
|
||||||
private route: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
|
private router: Router,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
window.onresize = (event) => {
|
window.onresize = (event) => {
|
||||||
@@ -57,10 +58,23 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
|
|
||||||
this.adjastModalHeight();
|
this.adjastModalHeight();
|
||||||
|
|
||||||
this.route.queryParams.subscribe(params => {
|
/* this.activatedRoute.queryParams.subscribe(params => {
|
||||||
if(params["show"]){
|
if(params["show"]){
|
||||||
this.openExpedientListPage();
|
this.openExpedientListPage();
|
||||||
}
|
}
|
||||||
|
else if(params["events-to-approve"]){
|
||||||
|
this.openEventsToApprovePage("MDGPR");
|
||||||
|
}
|
||||||
|
}); */
|
||||||
|
|
||||||
|
this.activatedRoute.paramMap.subscribe(paramMap =>{
|
||||||
|
if (paramMap.has("show")){
|
||||||
|
this.openExpedientListPage();
|
||||||
|
}
|
||||||
|
else if(paramMap.has("events")){
|
||||||
|
this.openEventsToApprovePage("MDGPR");
|
||||||
|
this.LoadCounts();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -93,6 +107,15 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
//Initialize profile as mdgpr
|
//Initialize profile as mdgpr
|
||||||
this.profile = "MDGPR";
|
this.profile = "MDGPR";
|
||||||
|
|
||||||
|
this.router.events.forEach((event) => {
|
||||||
|
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||||
|
this.LoadCounts();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.LoadCounts();
|
this.LoadCounts();
|
||||||
/* this.eventService.getAllMdEvents.subscribe(res=>{
|
/* this.eventService.getAllMdEvents.subscribe(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -137,6 +160,8 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
|||||||
}
|
}
|
||||||
|
|
||||||
doRefresh(event) {
|
doRefresh(event) {
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
this.showEmptyContainer = true;
|
||||||
this.LoadCounts();
|
this.LoadCounts();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
|
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { NavigationExtras, Router } from '@angular/router';
|
||||||
import { MenuController, ModalController, NavParams, PopoverController } from '@ionic/angular';
|
import { MenuController, ModalController, NavParams, PopoverController } from '@ionic/angular';
|
||||||
import { Event } from 'src/app/models/event.model';
|
import { Event } from 'src/app/models/event.model';
|
||||||
import { AlertService } from 'src/app/services/alert.service';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
@@ -136,6 +136,8 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
|
|
||||||
modal.onDidDismiss().then(res => {
|
modal.onDidDismiss().then(res => {
|
||||||
|
console.log(res.data);
|
||||||
|
|
||||||
if(res.data !== ''){
|
if(res.data !== ''){
|
||||||
let body = { "serialNumber": serialNumber,
|
let body = { "serialNumber": serialNumber,
|
||||||
"action": "Emendar",
|
"action": "Emendar",
|
||||||
@@ -145,8 +147,9 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list']);
|
//this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
this.alertService.presentAlert('Operação realizada com sucesso!');
|
this.alertService.presentAlert('Operação realizada com sucesso!');
|
||||||
|
this.goToEventsToApprove();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.alertService.presentAlert('Operação cancelada!');
|
this.alertService.presentAlert('Operação cancelada!');
|
||||||
@@ -154,4 +157,13 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goToEventsToApprove(){
|
||||||
|
let navigationExtras: NavigationExtras = {
|
||||||
|
queryParams: {
|
||||||
|
"events": true,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export class NewEventPage implements OnInit {
|
|||||||
Body: this.eventBody,
|
Body: this.eventBody,
|
||||||
Location: '',
|
Location: '',
|
||||||
CalendarId: '',
|
CalendarId: '',
|
||||||
CalendarName: this.selectedSegment,
|
CalendarName: '',
|
||||||
StartDate: selectedStartdDate,
|
StartDate: selectedStartdDate,
|
||||||
EndDate: new Date(selectedEndDate),
|
EndDate: new Date(selectedEndDate),
|
||||||
EventType: 'Reunião',
|
EventType: 'Reunião',
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="title width-100">
|
<div class="title width-100">
|
||||||
<label>Eventos para Aprovação</label>
|
<div class="title-container">
|
||||||
|
<span class="text-center mt-0 aside-title px-20"><label>Eventos para Aprovação</label></span>
|
||||||
|
<ion-icon (click)="doRefresh($event)" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
|
</div>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-segment [(ngModel)]="profile">
|
<ion-segment [(ngModel)]="profile">
|
||||||
<ion-segment-button value="MDGPR">
|
<ion-segment-button value="MDGPR">
|
||||||
|
|||||||
@@ -2,6 +2,15 @@
|
|||||||
padding: 30px 20px 0 20px !important;
|
padding: 30px 20px 0 20px !important;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.title-container{
|
||||||
|
margin-bottom: 15px;
|
||||||
|
.title-icon{
|
||||||
|
float: right;
|
||||||
|
margin-right: 20px;
|
||||||
|
font-size: 30px;
|
||||||
|
color: #0782c9;
|
||||||
|
}
|
||||||
|
}
|
||||||
.title{
|
.title{
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
|
|||||||
Reference in New Issue
Block a user