|
|
|
@ -115,26 +115,6 @@ export class LendingStationComponent implements OnInit {
|
|
|
|
|
{ dataPath: 'contactInformationExtern.note', translation: 'Anmerkung' },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
{
|
|
|
|
|
type: 'ReferenceTable',
|
|
|
|
|
title: 'Equipment',
|
|
|
|
|
dataPath: 'equipment',
|
|
|
|
|
dataService: null,
|
|
|
|
|
columnInfo: [
|
|
|
|
|
{ dataPath: 'serialNo', translation: 'Seriennummer' },
|
|
|
|
|
{ dataPath: 'title', translation: 'Name' },
|
|
|
|
|
{ dataPath: 'description', translation: 'Beschreibung' },
|
|
|
|
|
],
|
|
|
|
|
nameToShowInSelection: (element) => {
|
|
|
|
|
return element.title + ' (' + element.serialNo + ')';
|
|
|
|
|
},
|
|
|
|
|
linkToTable: (element) => '/table/equipment',
|
|
|
|
|
linkToTableParams: (lendingStation) => {
|
|
|
|
|
return { filter: lendingStation.name };
|
|
|
|
|
},
|
|
|
|
|
propertyNameOfUpdateInput: 'equipmentIds',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'ReferenceTable',
|
|
|
|
|
title: 'Zeitscheiben',
|
|
|
|
@ -142,14 +122,15 @@ export class LendingStationComponent implements OnInit {
|
|
|
|
|
dataService: null,
|
|
|
|
|
columnInfo: [
|
|
|
|
|
{ dataPath: 'dateRange', translation: 'Zeitraum' },
|
|
|
|
|
{ dataPath: 'lendingStation.name', translation: 'Standort' },
|
|
|
|
|
{ dataPath: 'cargoBike.name', translation: 'Lastenrad',
|
|
|
|
|
link: (row) => '/bike/' + row["cargoBike.id"], },
|
|
|
|
|
],
|
|
|
|
|
editableReferences: false,
|
|
|
|
|
linkToTable: (element) => '/table/timeFrames',
|
|
|
|
|
linkToTable: () => '/table/timeFrames',
|
|
|
|
|
linkToTableParams: (lendingStation) => {
|
|
|
|
|
return { filter: lendingStation.name };
|
|
|
|
|
},
|
|
|
|
|
},*/
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
headlineDataPath = 'name';
|
|
|
|
@ -161,11 +142,8 @@ export class LendingStationComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
private lendingStationsService: LendingStationsService,
|
|
|
|
|
private contactInformationService: ContactInformationService
|
|
|
|
|
private contactInformationService: ContactInformationService,
|
|
|
|
|
) {
|
|
|
|
|
/*this.propertiesInfo.find(
|
|
|
|
|
(prop) => prop.dataPath === 'equipmentType'
|
|
|
|
|
).dataService = this.equipmentTypeService;*/
|
|
|
|
|
this.contactInformationService.loadTableData();
|
|
|
|
|
this.contactInformationService.tableData.subscribe((data) => {
|
|
|
|
|
this.propertiesInfo.find(
|
|
|
|
|