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