mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Fixe merge
This commit is contained in:
@@ -92,10 +92,6 @@ export class EventsPage implements OnInit {
|
||||
this.profile = "mdgpr";
|
||||
/* console.log(this.profile); */
|
||||
|
||||
/* this.storageService.get(AuthConnstants.USER).then(res=>{
|
||||
console.log(res);
|
||||
}); */
|
||||
|
||||
this.showGreeting();
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
@@ -104,10 +100,6 @@ export class EventsPage implements OnInit {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
/* this.storageService.get(AuthConnstants.PROFILE).then(res=>{
|
||||
this.profile = res;
|
||||
}); */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -255,10 +247,24 @@ export class EventsPage implements OnInit {
|
||||
}
|
||||
|
||||
LoadList(){
|
||||
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
||||
this.expedientList = result.reverse();
|
||||
console.log(this.expedientList);
|
||||
});
|
||||
switch (this.loggeduser.Profile) {
|
||||
case 'MDGPR':
|
||||
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
||||
this.expedientList = result.reverse();
|
||||
console.log(this.expedientList);
|
||||
});
|
||||
break;
|
||||
case 'PR':
|
||||
this.processes.GetTasksList("Expediente do Presidente", false).subscribe(result => {
|
||||
this.expedientList = result.reverse();
|
||||
console.log(this.expedientList);
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any){
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { DiplomaAssinarPage } from './diploma-assinar.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: DiplomaAssinarPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class DiplomaAssinarPageRoutingModule {}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { DiplomaAssinarPageRoutingModule } from './diploma-assinar-routing.module';
|
||||
|
||||
import { DiplomaAssinarPage } from './diploma-assinar.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
DiplomaAssinarPageRoutingModule
|
||||
],
|
||||
declarations: [DiplomaAssinarPage]
|
||||
})
|
||||
export class DiplomaAssinarPageModule {}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>diploma-assinar</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
|
||||
</ion-content>
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { DiplomaAssinarPage } from './diploma-assinar.page';
|
||||
|
||||
describe('DiplomaAssinarPage', () => {
|
||||
let component: DiplomaAssinarPage;
|
||||
let fixture: ComponentFixture<DiplomaAssinarPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DiplomaAssinarPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(DiplomaAssinarPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-diploma-assinar',
|
||||
templateUrl: './diploma-assinar.page.html',
|
||||
styleUrls: ['./diploma-assinar.page.scss'],
|
||||
})
|
||||
export class DiplomaAssinarPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { DiplomasAssinarPage } from './diplomas-assinar.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: DiplomasAssinarPage
|
||||
},
|
||||
{
|
||||
path: 'diploma-assinar',
|
||||
loadChildren: () => import('./diploma-assinar/diploma-assinar.module').then( m => m.DiplomaAssinarPageModule)
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class DiplomasAssinarPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { DiplomasAssinarPageRoutingModule } from './diplomas-assinar-routing.module';
|
||||
|
||||
import { DiplomasAssinarPage } from './diplomas-assinar.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
DiplomasAssinarPageRoutingModule
|
||||
],
|
||||
declarations: [DiplomasAssinarPage]
|
||||
})
|
||||
export class DiplomasAssinarPageModule {}
|
||||
@@ -0,0 +1,9 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>diplomas-assinar</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
|
||||
</ion-content>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { DiplomasAssinarPage } from './diplomas-assinar.page';
|
||||
|
||||
describe('DiplomasAssinarPage', () => {
|
||||
let component: DiplomasAssinarPage;
|
||||
let fixture: ComponentFixture<DiplomasAssinarPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DiplomasAssinarPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(DiplomasAssinarPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-diplomas-assinar',
|
||||
templateUrl: './diplomas-assinar.page.html',
|
||||
styleUrls: ['./diplomas-assinar.page.scss'],
|
||||
})
|
||||
export class DiplomasAssinarPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
+145
-116
@@ -174,129 +174,158 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
SourceId: e.Id
|
||||
}
|
||||
});
|
||||
|
||||
docs.Attachments = DocumentToSave;
|
||||
|
||||
this.dispatchFolder.SubjectTypes = this.selectedTypes;
|
||||
|
||||
|
||||
if(this.taskParticipants.length > 0) {
|
||||
switch (this.taskType) {
|
||||
case '0':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs,
|
||||
//SubjectTypes: [],
|
||||
|
||||
}
|
||||
|
||||
// console.log('this.postData', this.postData, this.taskType);
|
||||
|
||||
try {
|
||||
switch(this.loggeduser.Profile){
|
||||
case 'MDGPR':
|
||||
switch (this.loggeduser.Profile) {
|
||||
case 'MDGPR':
|
||||
switch (this.taskType) {
|
||||
case '0':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs,
|
||||
//SubjectTypes: [],
|
||||
}
|
||||
try {
|
||||
this.taskResult = await this.processes.postDespatcho(this.postData).toPromise();
|
||||
break;
|
||||
case 'PR':
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
let action_despacho = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 94,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_despacho);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs
|
||||
}
|
||||
|
||||
try {
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
|
||||
let action_parecer = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 92,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_parecer);
|
||||
break;
|
||||
case '2':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs
|
||||
}
|
||||
//console.log(this.postData);
|
||||
try {
|
||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise()
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
let action_deferimento = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 93,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_deferimento);
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'PR':
|
||||
switch (this.taskType) {
|
||||
case '0':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs,
|
||||
//SubjectTypes: [],
|
||||
}
|
||||
try {
|
||||
this.taskResult = await this.processes.postDespatchoPr(this.postData).toPromise();
|
||||
break;
|
||||
}
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
|
||||
let action_despacho = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 94,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
|
||||
this.modalController.dismiss(action_despacho);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs
|
||||
}
|
||||
|
||||
//console.log(this.postData);
|
||||
|
||||
try {
|
||||
switch(this.loggeduser.Profile){
|
||||
case 'MDGPR':
|
||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise();
|
||||
break;
|
||||
case 'PR':
|
||||
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
||||
break;
|
||||
}
|
||||
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
let action_despacho_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881 ,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_despacho_pr);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs
|
||||
}
|
||||
|
||||
// console.log('this.taskResult', this.taskResult);
|
||||
|
||||
let action_parecer = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 92,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
try {
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
|
||||
let action_parecer_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_parecer_pr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_parecer);
|
||||
break;
|
||||
case '2':
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
Priority: this.postData.Priority,
|
||||
UserEmail: this.user,
|
||||
UsersSelected: attendees,
|
||||
DispatchFolder: this.dispatchFolder,
|
||||
AttachmentList: docs
|
||||
}
|
||||
|
||||
//console.log(this.postData);
|
||||
|
||||
try {
|
||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise()
|
||||
await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
|
||||
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
|
||||
let action_deferimento = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 93,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_deferimento);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,9 +89,6 @@ export class ExpedientePrPage implements OnInit {
|
||||
};
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
markToDispatch(){
|
||||
|
||||
}
|
||||
|
||||
sendExpedienteToPending(){
|
||||
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
||||
@@ -229,7 +226,6 @@ export class ExpedientePrPage implements OnInit {
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then(res=>{
|
||||
console.log(res['data']);
|
||||
|
||||
if(res['data']== 'Yes'){
|
||||
this.processes.CompleteTask(body);
|
||||
}
|
||||
@@ -237,7 +233,7 @@ export class ExpedientePrPage implements OnInit {
|
||||
let otherbody = {
|
||||
"serialNumber": body.serialNumber,
|
||||
"action": "Passivo",
|
||||
"ActionTypeId": 94,
|
||||
"ActionTypeId": 99999877,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
@@ -245,6 +241,7 @@ export class ExpedientePrPage implements OnInit {
|
||||
this.processes.CompleteTask(otherbody);
|
||||
}
|
||||
//Volta na lista principal
|
||||
this.goBack();
|
||||
this.modalController.dismiss();
|
||||
|
||||
});
|
||||
|
||||
@@ -44,6 +44,10 @@ const routes: Routes = [
|
||||
path: 'expedientes-pr',
|
||||
loadChildren: () => import('./expedientes-pr/expedientes-pr.module').then( m => m.ExpedientesPrPageModule)
|
||||
},
|
||||
{
|
||||
path: 'diplomas-assinar',
|
||||
loadChildren: () => import('./diplomas-assinar/diplomas-assinar.module').then( m => m.DiplomasAssinarPageModule)
|
||||
},
|
||||
|
||||
|
||||
];
|
||||
|
||||
@@ -21,6 +21,7 @@ import { DespachosPrPage } from 'src/app/shared/gabinete-digital/despachos-pr/de
|
||||
import { DiplomasPage } from 'src/app/shared/gabinete-digital/diplomas/diplomas.page';
|
||||
import { ExpedientesPrPage } from 'src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page';
|
||||
import { SignedDiplomaComponent } from 'src/app/shared/gabinete-digital/signed-diploma/signed-diploma.component';
|
||||
import { DiplomasAssinarPage } from 'src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.page';
|
||||
/* import { ComponentsModule } from 'src/app/components/components.module'; */
|
||||
|
||||
@NgModule({
|
||||
@@ -44,7 +45,8 @@ import { SignedDiplomaComponent } from 'src/app/shared/gabinete-digital/signed-d
|
||||
DespachosPrPage,
|
||||
DiplomasPage,
|
||||
ExpedientesPrPage,
|
||||
SignedDiplomaComponent
|
||||
SignedDiplomaComponent,
|
||||
DiplomasAssinarPage
|
||||
],
|
||||
entryComponents: [
|
||||
EmptyContainerPage,
|
||||
@@ -57,7 +59,8 @@ import { SignedDiplomaComponent } from 'src/app/shared/gabinete-digital/signed-d
|
||||
DespachosPrPage,
|
||||
DiplomasPage,
|
||||
ExpedientesPrPage,
|
||||
SignedDiplomaComponent
|
||||
SignedDiplomaComponent,
|
||||
DiplomasAssinarPage
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div (click)="openDiplomasPage('validar'); selectedElement='DiplomasPorAssinar'" [class.active]="selectedElement == 'DiplomasPorAssinar'" class="exp-card d-flex flex-column justify-center">
|
||||
<div *ngIf="loggeduser.Profile == 'MDGPR'" (click)="openDiplomasPage('validar'); selectedElement='DiplomasPorAssinar'" [class.active]="selectedElement == 'DiplomasPorAssinar'" class="exp-card d-flex flex-column justify-center">
|
||||
<div class="d-flex justify-center">
|
||||
<ion-icon src="assets/images/icons-expediente-diploma.svg"></ion-icon>
|
||||
</div>
|
||||
@@ -122,7 +122,7 @@
|
||||
<p class="text-center exp-card-content">{{count_dip_pv}} <span class="title1">Documentos</span> </p>
|
||||
</div>
|
||||
|
||||
<div (click)="openDiplomasPage('assinados'); selectedElement='DiplomasAssinados'" [class.active]="selectedElement == 'DiplomasAssinados'" class="exp-card d-flex flex-column justify-center" *ngIf="loggeduser.Profile == 'MDGPR'">
|
||||
<div *ngIf="loggeduser.Profile == 'MDGPR'" (click)="openDiplomasPage('assinados'); selectedElement='DiplomasAssinados'" [class.active]="selectedElement == 'DiplomasAssinados'" class="exp-card d-flex flex-column justify-center">
|
||||
<div class="d-flex justify-center">
|
||||
<ion-icon src="assets/images/icons-diplomas-assinados-presidente.svg"></ion-icon>
|
||||
</div>
|
||||
@@ -131,6 +131,14 @@
|
||||
<p class="text-center exp-card-content">{{count_dip_Signed}} <span class="title1">Documentos</span></p>
|
||||
</div>
|
||||
|
||||
<div *ngIf="loggeduser.Profile == 'PR'" (click)="openDiplomasAssinarPage(); selectedElement='DiplomasAssinar'" [class.active]="selectedElement == 'DiplomasAssinar'" class="exp-card d-flex flex-column justify-center">
|
||||
<div class="d-flex justify-center">
|
||||
<ion-icon src="assets/images/icons-expediente-diploma.svg"></ion-icon>
|
||||
</div>
|
||||
<p class="text-center exp-card-title">Diplomas por Assinar</p>
|
||||
<p class="text-center exp-card-content">{{count_dip_Signed}} <span class="title1">Documentos</span></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -148,6 +156,7 @@
|
||||
<app-despachos-pr (openExpedientDetail)="openExpedientPage($event)" [profile]="profile" class="d-flex height-100 flex-column" *ngIf="showDespachosPr"></app-despachos-pr>
|
||||
<app-pendentes (openExpedientDetail)="openExpedientPage($event)" [profile]="profile" class="d-flex height-100 flex-column" *ngIf="showPendentes"></app-pendentes>
|
||||
<app-diplomas (openExpedientDetail)="openExpedientesPrPage($event)" [profile]="profile" [segment]="segment" class="d-flex height-100 flex-column" *ngIf="showDiplomas"></app-diplomas>
|
||||
<app-diplomas-assinar class="d-flex height-100 flex-column" *ngIf="showDiplomasAssinar"></app-diplomas-assinar>
|
||||
<app-expedientes-pr (openExpedientDetail)="openExpedientPage($event)" [profile]="profile" class="d-flex height-100 flex-column" *ngIf="showExpedientesPr"></app-expedientes-pr>
|
||||
<app-signed-diploma [profile]="profile" class="d-flex height-100 flex-column" *ngIf="showSignedDiploma"></app-signed-diploma>
|
||||
</div>
|
||||
|
||||
@@ -60,6 +60,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
showDespachosPr = false;
|
||||
showPendentes = false;
|
||||
showDiplomas = false;
|
||||
showDiplomasAssinar = false;
|
||||
showExpedientDetail = false;
|
||||
showSignedDiploma = false
|
||||
emptyTextDescription = 'Sem opção selecionada';
|
||||
@@ -128,6 +129,11 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this.openDiplomasPage('');
|
||||
this.selectedElement='DiplomasPorAssinar'
|
||||
break;
|
||||
|
||||
case params["diplomasassinar"]:
|
||||
this.openDiplomasPage('');
|
||||
this.selectedElement='DiplomasAssinar'
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -170,6 +176,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this.showDespachosPr = false;
|
||||
this.showPendentes = false;
|
||||
this.showDiplomas = false;
|
||||
this.showDiplomasAssinar = false;
|
||||
this.showExpedientesPr = false;
|
||||
this.showExpedientDetail = false;
|
||||
this.showSignedDiploma = false
|
||||
@@ -179,14 +186,10 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
|
||||
let expedientes = await this.processesbackend.GetTasksList("Expediente", false).toPromise();
|
||||
switch(this.loggeduser.Profile){
|
||||
case 'MDGPR':
|
||||
this.count_exp_dailywork = Object.keys(expedientes.filter(data => data.workflowInstanceDataFields.Status == "Active")).length;
|
||||
break;
|
||||
case 'PR':
|
||||
this.count_exp_pr = Object.keys(expedientes.filter(data => data.workflowInstanceDataFields.Status == "Active")).length;
|
||||
break;
|
||||
}
|
||||
this.count_exp_dailywork = Object.keys(expedientes.filter(data => data.workflowInstanceDataFields.Status == "Active")).length;
|
||||
|
||||
let expedientes_pr = await this.processesbackend.GetTasksList("Expediente do Presidente", false).toPromise();
|
||||
this.count_exp_pr = Object.keys(expedientes_pr.filter(data => data.workflowInstanceDataFields.Status == "Active")).length;
|
||||
|
||||
let despachos = await this.processesbackend.GetTasksList("Despacho", false).toPromise();
|
||||
this.count_desp_dailywork = Object.keys(despachos).length;
|
||||
@@ -208,19 +211,11 @@ export class GabineteDigitalPage implements OnInit {
|
||||
let diplomasValidar = despachospr.filter(data => data.activityInstanceName == "Revisar Diploma");
|
||||
this.count_dip_pv = Object.keys(diplomasValidar).length;
|
||||
|
||||
this.processesbackend.GetTasksList("Expediente", false).subscribe(result => {
|
||||
let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "Active");
|
||||
this.count_exp_pr = Object.keys(res).length
|
||||
});
|
||||
|
||||
this.processesbackend.GetTasksList("Expediente", false).subscribe(result => {
|
||||
let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "Signed");
|
||||
this.count_dip_Signed = Object.keys(res).length
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
this.processesbackend.GetToApprovedEvents('PR','true').subscribe(res=>{
|
||||
this.count_ev_pr = res;
|
||||
});
|
||||
@@ -348,7 +343,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
openPedidosPage(segment:string){
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800) {
|
||||
this.openPedidoList();
|
||||
//this.openPedidoList();
|
||||
this.router.navigate(['/home/gabinete-digital/pedidos']);
|
||||
}
|
||||
else{
|
||||
this.segment = segment;
|
||||
@@ -361,7 +357,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
openDespachosPage(segment:string){
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800){
|
||||
this.openDespachoList();
|
||||
//this.openDespachoList();
|
||||
this.router.navigate(['/home/gabinete-digital/despachos']);
|
||||
}
|
||||
else{
|
||||
let navigationExtras: NavigationExtras = {queryParams: {"despachos": true,}};
|
||||
@@ -373,7 +370,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
openDespachosPrPage(segment:string) {
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800){
|
||||
this.openDespachoListPr();
|
||||
//this.openDespachoListPr();
|
||||
this.router.navigate(['/home/gabinete-digital/despachos-pr']);
|
||||
}
|
||||
else{
|
||||
let navigationExtras: NavigationExtras = {queryParams: {"despachospr": true,}};
|
||||
@@ -385,7 +383,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
openPendentesPage(segment:string){
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800){
|
||||
this.openPendenteList();
|
||||
//this.openPendenteList();
|
||||
this.router.navigate(['/home/gabinete-digital/pendentes']);
|
||||
}
|
||||
else{
|
||||
let navigationExtras: NavigationExtras = { queryParams: {"pendentes": true,}};
|
||||
@@ -411,7 +410,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
openDiplomasPage(segment:string) {
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800){
|
||||
this.openDeploma();
|
||||
//this.openDeploma();
|
||||
this.router.navigate(['/home/gabinete-digital/diplomas']);
|
||||
}
|
||||
else{
|
||||
this.segment = segment;
|
||||
@@ -421,6 +421,19 @@ export class GabineteDigitalPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
openDiplomasAssinarPage() {
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800){
|
||||
//this.openDeploma();
|
||||
this.router.navigate(['/home/gabinete-digital/diplomas-assinar']);
|
||||
}
|
||||
else{
|
||||
let navigationExtras: NavigationExtras = { queryParams: {"diplomasassinar": true,}};
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
this.showDiplomasAssinar = true;
|
||||
}
|
||||
}
|
||||
|
||||
openSignedDiploma(segment:string) {
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 800){
|
||||
|
||||
+3
@@ -83,7 +83,10 @@ export class PublicationDetailPage implements OnInit {
|
||||
try {
|
||||
await this.publications.DeletePublication(this.folderId, this.publicationId).toPromise();
|
||||
this.successMessage()
|
||||
|
||||
this.close();
|
||||
//this.goBackToViewPublications.emit();
|
||||
|
||||
} catch (error) {
|
||||
this.badRequest()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user