Compare commits

...

3 Commits

Author SHA1 Message Date
Mark van der Wal 7b2dbc1777 AW-3912 fix build
FarmMaps/FarmMapsLib/pipeline/head This commit looks good Details
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details
2022-07-04 16:23:08 +02:00
Mark van der Wal 8c59976de6 AW-3912 added startDate and endDate to the item child list method
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit Details
2022-07-04 16:19:00 +02:00
Mark van der Wal d551a2cf7a upped version (to fix some faulty builds)
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details
2022-06-20 17:11:58 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "farmmaps-lib-app",
"version": "2.0.5",
"version": "2.1.1",
"scripts": {
"ng": "ng",
"start": "ng serve",

View File

@ -83,7 +83,8 @@ export class ItemService {
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
}
getChildItemList(parentcode: string, itemType: string, dataFilter?: any, level: number = 1, deep: boolean = true): Observable<IItem[]> {
getChildItemList(parentcode: string, itemType: string, dataFilter?: any, level: number = 1, deep: boolean = true,
startDate?: Date, endDate?: Date): Observable<IItem[]> {
var params = new HttpParams();
if(itemType != null) {
params = params.append("it", itemType);
@ -93,6 +94,8 @@ export class ItemService {
}
params = params.append("lvl", level.toString());
params = params.append("deep", deep.toString());
if (startDate) params = params.append("sDate", startDate.toISOString());
if (endDate) params = params.append("eDate", endDate.toISOString());
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params });
}