Improve search

This commit is contained in:
Peter Maquiran
2021-01-29 17:13:15 +01:00
parent 0b86c30f82
commit 9fd01796a9
3 changed files with 27 additions and 3 deletions
+14 -3
View File
@@ -33,6 +33,8 @@ export class SearchPage implements OnInit {
showDocuments = false;
showAdvanceSearch = false;
showLoader: boolean;
height: number = 411;
width: number = 411;
@@ -110,6 +112,8 @@ export class SearchPage implements OnInit {
console.log('aplication type 0');
this.showLoader = true;
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '0').subscribe(res=>{
console.log(res);
@@ -131,11 +135,14 @@ export class SearchPage implements OnInit {
} else {
this.showDocuments = false
}
this.showLoader = false;
});
} else if (APPType == '8,361'){
console.log('aplication type 8,361');
this.showLoader = true;
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
@@ -182,10 +189,13 @@ export class SearchPage implements OnInit {
} else {
this.showDocuments = false
}
this.showLoader = false;
});
} else if (APPType == '386'){
this.showLoader = true;
console.log('aplication type 386');
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
@@ -209,7 +219,8 @@ export class SearchPage implements OnInit {
} else {
this.showDocuments = false
}
this.showLoader = false;
});
}