comparison app/view/zusatzwerte/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
45 dataIndex: 'id' 45 dataIndex: 'id'
46 }, { 46 }, {
47 header: 'PZW-Größe', 47 header: 'PZW-Größe',
48 dataIndex: 'pzsId', 48 dataIndex: 'pzsId',
49 renderer: function(value) { 49 renderer: function(value) {
50 var store = Ext.getStore('StaProbenzusaetze'); 50 var store = Ext.data.StoreManager.get('staProbenzusaetze');
51 var record = store.getById(value); 51 var record = store.getById(value);
52 return record.get('beschreibung'); 52 return record.get('beschreibung');
53 }, 53 },
54 flex: 1 54 flex: 1
55 }, { 55 }, {
71 dataIndex: 'messfehler' 71 dataIndex: 'messfehler'
72 }, { 72 }, {
73 header: 'Maßeinheit', 73 header: 'Maßeinheit',
74 dataIndex: 'pzsId', 74 dataIndex: 'pzsId',
75 renderer: function(value) { 75 renderer: function(value) {
76 var zstore = Ext.getStore('StaProbenzusaetze'); 76 var zstore = Ext.data.StoreManager.get('staProbenzusaetze');
77 var mstore = Ext.getStore('StaMesseinheiten'); 77 var mstore = Ext.data.StoreManager.get('staMesseinheiten');
78 console.log('store: ' + mstore); 78 console.log('store: ' + mstore);
79 var mehId = zstore.getById(value).get('mehId'); 79 var mehId = zstore.getById(value).get('mehId');
80 var record = mstore.findRecord('id', mehId); 80 var record = mstore.findRecord('id', mehId);
81 return record.get('einheit'); 81 return record.get('einheit');
82 } 82 }

http://lada.wald.intevation.org