Compare commits
No commits in common. "b5828cd0fae09534f603765b59ec83b8800bf917" and "79def90bc76bea7fa940c41b8ac48c4613d1e312" have entirely different histories.
b5828cd0fa
...
79def90bc7
@ -81,7 +81,7 @@ export class ItemService {
|
||||
|
||||
getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string,
|
||||
indexed?: boolean, validToday?: boolean,tags?:string,crs?:string, startDate?: Date, endDate?: Date,
|
||||
skip?: number, take?: number, sourceTask?: string): Observable<IItem[]> {
|
||||
skip?: number, take?: number): Observable<IItem[]> {
|
||||
let params = new HttpParams();
|
||||
if(itemType) params = params.append("it", itemType);
|
||||
if(dataFilter) params = params.append("df", JSON.stringify(dataFilter));
|
||||
@ -93,16 +93,15 @@ export class ItemService {
|
||||
if (crs) params = params.append("crs", crs);
|
||||
if (startDate) params = params.append("sDate", startDate.toISOString());
|
||||
if (endDate) params = params.append("eDate", endDate.toISOString());
|
||||
if (sourceTask) params = params.append("sourceTask", sourceTask);
|
||||
if(skip) params = params.append("skip", skip);
|
||||
if(take) params = params.append("take", take);
|
||||
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
|
||||
}
|
||||
|
||||
getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string): Observable<number> {
|
||||
getItemListCount(itemType: string, startDate?: Date, endDate?: Date, crs?:string): Observable<number> {
|
||||
let params = new HttpParams();
|
||||
params = params.append("it", itemType);
|
||||
if (sourceTask) params = params.append("sourceTask", sourceTask);
|
||||
if (crs) params = params.append("crs", crs);
|
||||
if (startDate) params = params.append("sDate", startDate.toISOString());
|
||||
if (endDate) params = params.append("eDate", endDate.toISOString());
|
||||
return this.httpClient.get<number>(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params });
|
||||
|
Loading…
Reference in New Issue
Block a user