send attachment of creating defeimente

This commit is contained in:
Peter Maquiran
2026-03-02 11:34:06 +01:00
parent 2f054bc781
commit a47e7f0c5c
3 changed files with 14 additions and 3 deletions
@@ -108,7 +108,8 @@ export class CreateProcessPage implements OnInit {
this.fulltask = this.navParams.get('fulltask');
// console.log('this.fulltask', this.fulltask)
console.log('this.fulltask', this.fulltask)
alert("nice")
// if(this.fulltask?.Documents) {
+1
View File
@@ -12,6 +12,7 @@ export class ExpedientTaskModalPageNavParamsTask {
SourceType: 'DOC' | 'FOLDER',
SourceID: any // doc id
}
Documents?: any[]
}
export class task extends ExpedientTaskModalPageNavParamsTask {}
@@ -130,7 +130,6 @@ export class ExpedientTaskModalPage implements OnInit {
public TaskService: TaskService,
private FilePickerWebService: FilePickerWebService,
) {
this.loggeduser = SessionStore.user;
this.task = this.navParams.get('task');
@@ -178,7 +177,7 @@ export class ExpedientTaskModalPage implements OnInit {
// console.log(error)
// }
// console.log('this.document', this.document)
console.log('this.document', this.document, this.task)
@@ -442,6 +441,16 @@ export class ExpedientTaskModalPage implements OnInit {
}
break;
case '2': // Deferimento
// fix attachments
for(const doc of this.task?.Documents || []) {
docs.Attachments.push({
ApplicationId: doc.ApplicationId,
Source: 1,
SourceId: doc.DocId,
SourceName: doc.Assunto
})
}
this.postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',