fix despacho from a task

This commit is contained in:
tiago.kayaya
2021-04-29 13:58:52 +01:00
parent 1f8875a5d0
commit b7337ab9dd
28 changed files with 1615 additions and 30 deletions
@@ -63,6 +63,8 @@ export class BookMeetingModalPage implements OnInit {
ngOnInit() {
this.adding = "intervenient";
console.log(this.task);
this.getAttachments();
}
@@ -110,12 +112,12 @@ export class BookMeetingModalPage implements OnInit {
}
console.log(this.postData);
this.processes.FindTaskDocId(this.task.SerialNumber).subscribe(res =>{
if(res){
this.calendarService.postExpedientEvent(res, this.postData, "md",this.task.SerialNumber, this.task.FsId);
}
});
this.distartExpedientModal();
this.calendarService.postExpedientEvent(this.task.DocId, this.postData, "md",this.task.SerialNumber, this.task.FsId);
if(this.task.FsId == '8'){
this.distartExpedientModal();
}
this.close();
}
@@ -138,16 +140,14 @@ export class BookMeetingModalPage implements OnInit {
modal.onDidDismiss().then((res) => {
this.taskParticipants = res.data;
let newattendees: EventPerson[] = res['data'];
if (newattendees != null)
{
if(newattendees != null){
newattendees.forEach(newattendee => {
let att = {
"EmailAddress": newattendee.EmailAddress,
"Name": newattendee.Name,
"IsRequired": true
};
if (this.eventAttendees == null)
{
if(this.eventAttendees == null){
this.eventAttendees = new Array();
}
this.eventAttendees.push(att);
@@ -156,10 +156,8 @@ export class BookMeetingModalPage implements OnInit {
this.postData.Attendees = this.eventAttendees;
});
} else {
this.showAttendees = true;
}
}
async addParticipantsCc() {
@@ -74,9 +74,9 @@ export class ExpedientTaskModalPage implements OnInit {
Nad: 30,
Subject: '',
Message: '',
SourceSecFsId: this.task.workflowInstanceDataFields.FsId,
SouceType: 'DOC',
SourceId: this.task.workflowInstanceDataFields.DocId,
SourceSecFsId: this.task.workflowInstanceDataFields.FsId, //361
SouceType: 'DOC', //FOLDER
SourceId: this.task.workflowInstanceDataFields.DocId, //FolderId
DeadlineType: '',
};
@@ -36,7 +36,7 @@
<ion-icon name="arrow-redo" slot="start"></ion-icon>
<ion-label>Pedido de Deferimento</ion-label>
</ion-item>
<ion-item (click)="openBookMeetingModal(task)">
<ion-item (click)="openBookMeetingModal(fulltask)">
<ion-icon name="calendar" slot="start"></ion-icon>
<ion-label>Marcar reunião</ion-label>
</ion-item>
@@ -92,7 +92,7 @@ export class ExpedienteDetailPage implements OnInit {
"DocId": res.workflowInstanceDataFields.DocId,
}
console.log('task', this.fulltask);
console.log('task', this.task);
this.fulltask = res;
console.log('GetTask', res);
@@ -210,7 +210,7 @@ export class ExpedienteDetailPage implements OnInit {
const modal = await this.modalController.create({
component: BookMeetingModalPage,
componentProps: {
task: task,
task: this.task,
},
cssClass: classs,
backdropDismiss: false