diff --git a/src/app/modals/create-process/create-process.page.ts b/src/app/modals/create-process/create-process.page.ts
index 9a5144f89..db23d50bf 100644
--- a/src/app/modals/create-process/create-process.page.ts
+++ b/src/app/modals/create-process/create-process.page.ts
@@ -215,7 +215,7 @@ export class CreateProcessPage implements OnInit {
"action": "Conhecimento",
"ActionTypeId": 104,
"dataFields": {
- "ReviewUserComent": '',
+ "ReviewUserComment": '',
},
"AttachmentList" :null,
diff --git a/src/app/modals/dar-parecer/dar-parecer.page.ts b/src/app/modals/dar-parecer/dar-parecer.page.ts
index e50180fc5..fe6b72b89 100644
--- a/src/app/modals/dar-parecer/dar-parecer.page.ts
+++ b/src/app/modals/dar-parecer/dar-parecer.page.ts
@@ -53,7 +53,7 @@ export class DarParecerPage implements OnInit {
"action": "Registar",
"ActionTypeId": 104,
"dataFields": {
- "ReviewUserComent": this.note,
+ "ReviewUserComment": this.note,
},
"AttachmentList": docs,
}
diff --git a/src/app/models/dailyworktask.model.ts b/src/app/models/dailyworktask.model.ts
index 15855d3de..16cdcd2a7 100644
--- a/src/app/models/dailyworktask.model.ts
+++ b/src/app/models/dailyworktask.model.ts
@@ -40,7 +40,7 @@ export class tasksList{
InstanceID: string,
InstanceIDNew: string,
NewSerialNumber: string,
- ReviewUserComent: string,
+ ReviewUserComment: string,
ReviewUserEmail: string,
ReviewUserName: string,
SourceID: number,
diff --git a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
index 385df58ef..5c01e2e9f 100644
--- a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
+++ b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
@@ -160,7 +160,7 @@ export class DespachoPrPage implements OnInit {
"action": "Conhecimento",
"ActionTypeId": 104,
"dataFields": {
- "ReviewUserComent": note,
+ "ReviewUserComment": note,
},
"AttachmentList" :documents,
}
@@ -173,7 +173,7 @@ export class DespachoPrPage implements OnInit {
"action": "Arquivo",
"ActionTypeId": 95,
"dataFields": {
- "ReviewUserComent": note,
+ "ReviewUserComment": note,
},
"AttachmentList" :documents,
}
@@ -186,7 +186,7 @@ export class DespachoPrPage implements OnInit {
"action": "Reencaminhar",
"ActionTypeId": 98,
"dataFields": {
- "ReviewUserComent": note,
+ "ReviewUserComment": note,
},
"AttachmentList" :documents,
}
diff --git a/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts b/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts
index 786ed97cb..cc11e45d4 100644
--- a/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts
+++ b/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts
@@ -160,7 +160,7 @@ export class DespachoPage implements OnInit {
"action": "Conhecimento",
"ActionTypeId": 104,
"dataFields": {
- "ReviewUserComent": note,
+ "ReviewUserComment": note,
},
"AttachmentList" :documents,
}
@@ -173,7 +173,7 @@ export class DespachoPage implements OnInit {
"action": "Arquivo",
"ActionTypeId": 95,
"dataFields": {
- "ReviewUserComent": note,
+ "ReviewUserComment": note,
},
"AttachmentList" :documents,
}
@@ -186,7 +186,7 @@ export class DespachoPage implements OnInit {
"action": "Reencaminhar",
"ActionTypeId": 98,
"dataFields": {
- "ReviewUserComent": note,
+ "ReviewUserComment": note,
},
"AttachmentList" :documents,
}
diff --git a/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.html b/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.html
index 1b24cd2b9..28ba33223 100644
--- a/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.html
+++ b/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.html
@@ -67,14 +67,9 @@
diff --git a/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.ts b/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.ts
index 0405aaf28..3db202bbd 100644
--- a/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.ts
+++ b/src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.ts
@@ -1,12 +1,11 @@
import { Component, OnInit } from '@angular/core';
import { ModalController, NavParams, PopoverController } from '@ionic/angular';
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
-import { CreateProcessPage } from 'src/app/modals/create-process/create-process.page';
-import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
import { ProcessesService } from 'src/app/services/processes.service';
import { OptsExpedientePage } from 'src/app/shared/popover/opts-expediente/opts-expediente.page';
import { momentG } from 'src/plugin/momentG';
-import { BookMeetingModalPage } from '../../expediente/book-meeting-modal/book-meeting-modal.page';
+
+import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
@Component({
selector: 'app-diploma',
@@ -32,6 +31,7 @@ export class DiplomaPage implements OnInit {
private processes: ProcessesService,
public popoverController: PopoverController,
private modalController: ModalController,
+ private iab: InAppBrowser,
) {
this.serialnumber = this.navParams.get('serialNumber');
this.profile = this.navParams.get('profile');
@@ -98,6 +98,15 @@ export class DiplomaPage implements OnInit {
});
}
+
+ viewDocument(docId:string){
+ this.processes.GetDocumentUrl(docId, '361').subscribe(res=>{
+ console.log(res);
+ const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
+ const browser = this.iab.create(url,"_blank");
+ browser.show();
+ });
+ }
getDocumentDetails(forlderId:string, applicationId:string) {
this.processes.GetDocumentDetails(forlderId,applicationId).subscribe(res=>{
@@ -107,6 +116,33 @@ export class DiplomaPage implements OnInit {
})
}
+ askSignature(note:string, documents:any){
+ let body = {
+ "serialNumber": this.serialnumber,
+ "action": "Aprovar",
+ "ActionTypeId": 0,
+ "dataFields": {
+ "ReviewUserComment": note,
+ },
+ "AttachmentList" :documents,
+ }
+ this.processes.CompleteTask(body);
+ this.close();
+ }
+
+ askToChange(note:string, documents:any){
+ let body = {
+ "serialNumber": this.serialnumber,
+ "action": "Rectificar",
+ "ActionTypeId": 0,
+ "dataFields": {
+ "ReviewUserComment": note,
+ },
+ "AttachmentList" :documents,
+ }
+ this.processes.CompleteTask(body);
+ this.close();
+ }
async openAddNoteModal(actionName:string) {
let classs;
@@ -127,93 +163,16 @@ export class DiplomaPage implements OnInit {
modal.onDidDismiss().then(res => {
if(res.data){
- if(actionName == 'Executado'){
- //this.executado(res.data.note,res.data.documents);
+ if(actionName == 'Solicitar assinatura'){
+ this.askSignature(res.data.note,res.data.documents);
}
- else if(actionName == 'Arquivar'){
- //this.arquivar(res.data.note,res.data.documents);
+ else if(actionName == 'Solicitar alteração'){
+ this.askToChange(res.data.note,res.data.documents);
}
}
});
}
-
- async openDelegarModal(task: any) {
- let classs;
- if( window.innerWidth <= 800){
- classs = 'book-meeting-modal modal modal-desktop'
- } else {
- classs = 'modal modal-desktop showAsideOptions'
- }
- const modal = await this.modalController.create({
- component: DelegarPage,
- componentProps: {
- task: this.task,
- },
- cssClass: classs,
- backdropDismiss: false
- });
- await modal.present();
- modal.onDidDismiss();
- }
-
-
- async openExpedientActionsModal(taskAction: any, task: any) {
- //this.modalController.dismiss();
- let classs;
- if( window.innerWidth <= 800){
- classs = 'modal modal-desktop'
- } else {
- classs = 'modal modal-desktop showAsideOptions'
- }
- const modal = await this.modalController.create({
- component: CreateProcessPage,
- componentProps: {
- taskAction: taskAction,
- task: task,
- profile: this.profile,
- },
- cssClass: classs,
- });
- await modal.present();
- modal.onDidDismiss().then(res=>{
- console.log(res['data']);
- if(res['data']=='openDiscart'){
- console.log('open discart');
-
- // this.distartExpedientModal();
-
- }
-
- });
- }
-
- async openBookMeetingModal(task: any) {
- let classs;
- if( window.innerWidth <= 800){
- classs = 'book-meeting-modal modal modal-desktop'
- } else {
- classs = 'modal modal-desktop showAsideOptions'
- }
- const modal = await this.modalController.create({
- component: BookMeetingModalPage,
- componentProps: {
- task: this.task,
- },
- cssClass: classs,
- backdropDismiss: false
- });
- await modal.present();
- modal.onDidDismiss();
- }
-
- sendExpedienteToPending(){
- this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
- console.log(res);
- this.close();
- });
- }
-
close(){
this.modalController.dismiss();
}
diff --git a/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html b/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html
index cf5a304c2..a0976b12a 100644
--- a/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html
+++ b/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html
@@ -1,24 +1,24 @@
-
-