mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -344,12 +344,7 @@ export class EventsPage implements OnInit {
|
|||||||
this.openExpedientList();
|
this.openExpedientList();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
console.log('ttt');
|
let navigationExtras: NavigationExtras = { queryParams: {"expedientes": true,} };
|
||||||
let navigationExtras: NavigationExtras = {
|
|
||||||
queryParams: {
|
|
||||||
"show": true,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,14 +60,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="middle-content">
|
<div class="middle-content">
|
||||||
<h5 *ngIf="intervenientes">Intervenientes</h5>
|
<div *ngIf="intervenientes.length > 0">
|
||||||
<ion-item class="ion-no-margin ion-no-padding">
|
<h5 >Intervenientes</h5>
|
||||||
<ion-label>
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
<div *ngFor="let interveniente of intervenientes">
|
<ion-label *ngIf="intervenientes">
|
||||||
<p>{{interveniente.Name}}</p>
|
<div *ngFor="let interveniente of intervenientes">
|
||||||
</div>
|
<p>{{interveniente.Name}}</p>
|
||||||
</ion-label>
|
</div>
|
||||||
</ion-item>
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
</div>
|
||||||
<div *ngIf="cc.length > 0">
|
<div *ngIf="cc.length > 0">
|
||||||
<h5>Com conhecimento</h5>
|
<h5>Com conhecimento</h5>
|
||||||
<ion-item class="ion-no-margin ion-no-padding">
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
@@ -86,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-content width-100">
|
<div class="bottom-content width-100">
|
||||||
<ion-list>
|
<ion-list *ngIf="attachments">
|
||||||
<h5>Documentos Anexados</h5>
|
<h5>Documentos Anexados</h5>
|
||||||
<ion-item *ngFor="let attachment of attachments" class="ion-no-margin ion-no-padding">
|
<ion-item *ngFor="let attachment of attachments" class="ion-no-margin ion-no-padding">
|
||||||
<ion-label
|
<ion-label
|
||||||
|
|||||||
@@ -180,6 +180,19 @@ export class DespachoPrPage implements OnInit {
|
|||||||
this.processes.CompleteTask(body);
|
this.processes.CompleteTask(body);
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
generateDiploma(note:string, documents:any){
|
||||||
|
let body = {
|
||||||
|
"serialNumber": this.serialnumber,
|
||||||
|
"action": "Reencaminhar",
|
||||||
|
"ActionTypeId": 98,
|
||||||
|
"dataFields": {
|
||||||
|
"ReviewUserComent": note,
|
||||||
|
},
|
||||||
|
"AttachmentList" :documents,
|
||||||
|
}
|
||||||
|
this.processes.CompleteTask(body);
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
|
||||||
sendExpedienteToPending(){
|
sendExpedienteToPending(){
|
||||||
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
||||||
@@ -214,6 +227,9 @@ export class DespachoPrPage implements OnInit {
|
|||||||
else if(actionName == 'Arquivar'){
|
else if(actionName == 'Arquivar'){
|
||||||
this.arquivar(res.data.note,res.data.documents);
|
this.arquivar(res.data.note,res.data.documents);
|
||||||
}
|
}
|
||||||
|
else if(actionName == 'Gerar Diploma'){
|
||||||
|
this.generateDiploma(res.data.note,res.data.documents);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,48 +132,6 @@
|
|||||||
<button (click)="openAddNoteModal('Reexecução')" class="btn-cancel" shape="round" >Enviar para Reexecução</button>
|
<button (click)="openAddNoteModal('Reexecução')" class="btn-cancel" shape="round" >Enviar para Reexecução</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!task">
|
|
||||||
<ion-list>
|
|
||||||
<ion-list-header>
|
|
||||||
<ion-label>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</ion-label>
|
|
||||||
</ion-list-header>
|
|
||||||
<ion-item>
|
|
||||||
<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>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<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>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<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>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-button color="medium" shape="round" expand="block">
|
|
||||||
<!-- <ion-icon color="medium" name="attach" slot="start"></ion-icon> -->
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</ion-button>
|
|
||||||
</ion-list>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { AlertService } from 'src/app/services/alert.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, NavigationEnd, Router } from '@angular/router';
|
import { ActivatedRoute, NavigationEnd, NavigationExtras, Router } from '@angular/router';
|
||||||
import { DespachosPage } from './despachos/despachos.page';
|
import { DespachosPage } from './despachos/despachos.page';
|
||||||
import { PedidosPage } from './pedidos/pedidos.page';
|
import { PedidosPage } from './pedidos/pedidos.page';
|
||||||
import { PendentesPage } from './pendentes/pendentes.page';
|
import { PendentesPage } from './pendentes/pendentes.page';
|
||||||
@@ -87,28 +87,55 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.activatedRoute.queryParams.subscribe(params => {
|
this.activatedRoute.queryParams.subscribe(params => {
|
||||||
if(params["show"]) {
|
switch (params)
|
||||||
this.openExpedientListPage();
|
{
|
||||||
this.selectedElement='Correspondence'
|
case params["eventos"]:
|
||||||
}
|
this.openEventsToApprovePage("MDGPR");
|
||||||
else if(params["events"]) {
|
this.selectedElement='approval'
|
||||||
this.openEventsToApprovePage("MDGPR");
|
break;
|
||||||
this.selectedElement='approval'
|
|
||||||
|
case params["expedientes"]:
|
||||||
}
|
this.openExpedientListPage();
|
||||||
else if(params["pedidos"]) {
|
this.selectedElement='Correspondence'
|
||||||
console.log(params["pedidos"]);
|
break;
|
||||||
|
|
||||||
this.openPedidosPage('parecer');
|
case params["pendentes"]:
|
||||||
this.selectedElement='RequestsForOpinion'
|
this.openPendentesPage('');
|
||||||
|
this.selectedElement='Pending'
|
||||||
}
|
break;
|
||||||
else if (window.innerWidth >= 800 && this.loggeduser.Profile == 'MDGPR') {
|
|
||||||
this.openEventsToApprovePage('MDGPR');
|
case params["despachos"]:
|
||||||
this.selectedElement='approval'
|
this.openDespachosPage('');
|
||||||
|
this.selectedElement='Dispatches';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case params["pedidos"]:
|
||||||
|
this.openPedidosPage('parecer');
|
||||||
|
this.selectedElement='RequestsForOpinion';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case params["expedientespr"]:
|
||||||
|
this.openEventsToApprovePage("MDGPR");
|
||||||
|
this.selectedElement='Expediente Presidente'
|
||||||
|
break;
|
||||||
|
|
||||||
|
case params["despachospr"]:
|
||||||
|
this.openDespachosPrPage('');
|
||||||
|
this.selectedElement='DispatchesPr'
|
||||||
|
break;
|
||||||
|
|
||||||
|
case params["diplomas"]:
|
||||||
|
this.openDiplomasPage('');
|
||||||
|
this.selectedElement='DiplomasPorAssinar'
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (window.innerWidth >= 800 && this.loggeduser.Profile == 'MDGPR') {
|
||||||
|
this.openEventsToApprovePage('MDGPR');
|
||||||
|
this.selectedElement='approval'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,6 +268,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
this.openEventsToApproveList(profile);
|
this.openEventsToApproveList(profile);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
let navigationExtras: NavigationExtras = { queryParams: {"eventos": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showEventsToApprove = true;
|
this.showEventsToApprove = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -272,6 +301,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.selectedElement='Correspondence'
|
this.selectedElement='Correspondence'
|
||||||
|
let navigationExtras: NavigationExtras = { queryParams: {"expedientes": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showExpedients = true;
|
this.showExpedients = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -296,6 +327,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.segment = segment;
|
this.segment = segment;
|
||||||
|
let navigationExtras: NavigationExtras = { queryParams: {"pedidos": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showPedidos = true;
|
this.showPedidos = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -306,6 +339,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
this.openDespachoList();
|
this.openDespachoList();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
let navigationExtras: NavigationExtras = {queryParams: {"despachos": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showDespachos = true;
|
this.showDespachos = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -316,6 +351,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
this.openDespachoListPr();
|
this.openDespachoListPr();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
let navigationExtras: NavigationExtras = {queryParams: {"despachospr": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showDespachosPr = true;
|
this.showDespachosPr = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -326,6 +363,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
this.openPendenteList();
|
this.openPendenteList();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
let navigationExtras: NavigationExtras = { queryParams: {"pendentes": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showPendentes = true;
|
this.showPendentes = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -336,6 +375,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
//this.openDespachoList();
|
//this.openDespachoList();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
let navigationExtras: NavigationExtras = {queryParams: {"expedientespr": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showExpedientesPr = true;
|
this.showExpedientesPr = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -347,6 +388,8 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.segment = segment;
|
this.segment = segment;
|
||||||
|
let navigationExtras: NavigationExtras = { queryParams: {"diplomas": true,}};
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
this.showDiplomas = true;
|
this.showDiplomas = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,48 +119,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!task">
|
|
||||||
<ion-list>
|
|
||||||
<ion-list-header>
|
|
||||||
<ion-label>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</ion-label>
|
|
||||||
</ion-list-header>
|
|
||||||
<ion-item>
|
|
||||||
<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>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<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>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<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>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-button color="medium" shape="round" expand="block">
|
|
||||||
<!-- <ion-icon color="medium" name="attach" slot="start"></ion-icon> -->
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</ion-button>
|
|
||||||
</ion-list>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
|
|||||||
@@ -128,11 +128,11 @@ segmentChanged(ev: any) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
doRefresh(event) {
|
doRefresh() {
|
||||||
this.LoadList();
|
this.LoadList();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
event.target.complete();
|
//event.target.complete();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ export class PedidosPage implements OnInit {
|
|||||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
||||||
"FolderId": element.workflowInstanceDataFields.FolderId,
|
"FolderId": element.workflowInstanceDataFields.FolderId,
|
||||||
"WorkflowName": element.workflowDisplayName,
|
"WorkflowName": element.workflowDisplayName,
|
||||||
|
"activityInstanceName": element.activityInstanceName,
|
||||||
}
|
}
|
||||||
this.deferimentoList.push(task);
|
this.deferimentoList.push(task);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user