comparison app/model/Messwert.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 e362ecb46e77
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 Messwerte
11 */
12 Ext.define('Lada.model.Messwert', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'messungsId'
19 }, {
20 name: 'messgroesseId'
21 }, {
22 name: 'messwert',
23 type: 'float'
24 }, {
25 name: 'messwertNwg'
26 }, {
27 name: 'messfehler',
28 type: 'float'
29 }, {
30 name: 'nwgZuMesswert',
31 type: 'float'
32 }, {
33 name: 'mehId'
34 }, {
35 name: 'grenzwertueberschreitung',
36 type: 'boolean'
37 }, {
38 name: 'letzteAenderung',
39 type: 'date',
40 convert: function(v) {
41 if (!v) {
42 return v;
43 }
44 return new Date();
45 },
46 defaultValue: new Date()
47 }],
48
49 idProperty: 'id',
50
51 proxy: {
52 type: 'rest',
53 url: 'server/rest/messwert',
54 reader: {
55 type: 'json',
56 root: 'data'
57 }
58 }
59 });

http://lada.wald.intevation.org