mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +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');
|
this.fulltask = this.navParams.get('fulltask');
|
||||||
|
|
||||||
|
|
||||||
// console.log('this.fulltask', this.fulltask)
|
console.log('this.fulltask', this.fulltask)
|
||||||
|
alert("nice")
|
||||||
|
|
||||||
|
|
||||||
// if(this.fulltask?.Documents) {
|
// if(this.fulltask?.Documents) {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export class ExpedientTaskModalPageNavParamsTask {
|
|||||||
SourceType: 'DOC' | 'FOLDER',
|
SourceType: 'DOC' | 'FOLDER',
|
||||||
SourceID: any // doc id
|
SourceID: any // doc id
|
||||||
}
|
}
|
||||||
|
Documents?: any[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export class task extends ExpedientTaskModalPageNavParamsTask {}
|
export class task extends ExpedientTaskModalPageNavParamsTask {}
|
||||||
+11
-2
@@ -130,7 +130,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
public TaskService: TaskService,
|
public TaskService: TaskService,
|
||||||
private FilePickerWebService: FilePickerWebService,
|
private FilePickerWebService: FilePickerWebService,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
this.task = this.navParams.get('task');
|
this.task = this.navParams.get('task');
|
||||||
|
|
||||||
@@ -178,7 +177,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
// console.log(error)
|
// 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;
|
break;
|
||||||
case '2': // Deferimento
|
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 = {
|
this.postData = {
|
||||||
DistributionType: "Paralelo",
|
DistributionType: "Paralelo",
|
||||||
CountryCode: 'AO',
|
CountryCode: 'AO',
|
||||||
|
|||||||
Reference in New Issue
Block a user