comparison app/view/grid/Status.js @ 957:881984972e0e

Added Statusstufe to MessungForm
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Nov 2015 14:13:27 +0100
parents 45c67a784b31
children 5d57c6c53e20
comparison
equal deleted inserted replaced
956:45c67a784b31 957:881984972e0e
93 sortable: false, 93 sortable: false,
94 }, { 94 }, {
95 header: 'Stufe', 95 header: 'Stufe',
96 dataIndex: 'statusStufe', 96 dataIndex: 'statusStufe',
97 renderer: function(value) { 97 renderer: function(value) {
98 if (value===null || value === '' || value === 0) { 98 if (value===null || value === '') {
99 return 'Fehlerhafte Daten'; 99 return 'Fehlerhafte Daten';
100 } 100 }
101 var r = statusStufeStore.getById(value).get('stufe') 101 var item = statusStufeStore.getById(value);
102 var r;
103 if (item) {
104 r = item.get('stufe');
105 }
102 if (r === null) { 106 if (r === null) {
103 r = 'Error'; 107 r = 'Error';
104 } 108 }
105 return r; 109 return r;
106 }, 110 },
118 dataIndex: 'statusWert', 122 dataIndex: 'statusWert',
119 renderer: function(value) { 123 renderer: function(value) {
120 if (value===null || value === '') { 124 if (value===null || value === '') {
121 return ''; 125 return '';
122 } 126 }
123 var r = statusWerteStore.getById(value).get('wert') 127 var item = statusWerteStore.getById(value);
128 var r;
129 if (item) {
130 r = item.get('wert');
131 }
124 if (r === null) { 132 if (r === null) {
125 r = 'Error'; 133 r = 'Error';
126 } 134 }
127 return r; 135 return r;
128 }, 136 },

http://lada.wald.intevation.org