mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
save
This commit is contained in:
@@ -636,7 +636,7 @@ export class SearchPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
clearInputRemetente(){
|
||||
clearInputRemetente() {
|
||||
this.searchSender = "";
|
||||
}
|
||||
|
||||
@@ -758,9 +758,11 @@ export class SearchPage implements OnInit {
|
||||
}
|
||||
else if(this.type == "AccoesPresidenciais & ArquivoDespachoElect") {
|
||||
|
||||
if(ApplicationType == '8' || ApplicationType == '361') {
|
||||
|
||||
// 361
|
||||
if(ApplicationType == '8') {
|
||||
this.viewDocumentDetail(Id, ApplicationType);
|
||||
} else if (ApplicationType == '361') {
|
||||
this.viewDocumentModal(searchDocument)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -805,4 +807,44 @@ export class SearchPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
async viewDocumentModal(LoadedDocument) {
|
||||
|
||||
console.log(LoadedDocument)
|
||||
const selectedDoc = LoadedDocument
|
||||
|
||||
let task = {
|
||||
serialNumber: '',
|
||||
taskStartDate: '',
|
||||
isEvent: true,
|
||||
workflowInstanceDataFields: {
|
||||
FolderID: '',
|
||||
Subject: LoadedDocument.SourceName || LoadedDocument.Assunto,
|
||||
SourceSecFsID: LoadedDocument.ApplicationId || LoadedDocument.ApplicationType,
|
||||
SourceType: 'DOC',
|
||||
SourceID: LoadedDocument.Id || LoadedDocument.Id,
|
||||
DispatchNumber: ''
|
||||
}
|
||||
}
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: ViewDocumentPage,
|
||||
componentProps: {
|
||||
trustedUrl: '',
|
||||
file: {
|
||||
title: task.workflowInstanceDataFields.Subject,
|
||||
url: '',
|
||||
title_link: '',
|
||||
},
|
||||
Document: LoadedDocument,
|
||||
applicationId: task.workflowInstanceDataFields.SourceSecFsID,
|
||||
docId: task.workflowInstanceDataFields.SourceID ,
|
||||
folderId: '',
|
||||
task: task
|
||||
},
|
||||
cssClass: 'modal modal-desktop'
|
||||
});
|
||||
await modal.present();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user