comparison app/view/messwerte/List.js @ 496:d07e5086a64b

Moved stammdaten stores to app.js and load them via storemanager.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 10:35:35 +0100
parents 850ccfe5f3c4
children 7c0653e8d9f7
comparison
equal deleted inserted replaced
495:649bf1d08531 496:d07e5086a64b
54 dataIndex: 'messfehler' 54 dataIndex: 'messfehler'
55 }, { 55 }, {
56 header: 'Messgröße', 56 header: 'Messgröße',
57 dataIndex: 'messgroesseId', 57 dataIndex: 'messgroesseId',
58 renderer: function(value) { 58 renderer: function(value) {
59 var store = Ext.getStore('StaMessgroessen'); 59 var store = Ext.data.StoreManager.get('staMessgroessen');
60 return store.findRecord('id', value).get('messgroesse'); 60 return store.findRecord('id', value).get('messgroesse');
61 } 61 }
62 }, { 62 }, {
63 header: 'Messeinheit', 63 header: 'Messeinheit',
64 dataIndex: 'mehId', 64 dataIndex: 'mehId',
65 renderer: function(value) { 65 renderer: function(value) {
66 console.log('einheit: ' + value); 66 console.log('einheit: ' + value);
67 var store = Ext.data.StoreManager.get('StaMesseinheiten'); 67 var store = Ext.data.StoreManager.get('staMesseinheiten');
68 /* if (!store) {
69 store = Ext.create('Lada.store.StaMesseinheiten');
70 }
71 */ console.log(store.getById(value));
72 return store.findRecord('id', value).get('einheit'); 68 return store.findRecord('id', value).get('einheit');
73 } 69 }
74 }, { 70 }, {
75 header: 'Grenzwertüberschreitung', 71 header: 'Grenzwertüberschreitung',
76 dataIndex: 'grenzwertueberschreitung', 72 dataIndex: 'grenzwertueberschreitung',

http://lada.wald.intevation.org