comparison app/model/Zusatzwert.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 c07419f07a0c c5b8896768a2
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 Zusatzwerte
11 */
12 Ext.define('Lada.model.Zusatzwert', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'probeId'
19 }, {
20 name: 'pzsId'
21 }, {
22 name: 'nwgZuMesswert',
23 type: 'float'
24 }, {
25 name: 'messwertPzs',
26 type: 'float'
27 }, {
28 name: 'messfehler',
29 type: 'float'
30 }, {
31 name: 'letzteAenderung',
32 type: 'date',
33 convert: function(v) {
34 if (!v) {
35 return v;
36 }
37 return new Date(v);
38 },
39 defaultValue: new Date()
40 }],
41
42 idProperty: 'id',
43
44 proxy: {
45 type: 'rest',
46 url: 'lada-server/zusatzwert',
47 reader: {
48 type: 'json',
49 root: 'data'
50 }
51 }
52 });

http://lada.wald.intevation.org