mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
send attachment of creating defeimente
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -12,6 +12,7 @@ export class ExpedientTaskModalPageNavParamsTask {
|
||||
SourceType: 'DOC' | 'FOLDER',
|
||||
SourceID: any // doc id
|
||||
}
|
||||
Documents?: any[]
|
||||
}
|
||||
|
||||
export class task extends ExpedientTaskModalPageNavParamsTask {}
|
||||
+11
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user