comparison app/model/Messung.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 c3169d4847dd
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 Messungen
11 */
12 Ext.define('Lada.model.Messung', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'probeId'
19 }, {
20 name: 'mmtId'
21 }, {
22 name: 'nebenprobenNr'
23 }, {
24 name: 'messdauer'
25 }, {
26 name: 'messzeitpunkt',
27 convert: function(v) {
28 if (!v) {
29 return v;
30 }
31 return new Date();
32 },
33 defaultValue: new Date()
34 }, {
35 name: 'fertig',
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 name: 'geplant',
49 type: 'boolean'
50 }, {
51 name: 'messungsIdAlt'
52 }],
53
54 idProperty: 'id',
55
56 proxy: {
57 type: 'rest',
58 url: 'lada-server/messung',
59 reader: {
60 type: 'json',
61 root: 'data'
62 }
63 }
64 });

http://lada.wald.intevation.org