raimund@488: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz raimund@488: * Software engineering by Intevation GmbH raimund@488: * raimund@488: * This file is Free Software under the GNU GPL (v>=3) raimund@488: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@488: * the documentation coming with IMIS-Labordaten-Application for details. raimund@488: */ raimund@488: raimund@488: /** raimund@488: * Model class for Kommentare on Messungen raimund@488: */ raimund@488: Ext.define('Lada.model.KommentarM', { raimund@488: extend: 'Lada.model.Base', raimund@488: fields: [ raimund@488: {name: "id"}, raimund@488: {name: "messungsId"}, raimund@488: {name: "erzeuger"}, raimund@488: {name: "datum", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, raimund@488: {name: "text"} raimund@488: ], raimund@488: idProperty: "id", raimund@488: proxy: { raimund@488: type: 'rest', raimund@488: url: 'server/rest/kommentar_m', raimund@488: reader: { raimund@488: type: 'json', raimund@488: root: 'data' raimund@488: } raimund@488: } raimund@488: });