Mercurial > lada > lada-client
diff app/view/grid/Ortszuordnung.js @ 1012:2adc329d90fe stammdatengrids
Replaced Locations with Ortszuordnung
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 26 Jan 2016 10:40:48 +0100 |
parents | 9ac03f461ab4 |
children | 1df6b6210b42 |
line wrap: on
line diff
--- a/app/view/grid/Ortszuordnung.js Thu Jan 21 10:54:20 2016 +0100 +++ b/app/view/grid/Ortszuordnung.js Tue Jan 26 10:40:48 2016 +0100 @@ -11,7 +11,7 @@ */ Ext.define('Lada.view.grid.Ortszuordnung', { extend: 'Ext.grid.Panel', - alias: 'widget.ortgrid', + alias: 'widget.ortszuordnunggrid', maxHeight: 350, emptyText: 'Keine Orte gefunden.', @@ -47,14 +47,14 @@ }]; this.columns = [{ header: 'Typ', - dataIndex: 'ortsTyp', + dataIndex: 'ortszuordnungTyp', width: 50, editor: { allowBlank: false } }, { header: 'Staat', - dataIndex: 'ort', + dataIndex: 'ortId', width: 70, renderer: function(value) { var store = Ext.data.StoreManager.get('orte'); @@ -64,8 +64,8 @@ return record.get('staatIso'); } }, { - header: 'Gemeineschlüssel', - dataIndex: 'ort', + header: 'Gemeindeschlüssel', + dataIndex: 'ortId', width: 120, renderer: function(value) { var store = Ext.data.StoreManager.get('orte'); @@ -74,7 +74,7 @@ } }, { header: 'Gemeindename', - dataIndex: 'ort', + dataIndex: 'ortId', flex: 1, renderer: function(value) { var store = Ext.data.StoreManager.get('orte'); @@ -86,13 +86,8 @@ return record2.get('bezeichnung'); } }, { - header: 'Messpunkt', - dataIndex: 'ort', - renderer: function(value) { - var store = Ext.getStore('orte'); - var record = store.getById(value); - return record.get('bezeichnung'); - } + header: 'Ortszusatztext', + dataIndex: 'ortszusatztext' }]; this.listeners = { select: {