comparison app/model/Zusatzwert.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
50 writeEverything : true 50 writeEverything : true
51 } 51 }
52 }, 52 },
53 53
54 getMesseinheit: function(pzsId) { 54 getMesseinheit: function(pzsId) {
55 var zstore = Ext.getStore('StaProbenzusaetze'); 55 var zstore = Ext.data.StoreManager.get('staProbenzusaetze');
56 var mstore = Ext.getStore('StaMesseinheiten'); 56 var mstore = Ext.data.StoreManager.get('staMesseinheiten');
57 var mehId = zstore.getById(pzsId).get('mehId'); 57 var mehId = zstore.getById(pzsId).get('mehId');
58 console.log('mehid: ' + mehId); 58 console.log('mehid: ' + mehId);
59 var record = mstore.getById(mehId); 59 var record = mstore.getById(mehId);
60 return record.get('einheit'); 60 return record.get('einheit');
61 } 61 }

http://lada.wald.intevation.org