Mercurial > lada > lada-client
diff app/model/Zusatzwert.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | f7446ebfe5d0 |
children | d07e5086a64b |
line wrap: on
line diff
--- a/app/model/Zusatzwert.js Fri Oct 31 21:28:31 2014 +0100 +++ b/app/model/Zusatzwert.js Fri Oct 31 23:23:32 2014 +0100 @@ -11,16 +11,31 @@ */ Ext.define('Lada.model.Zusatzwert', { extend: 'Lada.model.Base', - fields: [ - {name: "id"}, - {name: "probeId"}, - {name: "pzsId"}, - {name: "nwgZuMesswert", type: 'float'}, - {name: "messwertPzs", type: 'float'}, - {name: "messfehler", type: 'float'}, - {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()} - ], + + fields: [{ + name: "id" + }, { + name: "probeId" + }, { + name: "pzsId" + }, { + name: "nwgZuMesswert", + type: 'float' + }, { + name: "messwertPzs", + type: 'float' + }, { + name: "messfehler", + type: 'float' + }, { + name: "letzteAenderung", + type: 'date', + convert: Lada.lib.Helpers.ts2date, + defaultValue: new Date() + }], + idProperty: "id", + proxy: { type: 'rest', url: 'server/rest/zusatzwert', @@ -35,6 +50,7 @@ writeEverything : true } }, + getMesseinheit: function(pzsId) { var zstore = Ext.getStore('StaProbenzusaetze'); var mstore = Ext.getStore('StaMesseinheiten');