mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
+11
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user