Mercurial > lada > lada-client
comparison app/controller/Messwert.js @ 213:f0c59e7ee0bc
Set messungsid for new messungunswerte
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 12 Jul 2013 15:57:36 +0200 |
parents | 748614e867b1 |
children | 82f8b5638f26 |
comparison
equal
deleted
inserted
replaced
212:92facbaece42 | 213:f0c59e7ee0bc |
---|---|
36 console.log('Saving MesswerMesswert'); | 36 console.log('Saving MesswerMesswert'); |
37 var form = button.up('window').down('form'); | 37 var form = button.up('window').down('form'); |
38 form.commit(); | 38 form.commit(); |
39 }, | 39 }, |
40 addMesswert: function(button) { | 40 addMesswert: function(button) { |
41 console.log('Adding new Messung for Probe ' + button.probeId); | 41 console.log('Adding new Messwert for Messung ' + button.parentId + ' for Probe ' + button.probeId); |
42 var messung = Ext.create('Lada.model.Messwert'); | 42 var messung = Ext.create('Lada.model.Messwert'); |
43 messung.set('probeId', button.probeId); | 43 messung.set('probeId', button.probeId); |
44 messung.set('messungsId', button.parentId); | |
44 var view = Ext.widget('messwertecreate', {model: messung}); | 45 var view = Ext.widget('messwertecreate', {model: messung}); |
45 }, | 46 }, |
46 editMesswert: function(grid, record) { | 47 editMesswert: function(grid, record) { |
47 console.log('Editing Messwert'); | 48 console.log('Editing Messwert'); |
48 var view = Ext.widget('messwertecreate', {model: record}); | 49 var view = Ext.widget('messwertecreate', {model: record}); |