raimund@548: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz raimund@548: * Software engineering by Intevation GmbH raimund@548: * raimund@548: * This file is Free Software under the GNU GPL (v>=3) raimund@548: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@548: * the documentation coming with IMIS-Labordaten-Application for details. raimund@548: */ raimund@548: raimund@548: /** raimund@548: * Model class for Messwerte raimund@548: */ raimund@548: Ext.define('Lada.model.Messwert', { raimund@548: extend: 'Ext.data.Model', raimund@548: raimund@548: fields: [{ raimund@548: name: 'id' raimund@548: }, { raimund@548: name: 'messungsId' raimund@548: }, { raimund@548: name: 'messgroesseId' raimund@548: }, { raimund@548: name: 'messwert', raimund@548: type: 'float' raimund@548: }, { raimund@548: name: 'messwertNwg' raimund@548: }, { raimund@548: name: 'messfehler', raimund@548: type: 'float' raimund@548: }, { raimund@548: name: 'nwgZuMesswert', raimund@548: type: 'float' raimund@548: }, { raimund@548: name: 'mehId' raimund@548: }, { raimund@548: name: 'grenzwertueberschreitung', raimund@548: type: 'boolean' raimund@548: }, { raimund@548: name: 'letzteAenderung', raimund@548: type: 'date', raimund@548: convert: function(v) { raimund@548: if (!v) { raimund@548: return v; raimund@548: } raimund@548: return new Date(); raimund@548: }, raimund@548: defaultValue: new Date() raimund@548: }], raimund@548: raimund@548: idProperty: 'id', raimund@548: raimund@548: proxy: { raimund@548: type: 'rest', dustin@562: url: 'lada-server/messwert', raimund@548: reader: { raimund@548: type: 'json', raimund@548: root: 'data' raimund@548: } raimund@548: } raimund@548: });