comparison app/model/PKommentar.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 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 Kommentare
11 */
12 Ext.define('Lada.model.PKommentar', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'probeId'
19 }, {
20 name: 'erzeuger'
21 }, {
22 name: 'datum',
23 type: 'date',
24 convert: function(v) {
25 if (!v) {
26 return v;
27 }
28 return new Date(v);
29 },
30 defaultValue: new Date()
31 }, {
32 name: 'text'
33 }],
34
35 idProperty: 'id',
36
37 proxy: {
38 type: 'rest',
39 url: 'lada-server/pkommentar',
40 reader: {
41 type: 'json',
42 root: 'data'
43 }
44 }
45 });

http://lada.wald.intevation.org