comparison app/model/MmtMessprogramm.js @ 745:df684c3d4a7c

Added Messprogramme Store and Model
author Dustin Demuth <dustin@intevation.de>
date Fri, 24 Apr 2015 11:03:18 +0200
parents
children f2db1ae1d012
comparison
equal deleted inserted replaced
744:4381a32d874f 745:df684c3d4a7c
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 * A Messmethoden Messprogramm.
11 * This class represents and defines the model of a 'MmtMessprogramm'
12 **/
13 Ext.define('Lada.model.MmtMessprogramm', {
14 extend: 'Ext.data.Model',
15
16 fields: [{
17 name: 'id'
18 }, {
19 name: 'mprId'
20 }, {
21 name: 'mmtId'
22 }, {
23 name: 'messgroessen'
24 }, {
25 name: 'letzteAenderung',
26 type: 'date',
27 convert: function(v) {
28 if (!v) {
29 return v;
30 }
31 return new Date(v);
32 },
33 defaultValue: new Date()
34 }],
35
36 idProperty: 'id',
37
38 proxy: {
39 type: 'rest',
40 //url: 'lada-server/mmtmessprogramm', //not yet implemented
41 reader: {
42 type: 'json',
43 root: 'data'
44 }
45 }
46 }

http://lada.wald.intevation.org