raimund@1076: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
raimund@1076:  * Software engineering by Intevation GmbH
raimund@1076:  *
raimund@1076:  * This file is Free Software under the GNU GPL (v>=3)
raimund@1076:  * and comes with ABSOLUTELY NO WARRANTY! Check out
raimund@1076:  * the documentation coming with IMIS-Labordaten-Application for details.
raimund@1076:  */
raimund@1076: 
raimund@1076: /**
raimund@1076:  * A MessungList.
raimund@1076:  * This class represents the result list of 'Messungen' in the search query
raimund@1076:  * */
raimund@1076: Ext.define('Lada.model.MessungList', {
raimund@1076:     extend: 'Ext.data.Model',
raimund@1076: 
raimund@1076:     fields: [{
raimund@1076:         name: 'readonly'
raimund@1076:     }, {
raimund@1076:         name: 'owner'
raimund@1076:     }],
raimund@1076: 
raimund@1076:     idProperty: 'id',
raimund@1076: 
raimund@1076:     proxy: {
raimund@1076:         type: 'rest',
raimund@1076:         url: 'lada-server/rest/messung',
raimund@1076:         reader: {
raimund@1076:             type: 'json',
raimund@1076:             root: 'data',
raimund@1076:             totalProperty: 'totalCount'
raimund@1076:         }
raimund@1076:     }
raimund@1076: });