Datatables enhacements to support products (#1641)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
08a327fdbf
commit
f330e91aa4
@@ -691,4 +691,30 @@ export class SystemService {
|
||||
return this.http.put('/externalevents/configuration', payload);
|
||||
}
|
||||
|
||||
/** Datatable Entries for Entities */
|
||||
getEntityDatatables(appTable: string) {
|
||||
const httpParams = new HttpParams().set('apptable', appTable);
|
||||
return this.http.get(`/datatables`, { params: httpParams });
|
||||
}
|
||||
|
||||
getEntityDatatable(entityId: string, datatableName: string) {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.get(`/datatables/${datatableName}/${entityId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
addEntityDatatableEntry(entityId: string, datatableName: string, data: any) {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.post(`/datatables/${datatableName}/${entityId}`, data, { params: httpParams });
|
||||
}
|
||||
|
||||
editEntityDatatableEntry(entityId: string, datatableName: string, data: any) {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.put(`/datatables/${datatableName}/${entityId}`, data, { params: httpParams });
|
||||
}
|
||||
|
||||
deleteDatatableContent(entityId: string, datatableName: string) {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.delete(`/datatables/${datatableName}/${entityId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user