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@318: /** torsten@318: * Model class for Ort torsten@318: */ torsten@94: Ext.define('Lada.model.Ort', { torsten@331: extend: 'Lada.model.Base', torsten@94: fields: [ raimund@488: {name: "id", type: 'int'}, torsten@149: {name: "ortId", type: 'int'}, torsten@149: {name: "probeId"}, torsten@149: {name: "ortsTyp"}, torsten@154: {name: "ortszusatztext"}, torsten@303: {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()} torsten@94: ], raimund@488: idProperty: "id", torsten@94: proxy: { torsten@94: type: 'rest', torsten@94: url: 'server/rest/ort', torsten@94: reader: { torsten@94: type: 'json', torsten@94: root: 'data' torsten@94: } torsten@94: } torsten@94: });