Mercurial > lada > lada-client
comparison app/model/Ortszuordnung.js @ 1004:9ac03f461ab4 stammdatengrids
Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 20 Jan 2016 12:32:42 +0100 |
parents | app/model/Ort.js@f73ca04d73a7 |
children | bfdc00c24baf |
comparison
equal
deleted
inserted
replaced
1003:15d8c64049d1 | 1004:9ac03f461ab4 |
---|---|
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 Ortszuorndung | |
11 */ | |
12 Ext.define('Lada.model.Ortszuordnung', { | |
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: 'ortId' | |
26 }, { | |
27 name: 'probeId' | |
28 }, { | |
29 name: 'ortszuordnungTyp' | |
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/ortszuordnung', | |
64 reader: { | |
65 type: 'json', | |
66 root: 'data' | |
67 } | |
68 } | |
69 }); |