mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="header-content width-100">
|
<div class="header-content width-100">
|
||||||
<div class="header-title d-flex width-100">
|
<div class="header-title d-flex width-100">
|
||||||
<p>Deseja retirar este expediente da sua caixa de correspondência?</p>
|
<h3>Deseja retirar este expediente da sua caixa de correspondência?</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-body width-100">
|
<div class="header-body width-100">
|
||||||
|
|||||||
+30
-34
@@ -163,12 +163,9 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
let docs = {
|
let docs = {
|
||||||
ProcessInstanceID: "",
|
ProcessInstanceID: "",
|
||||||
Attachments: [
|
Attachments: []
|
||||||
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const DocumentToSave = this.documents.map((e) => {
|
const DocumentToSave = this.documents.map((e) => {
|
||||||
@@ -196,12 +193,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
//SubjectTypes: [],
|
//SubjectTypes: [],
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.processes.postDespatcho(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_despacho = {
|
let action_despacho = {
|
||||||
"serialNumber": this.task.serialNumber,
|
"serialNumber": this.task.serialNumber,
|
||||||
"action": "Tratado",
|
"action": "Tratado",
|
||||||
@@ -210,7 +201,14 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
"Note": "",
|
"Note": "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.taskResult = await this.processes.postDespatcho(this.postData).toPromise();
|
||||||
this.modalController.dismiss(action_despacho);
|
this.modalController.dismiss(action_despacho);
|
||||||
|
//await this.successMessage('Processo efetuado');
|
||||||
|
|
||||||
|
} catch (error) {
|
||||||
|
await this.badRequest('Processo não efetuado')
|
||||||
|
}
|
||||||
|
console.log('this.taskResult', this.taskResult);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '1':
|
case '1':
|
||||||
@@ -225,12 +223,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise()
|
|
||||||
await this.successMessage('Processo efetuado')
|
|
||||||
} catch (error) {
|
|
||||||
await this.badRequest('Processo não efetuado')
|
|
||||||
}
|
|
||||||
|
|
||||||
let action_parecer = {
|
let action_parecer = {
|
||||||
"serialNumber": this.task.serialNumber,
|
"serialNumber": this.task.serialNumber,
|
||||||
"action": "Tratado",
|
"action": "Tratado",
|
||||||
@@ -239,7 +231,12 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
"Note": "",
|
"Note": "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.taskResult = await this.processes.postParecer(this.postData).toPromise();
|
||||||
this.modalController.dismiss(action_parecer);
|
this.modalController.dismiss(action_parecer);
|
||||||
|
//await this.successMessage('Processo efetuado')
|
||||||
|
} catch (error) {
|
||||||
|
await this.badRequest('Processo não efetuado')
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
this.postData = {
|
this.postData = {
|
||||||
@@ -253,12 +250,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
//console.log(this.postData);
|
//console.log(this.postData);
|
||||||
try {
|
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 = {
|
let action_deferimento = {
|
||||||
"serialNumber": this.task.serialNumber,
|
"serialNumber": this.task.serialNumber,
|
||||||
"action": "Tratado",
|
"action": "Tratado",
|
||||||
@@ -267,7 +258,13 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
"Note": "",
|
"Note": "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise();
|
||||||
this.modalController.dismiss(action_deferimento);
|
this.modalController.dismiss(action_deferimento);
|
||||||
|
//await this.successMessage('Processo efetuado')
|
||||||
|
} catch (error) {
|
||||||
|
await this.badRequest('Processo não efetuado')
|
||||||
|
}
|
||||||
|
console.log('this.taskResult', this.taskResult);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -290,12 +287,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
console.log(this.postData);
|
console.log(this.postData);
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.processes.postDespatchoPr(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_despacho_pr = {
|
let action_despacho_pr = {
|
||||||
"serialNumber": this.task.serialNumber,
|
"serialNumber": this.task.serialNumber,
|
||||||
"action": "Tratado",
|
"action": "Tratado",
|
||||||
@@ -304,7 +295,13 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
"Note": "",
|
"Note": "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.taskResult = await this.processes.postDespatchoPr(this.postData).toPromise();
|
||||||
this.modalController.dismiss(action_despacho_pr);
|
this.modalController.dismiss(action_despacho_pr);
|
||||||
|
//await this.successMessage('Processo efetuado')
|
||||||
|
} catch (error) {
|
||||||
|
await this.badRequest('Processo não efetuado')
|
||||||
|
}
|
||||||
|
console.log('this.taskResult', this.taskResult);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '1':
|
case '1':
|
||||||
@@ -319,12 +316,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
|
||||||
await this.successMessage('Processo efetuado')
|
|
||||||
} catch (error) {
|
|
||||||
await this.badRequest('Processo não efetuado')
|
|
||||||
}
|
|
||||||
|
|
||||||
let action_parecer_pr = {
|
let action_parecer_pr = {
|
||||||
"serialNumber": this.task.serialNumber,
|
"serialNumber": this.task.serialNumber,
|
||||||
"action": "Tratado",
|
"action": "Tratado",
|
||||||
@@ -333,7 +324,12 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
"Note": "",
|
"Note": "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
||||||
this.modalController.dismiss(action_parecer_pr);
|
this.modalController.dismiss(action_parecer_pr);
|
||||||
|
//await this.successMessage('Processo efetuado')
|
||||||
|
} catch (error) {
|
||||||
|
await this.badRequest('Processo não efetuado')
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
+2
-6
@@ -196,18 +196,13 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
modal.onDidDismiss().then(res=>{
|
modal.onDidDismiss().then(res=>{
|
||||||
console.log(res['data']);
|
console.log(res['data']);
|
||||||
let body = res['data'];
|
let body = res['data'];
|
||||||
// alert('close '+ res['data'])
|
|
||||||
if(res['data']){
|
if(res['data']){
|
||||||
console.log('open discart');
|
console.log('open discart')
|
||||||
|
|
||||||
this.distartExpedientModal(body);
|
this.distartExpedientModal(body);
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
console.log('Not open');
|
console.log('Not open');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,6 +225,7 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
|
|
||||||
if(res['data']== 'Yes'){
|
if(res['data']== 'Yes'){
|
||||||
this.processes.CompleteTask(body);
|
this.processes.CompleteTask(body);
|
||||||
|
this.goBack();
|
||||||
}
|
}
|
||||||
else if(res['data'] == 'No'){
|
else if(res['data'] == 'No'){
|
||||||
let otherbody = {
|
let otherbody = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
||||||
import { NavigationExtras, Router } from '@angular/router';
|
import { NavigationEnd, NavigationExtras, Router } from '@angular/router';
|
||||||
import { CalendarComponent } from 'ionic2-calendar';
|
import { CalendarComponent } from 'ionic2-calendar';
|
||||||
|
|
||||||
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||||
@@ -40,6 +40,11 @@ export class ExpedientePage implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.LoadList();
|
this.LoadList();
|
||||||
|
this.router.events.forEach((event) => {
|
||||||
|
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||||
|
this.LoadList();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
notImplemented(){
|
notImplemented(){
|
||||||
|
|||||||
@@ -317,6 +317,7 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
console.log(res['data']);
|
console.log(res['data']);
|
||||||
if(res['data']== 'Yes'){
|
if(res['data']== 'Yes'){
|
||||||
this.processes.CompleteTask(body);
|
this.processes.CompleteTask(body);
|
||||||
|
this.goBack();
|
||||||
}
|
}
|
||||||
else if(res['data'] == 'No'){
|
else if(res['data'] == 'No'){
|
||||||
let otherbody = {
|
let otherbody = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
||||||
import { NavigationExtras, Router } from '@angular/router';
|
import { NavigationEnd, NavigationExtras, Router } from '@angular/router';
|
||||||
import { CalendarComponent } from 'ionic2-calendar';
|
import { CalendarComponent } from 'ionic2-calendar';
|
||||||
|
|
||||||
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||||
@@ -40,6 +40,11 @@ export class ExpedientesPrPage implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.LoadList();
|
this.LoadList();
|
||||||
|
this.router.events.forEach((event) => {
|
||||||
|
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||||
|
this.LoadList();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
notImplemented(){
|
notImplemented(){
|
||||||
|
|||||||
@@ -65,16 +65,19 @@ export class PedidosPage implements OnInit {
|
|||||||
this.openPedido.emit(data);
|
this.openPedido.emit(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadList(){
|
async LoadList(){
|
||||||
if(this.segment == 'parecer'){
|
if(this.segment == 'parecer'){
|
||||||
this.taskType = "Pedido de Parecer";
|
this.taskType = "Pedido de Parecer";
|
||||||
this.processes.GetTasksList("Pedido de Parecer", false).subscribe(result => {
|
|
||||||
this.taskslist = result;
|
let parecer = await this.processes.GetTasksList("Pedido de Parecer", false).toPromise();
|
||||||
console.log(result);
|
let parecerPr = await this.processes.GetTasksList("Pedido de Parecer do Presidente", false).toPromise();
|
||||||
|
|
||||||
|
let allParecer = parecer.concat(parecerPr).reverse();
|
||||||
|
console.log(allParecer);
|
||||||
|
|
||||||
this.parecerList = new Array();
|
this.parecerList = new Array();
|
||||||
let res = result.reverse();
|
|
||||||
res.forEach(element => {
|
allParecer.forEach(element => {
|
||||||
let task = {
|
let task = {
|
||||||
"SerialNumber": element.serialNumber,
|
"SerialNumber": element.serialNumber,
|
||||||
"Folio": element.workflowInstanceDataFields.Subject,
|
"Folio": element.workflowInstanceDataFields.Subject,
|
||||||
@@ -91,7 +94,6 @@ export class PedidosPage implements OnInit {
|
|||||||
});
|
});
|
||||||
console.log(this.parecerList);
|
console.log(this.parecerList);
|
||||||
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else if(this.segment == 'deferimento') {
|
else if(this.segment == 'deferimento') {
|
||||||
this.taskType = "Pedido de Deferimento";
|
this.taskType = "Pedido de Deferimento";
|
||||||
|
|||||||
Reference in New Issue
Block a user