mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Improve search
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user