dustin@975: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz dustin@975: * Software engineering by Intevation GmbH dustin@975: * dustin@975: * This file is Free Software under the GNU GPL (v>=3) dustin@975: * and comes with ABSOLUTELY NO WARRANTY! Check out dustin@975: * the documentation coming with IMIS-Labordaten-Application for details. dustin@975: */ dustin@975: dustin@975: /** dustin@975: * Model class for MessprogrammKategorie Stammdaten dustin@975: */ dustin@975: Ext.define('Lada.model.MessprogrammKategorie', { dustin@975: extend: 'Ext.data.Model', dustin@975: dustin@975: fields: [{ dustin@975: name: 'id' dustin@975: }, { dustin@975: name: 'netzbetreiberId' dustin@975: }, { tom@1217: name: 'code' dustin@975: }, { dustin@975: name: 'bezeichnung' dustin@975: }, { dustin@975: name: 'letzteAenderung', dustin@975: type: 'date', dustin@975: convert: function(v) { dustin@975: if (!v) { dustin@975: return v; dustin@975: } dustin@975: return new Date(v); dustin@975: } dustin@975: }, { raimund@1038: name: 'readonly', raimund@1038: type: 'boolean' dustin@975: }], dustin@975: dustin@975: idProperty: 'id', dustin@975: dustin@975: proxy: { dustin@975: type: 'rest', dustin@999: url: 'lada-server/rest/messprogrammkategorie', dustin@975: reader: { dustin@975: type: 'json', dustin@1021: totalProperty: 'totalCount', dustin@975: root: 'data' dustin@975: } dustin@975: } dustin@975: });