This commit is contained in:
tiago.kayaya
2021-04-08 15:09:15 +01:00
parent 720a94a6f7
commit 027f5dab62
@@ -111,7 +111,14 @@ export class ExpedientTaskModalPage implements OnInit {
}
saveTask(){
let attendees = this.taskParticipants.concat(this.taskParticipantsCc);
attendees = attendees.map(function(val) {
return {
UserEmail: val.EmailAddress,
UserType: val.IsRequired?"T": "CC"
};
})
switch (this.taskType)
{
case '0':
@@ -121,7 +128,7 @@ export class ExpedientTaskModalPage implements OnInit {
Priority: this.postData.Priority,
UserEmail: this.user,
SubjectTypeId: this.postData.SubjectTypeId,
UsersSelected: this.participants,
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log(this.postData);
@@ -134,7 +141,7 @@ export class ExpedientTaskModalPage implements OnInit {
Priority: this.postData.Priority,
UserEmail: this.user,
SubjectTypeId: this.postData.SubjectTypeId,
UsersSelected: this.participants,
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
this.processes.postParecer(this.postData);
@@ -146,7 +153,7 @@ export class ExpedientTaskModalPage implements OnInit {
Priority: this.postData.Priority,
UserEmail: this.user,
SubjectTypeId: this.postData.SubjectTypeId,
UsersSelected: this.participants,
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
this.processes.postDeferimento(this.postData);