comparison app/model/Ort.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/Location.js@f73ca04d73a7
children 9651def05ae6 1df6b6210b42
comparison
equal deleted inserted replaced
1003:15d8c64049d1 1004:9ac03f461ab4
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 8
9 /** 9 /**
10 * Model class for Ort 10 * Model class for Ort Stammdaten
11 */ 11 */
12 Ext.define('Lada.model.Ort', { 12 Ext.define('Lada.model.Ort', {
13 extend: 'Ext.data.Model', 13 extend: 'Ext.data.Model',
14 14
15 fields: [{ 15 fields: [{
16 name: 'id' 16 name: 'id'
17 }, { 17 }, {
18 name: 'owner', 18 name: 'aktiv'
19 type: 'boolean'
20 }, { 19 }, {
21 name: 'readonly', 20 name: 'ortId'
22 type: 'boolean',
23 persist: false
24 }, { 21 }, {
25 name: 'ort' 22 name: 'nutsCode'
26 }, { 23 }, {
27 name: 'probeId' 24 name: 'anlageId'
28 }, { 25 }, {
29 name: 'ortsTyp' 26 name: 'netzbetreiberId'
30 }, { 27 }, {
31 name: 'ortszusatztext' 28 name: 'gemId'
29 }, {
30 name: 'staatId'
31 }, {
32 name: 'kdaId'
33 }, {
34 name: 'ozId'
35 }, {
36 name: 'ortTyp'
37 }, {
38 name: 'mpArt'
39 }, {
40 name: 'zone'
41 }, {
42 name: 'sektor'
43 }, {
44 name: 'zustaendigkeit'
45 }, {
46 name: 'berichtstext'
47 }, {
48 name: 'kurztext'
49 }, {
50 name: 'langtext'
51 }, {
52 name: 'beschreibung'
53 }, {
54 name: 'unscharf'
55 }, {
56 name: 'hoeheLand'
57 }, {
58 name: 'koordXExtern'
59 }, {
60 name: 'koordYExtern'
61 }, {
62 name: 'longitude',
63 type: 'float'
64 }, {
65 name: 'latitude',
66 type: 'float'
32 }, { 67 }, {
33 name: 'letzteAenderung', 68 name: 'letzteAenderung',
34 type: 'date', 69 type: 'date',
35 convert: function(v) { 70 convert: function(v) {
36 if (!v) { 71 if (!v) {
37 return v; 72 return v;
38 } 73 }
39 return new Date(v); 74 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 } 75 }
57 }], 76 }],
58 77
59 idProperty: 'id', 78 idProperty: 'id',
60 79

http://lada.wald.intevation.org