Mercurial > lada > lada-client
comparison app/model/Status.js @ 945:023e622f9551
Added the ability to work with "StatusWerten" which are delivered by the lada-server.
To enable the uses of StatusWerte, the controller for the status grid, needed to be extended.
In addition, the form and grid views of Messung and Status were updated.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 27 Oct 2015 16:46:58 +0100 |
parents | af16a257d5f6 |
children | 45c67a784b31 |
comparison
equal
deleted
inserted
replaced
944:1f1467713c3f | 945:023e622f9551 |
---|---|
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', | |
19 type: 'boolean' | |
20 }, { | |
21 name: 'readonly', | 18 name: 'readonly', |
22 type: 'boolean', | 19 type: 'boolean', |
23 persist: false | 20 persist: false |
21 }, { | |
22 name: 'owner', | |
23 type: 'boolean', | |
24 }, { | 24 }, { |
25 name: 'messungsId' | 25 name: 'messungsId' |
26 }, { | 26 }, { |
27 name: 'erzeuger' | 27 name: 'erzeuger' |
28 }, { | 28 }, { |
29 name: 'status' | 29 name: 'statusStufe', |
30 type: 'int' | |
30 }, { | 31 }, { |
31 name: 'sdatum', | 32 name: 'statusWert', |
33 type: 'int' | |
34 }, { | |
35 name: 'treeModified', | |
36 serialize: function(value) { | |
37 if (value === '') { | |
38 return null; | |
39 } | |
40 return value; | |
41 } | |
42 }, { | |
43 name: 'parentModified', | |
44 serialize: function(value) { | |
45 if (value === '') { | |
46 return null; | |
47 } | |
48 return value; | |
49 } | |
50 }, { | |
51 name: 'datum', | |
32 type: 'date', | 52 type: 'date', |
33 convert: function(v) { | 53 convert: function(v) { |
34 if (!v) { | 54 if (!v) { |
35 return v; | 55 return v; |
36 } | 56 } |
37 return new Date(v); | 57 return new Date(v); |
38 }, | 58 }, |
39 defaultValue: new Date() | 59 defaultValue: new Date() |
40 }, { | 60 }, { |
41 name: 'skommentar' | 61 name: 'text' |
42 }, { | |
43 name: 'treeModified', | |
44 serialize: function(value) { | |
45 if (value === '') { | |
46 return null; | |
47 } | |
48 return value; | |
49 } | |
50 }, { | |
51 name: 'parentModified', | |
52 serialize: function(value) { | |
53 if (value === '') { | |
54 return null; | |
55 } | |
56 return value; | |
57 } | |
58 }], | 62 }], |
59 | 63 |
60 idProperty: 'id', | 64 idProperty: 'id', |
61 | 65 |
62 proxy: { | 66 proxy: { |