mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
improve
This commit is contained in:
@@ -10,6 +10,7 @@ import { PublicationDetailPage } from '../publications/view-publications/publica
|
||||
import { DocumentDetailPage } from 'src/app/modals/document-detail/document-detail.page';
|
||||
import { SearchCategory, SearchList } from 'src/app/models/search-document';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
|
||||
|
||||
@Component({
|
||||
selector: 'app-search',
|
||||
@@ -94,8 +95,36 @@ export class SearchPage implements OnInit {
|
||||
selected: item
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return this.select;
|
||||
async view(item: SearchList) {
|
||||
|
||||
const ApplicationType = item.ApplicationType.toString()
|
||||
const Id = item.Id
|
||||
|
||||
if(ApplicationType == '8' ) {
|
||||
|
||||
this.viewDocumentDetail(Id, ApplicationType);
|
||||
|
||||
} else if (ApplicationType == '361') {
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: ViewDocumentPage,
|
||||
componentProps: {
|
||||
trustedUrl: '',
|
||||
file: {
|
||||
title: item.Assunto,
|
||||
url: '',
|
||||
title_link: '',
|
||||
},
|
||||
applicationId: ApplicationType,
|
||||
docId: item.Id,
|
||||
},
|
||||
cssClass: 'modal modal-desktop'
|
||||
});
|
||||
await modal.present();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -665,7 +694,7 @@ export class SearchPage implements OnInit {
|
||||
|
||||
const ApplicationType = searchDocument.ApplicationType.toString()
|
||||
const Id = searchDocument.Id
|
||||
if(this.select == false){
|
||||
if(this.select == false) {
|
||||
if(this.type == "Agenda") {
|
||||
|
||||
const modal = await this.modalCtrl.create({
|
||||
@@ -680,15 +709,16 @@ export class SearchPage implements OnInit {
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then((res)=>{});
|
||||
|
||||
} else if(this.type == "AccoesPresidenciais"){
|
||||
} else if(this.type == "AccoesPresidenciais") {
|
||||
|
||||
this.viewPublicationDetail(Id);
|
||||
}
|
||||
else if(this.type == "AccoesPresidenciais & ArquivoDespachoElect"){
|
||||
else if(this.type == "AccoesPresidenciais & ArquivoDespachoElect") {
|
||||
|
||||
if(ApplicationType == '8' || ApplicationType == '361') {
|
||||
|
||||
alert('view!!')
|
||||
this.viewDocumentDetail(Id, ApplicationType);
|
||||
// this.openExpedientActionsModal(searchDocument)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user