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 for Messstelle Stammdaten.
raimund@548:  */
raimund@548: Ext.define('Lada.model.Messstelle', {
raimund@548:     extend: 'Ext.data.Model',
raimund@548: 
raimund@548:     /**
raimund@548:      * Fields are:
raimund@548:      *  - id: The unique identifier (Primary key).
raimund@548:      *  - beschreibung: The long description.
raimund@548:      *  - netzbetreiberId:
raimund@548:      *  - messStelle:
raimund@548:      *  - mstTyp:
raimund@548:      *  - amtskennung:
raimund@548:      */
raimund@548:     fields: [{
raimund@548:         name: 'id'
raimund@548:     }, {
raimund@548:         name: 'beschreibung'
raimund@548:     }, {
raimund@548:         name: 'netzbetreiberId'
raimund@548:     }, {
raimund@548:         name: 'messStelle'
raimund@548:     }, {
raimund@548:         name: 'mstTyp'
raimund@548:     }, {
raimund@548:         name: 'amtskennung'
raimund@548:     }],
raimund@548: 
raimund@548:     idProperty: 'id',
raimund@548: 
raimund@548:     proxy: {
raimund@548:         type: 'rest',
dustin@999:         url: 'lada-server/rest/messstelle',
raimund@548:         reader: {
raimund@548:             type: 'json',
raimund@548:             root: 'data'
raimund@548:         }
raimund@548:     }
raimund@548: });