comparison app/model/KommentarM.js @ 488:f7446ebfe5d0

Added and updated models.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:10:35 +0100
parents
children 850ccfe5f3c4
comparison
equal deleted inserted replaced
487:a05cbc6e63cb 488:f7446ebfe5d0
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 on Messungen
11 */
12 Ext.define('Lada.model.KommentarM', {
13 extend: 'Lada.model.Base',
14 fields: [
15 {name: "id"},
16 {name: "messungsId"},
17 {name: "erzeuger"},
18 {name: "datum", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
19 {name: "text"}
20 ],
21 idProperty: "id",
22 proxy: {
23 type: 'rest',
24 url: 'server/rest/kommentar_m',
25 reader: {
26 type: 'json',
27 root: 'data'
28 }
29 }
30 });

http://lada.wald.intevation.org