Mercurial > lada > lada-client
comparison app/model/Kta.js @ 1316:f772e70ff723
Added model/store/widget for new stammdaten ort attributes.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 13:16:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1315:d312e514875c | 1316:f772e70ff723 |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Model for Kta Stammdaten. | |
11 */ | |
12 Ext.define('Lada.model.Kta', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 /** | |
16 * Fields are: | |
17 * - id: The unique identifier (Primary key). | |
18 * - bezeichnung: The long description. | |
19 * - code: human readable identifer | |
20 */ | |
21 fields: [{ | |
22 name: 'id' | |
23 }, { | |
24 name: 'bezeichnung' | |
25 }, { | |
26 name: 'code' | |
27 }], | |
28 | |
29 idProperty: 'id', | |
30 | |
31 proxy: { | |
32 type: 'rest', | |
33 url: 'lada-server/rest/kta', | |
34 reader: { | |
35 type: 'json', | |
36 root: 'data' | |
37 } | |
38 } | |
39 }); |