Mercurial > lada > lada-client
comparison app/model/Ort.js @ 548:d47ee7439f44
Added new js files.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 06 Mar 2015 12:43:52 +0100 |
parents | |
children | f4969c71654a |
comparison
equal
deleted
inserted
replaced
547:f172b35a3b92 | 548:d47ee7439f44 |
---|---|
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 class for Ort | |
11 */ | |
12 Ext.define('Lada.model.Ort', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 fields: [{ | |
16 name: 'id', | |
17 type: 'int' | |
18 }, { | |
19 name: 'ort', | |
20 type: 'int' | |
21 }, { | |
22 name: 'probeId' | |
23 }, { | |
24 name: 'ortsTyp' | |
25 }, { | |
26 name: 'ortszusatztext' | |
27 }, { | |
28 name: 'letzteAenderung', | |
29 type: 'date', | |
30 convert: function(v) { | |
31 if (!v) { | |
32 return v; | |
33 } | |
34 return new Date(v); | |
35 }, | |
36 defaultValue: new Date() | |
37 }], | |
38 | |
39 idProperty: 'id', | |
40 | |
41 proxy: { | |
42 type: 'rest', | |
43 url: 'lada-server/ort', | |
44 reader: { | |
45 type: 'json', | |
46 root: 'data' | |
47 } | |
48 } | |
49 }); |