add attachments

This commit is contained in:
Peter Maquiran
2023-08-31 12:00:52 +01:00
parent 081fe8692c
commit 680f57313f
23 changed files with 117 additions and 48 deletions
@@ -33,7 +33,6 @@ export class ViewDocumentPage implements OnInit {
private alertController: AlertController,
) {
this.file = this.navParams.get('file');
console.log(this.file )
this.applicationId = this.navParams.get('applicationId');
this.docId = this.navParams.get('docId');
this.Document = this.navParams.get('Document')
@@ -45,6 +44,14 @@ export class ViewDocumentPage implements OnInit {
this.file.title = 'Sem Título'
}
console.log({
file: this.file,
applicationId: this.applicationId,
docId: this.docId,
Document: this.Document,
task: this.task,
attachment: this.attachment
})
}
@@ -94,10 +101,8 @@ export class ViewDocumentPage implements OnInit {
component: EventDetailsDocumentsOptionsPage,
cssClass: 'model aside-modal search-submodal',
componentProps: {
fulltask: this.task,
task: this.task,
content: "",
Document:this.Document
content: "", // check
Document:this.Document // check
}
});
await modal.present();
@@ -127,11 +132,13 @@ export class ViewDocumentPage implements OnInit {
} else {
classs = 'modal modal-desktop showAsideOptions'
}
// check passing
const modal = await this.modalController.create({
component: DocumentSetUpMeetingPage,
componentProps: {
subject: this.task.workflowInstanceDataFields.Subject,
document: this.Document,
subject: this.task.workflowInstanceDataFields.Subject, // check
document: this.Document, // document
},
cssClass: classs,
backdropDismiss: false
@@ -156,13 +163,14 @@ export class ViewDocumentPage implements OnInit {
} else {
classs = 'modal modal-desktop showAsideOptions'
}
// check passing
const modal = await this.modalController.create({
component: ExpedientTaskModalPage,
componentProps: {
taskAction: taskAction,
task: this.task,
seachDocuments: this.Document,
aplicationId: this.Document.ApplicationId || this.Document.ApplicationID
taskAction: taskAction, // check
task: this.task, // check
document: this.Document, // nope
aplicationId: this.Document.ApplicationId || this.Document.ApplicationID // check
},
cssClass: classs,
});