From 15a22e28bee040e9e34b650bcdf3dfd448e977d3 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Fri, 6 Aug 2021 09:42:34 +0100 Subject: [PATCH] improve --- src/app/Rules/despacho.service.ts | 25 ++++++++----------- .../create-process/create-process.page.ts | 2 -- .../document-detail/document-detail.page.html | 3 ++- .../expediente-detail.page.html | 11 ++++---- 4 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/app/Rules/despacho.service.ts b/src/app/Rules/despacho.service.ts index ca5392df6..04c1d2ac5 100644 --- a/src/app/Rules/despacho.service.ts +++ b/src/app/Rules/despacho.service.ts @@ -50,7 +50,6 @@ export class DespachoService { // }, // "AttachmentList" :documents, // } - // return this.processes.CompleteTask(body) // } @@ -93,7 +92,6 @@ export class DespachoService { // } } - rexecucao({note, documents, serialnumber}) { let body = { "serialNumber": serialnumber, @@ -123,18 +121,17 @@ export class DespachoService { return this.processes.CompleteTask(body) } - - Finalizar({serialNumber}) { - const body = { - "serialNumber": serialNumber, - "action": "Conhecimento", - "ActionTypeId": 104, - "dataFields": { - "ReviewUserComment": '', - }, - "AttachmentList" :null, - } - } + // Finalizar({serialNumber}) { + // const body = { + // "serialNumber": serialNumber, + // "action": "Conhecimento", + // "ActionTypeId": 104, + // "dataFields": { + // "ReviewUserComment": '', + // }, + // "AttachmentList" :null, + // } + // } sendExpedienteToPending(serialnumber) { return this.processes.SetTaskToPending(serialnumber) diff --git a/src/app/modals/create-process/create-process.page.ts b/src/app/modals/create-process/create-process.page.ts index c43dde0ed..7c4bb7607 100644 --- a/src/app/modals/create-process/create-process.page.ts +++ b/src/app/modals/create-process/create-process.page.ts @@ -198,7 +198,6 @@ export class CreateProcessPage implements OnInit { async saveTask() { - if(!this.p.userRole(['PR'])) { this.injectValidation() this.runValidation() @@ -239,7 +238,6 @@ export class CreateProcessPage implements OnInit { this.dispatchFolder.SubjectTypes = this.selectedTypes; const loader = this.toastService.loading() - switch (this.loggeduser.Profile) { case 'MDGPR': diff --git a/src/app/modals/document-detail/document-detail.page.html b/src/app/modals/document-detail/document-detail.page.html index df3087c99..f5db52381 100644 --- a/src/app/modals/document-detail/document-detail.page.html +++ b/src/app/modals/document-detail/document-detail.page.html @@ -53,7 +53,8 @@
- + +
diff --git a/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.html b/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.html index f2b6f2748..178e963cd 100644 --- a/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.html +++ b/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.html @@ -93,16 +93,15 @@
+ + - -
- - - - + + +