Mercurial > lada > lada-client
comparison app/controller/Proben.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 |
---|---|
87 ], | 87 ], |
88 | 88 |
89 stores: [ | 89 stores: [ |
90 'Proben', | 90 'Proben', |
91 'Zusatzwerte', | 91 'Zusatzwerte', |
92 'Probenzusatzwerte', | |
93 'KommentareP', | 92 'KommentareP', |
94 'Orte', | 93 'Orte', |
95 'Messungen' | 94 'Messungen' |
96 ], | 95 ], |
97 | 96 |
214 editItem: function(grid, record) { | 213 editItem: function(grid, record) { |
215 console.log('Editing Probe'); | 214 console.log('Editing Probe'); |
216 var id = record.get('id'); | 215 var id = record.get('id'); |
217 console.log('id is: ' + id); | 216 console.log('id is: ' + id); |
218 // Load Zusatzwerte | 217 // Load Zusatzwerte |
219 var pstore = this.getProbenzusatzwerteStore(); | 218 var pstore = Ext.data.StoreManager.get('staProbenzusaetze'); |
220 pstore.load(); | 219 pstore.load(); |
221 var zstore = this.getZusatzwerteStore(); | 220 var zstore = this.getZusatzwerteStore(); |
222 zstore.load({ | 221 zstore.load({ |
223 params: { | 222 params: { |
224 probeId: id | 223 probeId: id |