tom@1338: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
tom@1338:  * Software engineering by Intevation GmbH
tom@1338:  *
tom@1338:  * This file is Free Software under the GNU GPL (v>=3)
tom@1338:  * and comes with ABSOLUTELY NO WARRANTY! Check out
tom@1338:  * the documentation coming with IMIS-Labordaten-Application for details.
tom@1338:  */
tom@1338: 
tom@1338: /**
tom@1338:  * Model for OrtsZusatz Stammdaten.
tom@1338:  */
tom@1338: Ext.define('Lada.model.OrtszuordnungTyp', {
tom@1338:     extend: 'Ext.data.Model',
tom@1338: 
tom@1338:     /**
tom@1338:      * Fields are:
tom@1338:      *  - id: The unique identifier (Primary key).
tom@1338:      *  - ortstyp: The long description.
tom@1338:      */
tom@1338:     fields: [{
tom@1338:         name: 'id'
tom@1338:     }, {
tom@1338:         name: 'ortstyp'
tom@1338:     }],
tom@1338: 
tom@1338:     idProperty: 'id',
tom@1338: 
tom@1338:     proxy: {
tom@1338:         type: 'rest',
tom@1338:         url: 'lada-server/rest/ortszuordnungtyp',
tom@1338:         reader: {
tom@1338:             type: 'json',
tom@1338:             root: 'data'
tom@1338:         }
tom@1338:     }
tom@1338: });