comparison app/model/DatensatzErzeuger.js @ 1007:23bfcbdb4527

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 20 Jan 2016 17:33:33 +0100
parents 15d8c64049d1
children 1df6b6210b42 1251094e7500
comparison
equal deleted inserted replaced
1002:54179b6043b6 1007:23bfcbdb4527
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 DatensatzErzeuger Stammdaten
11 */
12 Ext.define('Lada.model.DatensatzErzeuger', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'netzbetreiberId'
19 }, {
20 name: 'daErzeugerId'
21 }, {
22 name: 'mstId'
23 }, {
24 name: 'bezeichnung'
25 }, {
26 name: 'letzteAenderung',
27 type: 'date',
28 convert: function(v) {
29 if (!v) {
30 return v;
31 }
32 return new Date(v);
33 }
34 /*
35 }, {
36 name: 'treeModified',
37 serialize: function(value) {
38 if (value === '') {
39 return null;
40 }
41 return value;
42 }
43 }, {
44 name: 'parentModified',
45 serialize: function(value) {
46 if (value === '') {
47 return null;
48 }
49 return value;
50 }
51 */
52 }],
53
54 idProperty: 'id',
55
56 proxy: {
57 type: 'rest',
58 url: 'lada-server/rest/datensatzerzeuger',
59 reader: {
60 type: 'json',
61 root: 'data'
62 }
63 }
64 });

http://lada.wald.intevation.org