mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +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>
|
||||
<div class="header-content 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 class="header-body width-100">
|
||||
|
||||
+54
-58
@@ -163,12 +163,9 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
};
|
||||
})
|
||||
|
||||
|
||||
let docs = {
|
||||
ProcessInstanceID: "",
|
||||
Attachments: [
|
||||
|
||||
]
|
||||
Attachments: []
|
||||
}
|
||||
|
||||
const DocumentToSave = this.documents.map((e) => {
|
||||
@@ -196,21 +193,22 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
//SubjectTypes: [],
|
||||
}
|
||||
try {
|
||||
let action_despacho = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 94,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postDespatcho(this.postData).toPromise();
|
||||
await this.successMessage('Processo efetuado')
|
||||
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);
|
||||
let action_despacho = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 94,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_despacho);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
@@ -225,21 +223,20 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
|
||||
try {
|
||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise()
|
||||
await this.successMessage('Processo efetuado')
|
||||
let action_parecer = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 92,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise();
|
||||
this.modalController.dismiss(action_parecer);
|
||||
//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 = {
|
||||
@@ -253,21 +250,21 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
//console.log(this.postData);
|
||||
try {
|
||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise()
|
||||
await this.successMessage('Processo efetuado')
|
||||
let action_deferimento = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 93,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise();
|
||||
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);
|
||||
let action_deferimento = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 93,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_deferimento);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -290,21 +287,21 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
console.log(this.postData);
|
||||
try {
|
||||
let action_despacho_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881 ,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postDespatchoPr(this.postData).toPromise();
|
||||
await this.successMessage('Processo efetuado')
|
||||
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);
|
||||
let action_despacho_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881 ,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_despacho_pr);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
@@ -319,21 +316,20 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
|
||||
try {
|
||||
let action_parecer_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
||||
await this.successMessage('Processo efetuado')
|
||||
this.modalController.dismiss(action_parecer_pr);
|
||||
//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;
|
||||
}
|
||||
break;
|
||||
|
||||
+3
-7
@@ -196,18 +196,13 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
modal.onDidDismiss().then(res=>{
|
||||
console.log(res['data']);
|
||||
let body = res['data'];
|
||||
// alert('close '+ res['data'])
|
||||
if(res['data']){
|
||||
console.log('open discart');
|
||||
|
||||
console.log('open discart')
|
||||
this.distartExpedientModal(body);
|
||||
|
||||
}
|
||||
else{
|
||||
console.log('Not open');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -229,7 +224,8 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
console.log(res['data']);
|
||||
|
||||
if(res['data']== 'Yes'){
|
||||
this.processes.CompleteTask(body);
|
||||
this.processes.CompleteTask(body);
|
||||
this.goBack();
|
||||
}
|
||||
else if(res['data'] == 'No'){
|
||||
let otherbody = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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 { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||
@@ -40,6 +40,11 @@ export class ExpedientePage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadList();
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
notImplemented(){
|
||||
|
||||
@@ -316,7 +316,8 @@ export class ExpedientePrPage implements OnInit {
|
||||
modal.onDidDismiss().then(res=>{
|
||||
console.log(res['data']);
|
||||
if(res['data']== 'Yes'){
|
||||
this.processes.CompleteTask(body);
|
||||
this.processes.CompleteTask(body);
|
||||
this.goBack();
|
||||
}
|
||||
else if(res['data'] == 'No'){
|
||||
let otherbody = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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 { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||
@@ -40,6 +40,11 @@ export class ExpedientesPrPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadList();
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
this.LoadList();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
notImplemented(){
|
||||
|
||||
@@ -65,17 +65,20 @@ export class PedidosPage implements OnInit {
|
||||
this.openPedido.emit(data);
|
||||
}
|
||||
|
||||
LoadList(){
|
||||
async LoadList(){
|
||||
if(this.segment == 'parecer'){
|
||||
this.taskType = "Pedido de Parecer";
|
||||
this.processes.GetTasksList("Pedido de Parecer", false).subscribe(result => {
|
||||
this.taskslist = result;
|
||||
console.log(result);
|
||||
|
||||
this.parecerList = new Array();
|
||||
let res = result.reverse();
|
||||
res.forEach(element => {
|
||||
let task = {
|
||||
|
||||
let parecer = await this.processes.GetTasksList("Pedido de Parecer", false).toPromise();
|
||||
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();
|
||||
|
||||
allParecer.forEach(element => {
|
||||
let task = {
|
||||
"SerialNumber": element.serialNumber,
|
||||
"Folio": element.workflowInstanceDataFields.Subject,
|
||||
"Senders": element.originator.email,
|
||||
@@ -86,12 +89,11 @@ export class PedidosPage implements OnInit {
|
||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
||||
"WorkflowName": element.workflowDisplayName,
|
||||
"activityInstanceName": element.activityInstanceName,
|
||||
}
|
||||
this.parecerList.push(task);
|
||||
});
|
||||
console.log(this.parecerList);
|
||||
|
||||
}
|
||||
this.parecerList.push(task);
|
||||
});
|
||||
console.log(this.parecerList);
|
||||
|
||||
}
|
||||
else if(this.segment == 'deferimento') {
|
||||
this.taskType = "Pedido de Deferimento";
|
||||
|
||||
Reference in New Issue
Block a user