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', raimund@491: raimund@491: fields: [{ raimund@491: name: "id", raimund@491: type: 'int' raimund@491: }, { raimund@491: name: "ortId", raimund@491: type: 'int' raimund@491: }, { raimund@491: name: "probeId" raimund@491: }, { raimund@491: name: "ortsTyp" raimund@491: }, { raimund@491: name: "ortszusatztext" raimund@491: }, { raimund@491: name: "letzteAenderung", raimund@491: type: 'date', raimund@491: convert: Lada.lib.Helpers.ts2date, raimund@491: defaultValue: new Date() raimund@491: }], raimund@491: raimund@488: idProperty: "id", raimund@491: 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: });