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