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 Ort raimund@548: */ raimund@548: Ext.define('Lada.model.Ort', { raimund@548: extend: 'Ext.data.Model', raimund@548: raimund@548: fields: [{ raimund@640: name: 'id' raimund@548: }, { raimund@640: name: 'ort' raimund@548: }, { raimund@548: name: 'probeId' raimund@548: }, { raimund@548: name: 'ortsTyp' raimund@548: }, { raimund@548: name: 'ortszusatztext' 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(v); raimund@548: }, raimund@548: defaultValue: new Date() raimund@689: }, { raimund@689: name: 'treeModified' raimund@548: }], raimund@548: raimund@548: idProperty: 'id', raimund@548: raimund@548: proxy: { raimund@548: type: 'rest', raimund@548: url: 'lada-server/ort', raimund@548: reader: { raimund@548: type: 'json', raimund@548: root: 'data' raimund@548: } raimund@548: } raimund@548: });