2017-12-19 13:53:46 +01:00
|
|
|
export class SearchUtilsClass{
|
|
|
|
page:number = 1;
|
|
|
|
size:number = 10;
|
|
|
|
status:number = 1;
|
|
|
|
keyword:string = "";
|
|
|
|
baseUrl:string = "";
|
2020-04-07 13:11:31 +02:00
|
|
|
totalResults = null;
|
2017-12-19 13:53:46 +01:00
|
|
|
totalResultsNoFilters:number; // for organization landing - tab with projects
|
2018-11-21 16:28:38 +01:00
|
|
|
sortBy: string = "";
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
2019-06-12 16:13:56 +02:00
|
|
|
|
|
|
|
export class SearchCustomFilter{
|
|
|
|
fieldName:string; //Country
|
|
|
|
queryFieldName:string; //country
|
|
|
|
valueId:string; //gr
|
|
|
|
valueName:string; // Greece
|
|
|
|
isApplied:boolean;
|
|
|
|
constructor( fieldName:string, queryFieldName:string, valueId:string, valueName:string ){
|
|
|
|
this.isApplied = true;
|
|
|
|
|
|
|
|
this.fieldName = fieldName;
|
|
|
|
this.queryFieldName = queryFieldName;
|
|
|
|
this.valueId = valueId;
|
|
|
|
this.valueName = valueName;
|
|
|
|
}
|
|
|
|
// public setFilter(filter:SearchCustomFilter){
|
|
|
|
// if(!filter){
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// this.fieldName = filter.fieldName;
|
|
|
|
// this.queryFieldName = filter.queryFieldName;
|
|
|
|
// this.valueId = filter.valueId;
|
|
|
|
// this.valueName = filter.valueName;
|
|
|
|
// }
|
|
|
|
}
|