Mercurial > lada > lada-client
changeset 157:237a4efe715a
Enabled loading Messungen.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 03 Jul 2013 12:27:36 +0200 |
parents | dcb40a53ade2 |
children | 8e7f890dd6f4 |
files | app.js app/controller/Messungen.js app/controller/Proben.js app/model/Messung.js |
diffstat | 4 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/app.js Wed Jul 03 10:15:59 2013 +0200 +++ b/app.js Wed Jul 03 12:27:36 2013 +0200 @@ -30,9 +30,8 @@ 'Proben', 'Zusatzwerte', 'Kommentare', - 'Orte' - //'Sql', - //'Messungen' + 'Orte', + 'Messungen' ] });
--- a/app/controller/Messungen.js Wed Jul 03 10:15:59 2013 +0200 +++ b/app/controller/Messungen.js Wed Jul 03 12:27:36 2013 +0200 @@ -1,10 +1,7 @@ Ext.define('Lada.controller.Messungen', { extend: 'Ext.app.Controller', - views: [ - 'messungen.List', - 'messungen.Create' - ], stores: [ + 'Messungen' ], models: [ 'Zusatzwert'
--- a/app/controller/Proben.js Wed Jul 03 10:15:59 2013 +0200 +++ b/app/controller/Proben.js Wed Jul 03 12:27:36 2013 +0200 @@ -9,8 +9,8 @@ 'Zusatzwerte', 'Probenzusatzwerte', 'Kommentare', - 'Orte' - // 'Messungen', + 'Orte', + 'Messungen' ], init: function() { console.log('Initialising the Proben controller'); @@ -65,6 +65,13 @@ probeId: id } }); + // Load Orte + var mstore = this.getMessungenStore(); + mstore.load({ + params: { + probeId: id + } + }); console.log("Loaded Probe with ID " + record.getId()); //outputs ID }, createSuccess: function(form, record, operation) {
--- a/app/model/Messung.js Wed Jul 03 10:15:59 2013 +0200 +++ b/app/model/Messung.js Wed Jul 03 12:27:36 2013 +0200 @@ -1,10 +1,7 @@ Ext.define('Lada.model.Messung', { extend: 'Ext.data.Model', fields: [ - {name: "id"}, - {name: "messungsId", mapping: "id.messungsId"}, - {name: "convertedId", convert: buildId}, - {name: "lprobeId"}, + {name: "probeId"}, {name: "mmtId"}, {name: "nebenprobenNr"}, {name: "messdauer"},