comparison app/model/OrtszuordnungMp.js @ 1289:bfdc00c24baf

Ortszuordnung for messprogramm and probe using same form
author Maximilian Krambach <mkrambach@intevation.de>
date Wed, 01 Feb 2017 14:52:51 +0100
parents
children 1a2cd9bef6d7
comparison
equal deleted inserted replaced
1288:08085b7d1d0b 1289:bfdc00c24baf
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 Ortszuordnung of Messprogramme
11 */
12 Ext.define('Lada.model.OrtszuordnungMp', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'owner',
19 type: 'boolean'
20 }, {
21 name: 'readonly',
22 type: 'boolean',
23 persist: false
24 }, {
25 name: 'ort'
26 }, {
27 name: 'messprogrammId'
28 }, {
29 name: 'ortsTyp'
30 }, {
31 name: 'ortszusatztext'
32 }, {
33 name: 'letzteAenderung',
34 type: 'date',
35 convert: function(v) {
36 if (!v) {
37 return v;
38 }
39 return new Date(v);
40 }
41 }, {
42 name: 'treeModified',
43 serialize: function(value) {
44 if (value === '') {
45 return null;
46 }
47 return value;
48 }
49 }, {
50 name: 'parentModified',
51 serialize: function(value) {
52 if (value === '') {
53 return null;
54 }
55 return value;
56 }
57 }],
58
59 idProperty: 'id',
60
61 proxy: {
62 type: 'rest',
63 url: 'lada-server/rest/ortszuordnungmp',
64 reader: {
65 type: 'json',
66 root: 'data'
67 }
68 }
69 });
70

http://lada.wald.intevation.org