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 raimund@488: */ raimund@488: Ext.define('Lada.model.KommentarP', { raimund@488: extend: 'Lada.model.Base', raimund@491: raimund@491: fields: [{ raimund@491: name: "id" raimund@491: }, { raimund@491: name: "probeId" raimund@491: }, { raimund@491: name: "erzeuger" raimund@491: }, { raimund@491: name: "datum", raimund@491: type: 'date', raimund@491: convert: Lada.lib.Helpers.ts2date, raimund@491: defaultValue: new Date() raimund@491: }, { raimund@491: name: "text" raimund@491: }], raimund@491: raimund@488: idProperty: "id", raimund@491: raimund@488: proxy: { raimund@488: type: 'rest', raimund@488: appendId: true, //default raimund@488: url: 'server/rest/kommentar_p', raimund@488: reader: { raimund@488: type: 'json', raimund@488: root: 'data' raimund@488: } raimund@488: } raimund@488: });