comparison app/view/grid/Probenzusatzwert.js @ 1184:be720d0473f6 schema-update

Fixed probezusatzwert grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 31 Aug 2016 15:58:19 +0200
parents 5941ee0c7247
children 43f394c10866
comparison
equal deleted inserted replaced
1183:287ce20bb1cb 1184:be720d0473f6
120 return ''; 120 return '';
121 } 121 }
122 }, { 122 }, {
123 header: 'Nachweisgrenze', 123 header: 'Nachweisgrenze',
124 dataIndex: 'nwgZuMesswert', 124 dataIndex: 'nwgZuMesswert',
125 xtype: 'numbercolumn',
126 flex: 1, 125 flex: 1,
127 editor: { 126 editor: {
128 xtype: 'expnumberfield', 127 xtype: 'expnumberfield',
129 }, 128 },
130 renderer: function(value) { 129 renderer: function(value) {
148 if (!value || value === '') { 147 if (!value || value === '') {
149 return ''; 148 return '';
150 } 149 }
151 var zstore = Ext.data.StoreManager.get('probenzusaetze'); 150 var zstore = Ext.data.StoreManager.get('probenzusaetze');
152 var mstore = Ext.data.StoreManager.get('messeinheiten'); 151 var mstore = Ext.data.StoreManager.get('messeinheiten');
153 var mehId = zstore.getById(value).get('mehId'); 152 var mehId = zstore.getById(value).get('messEinheitId');
154 var record = mstore.findRecord('id', mehId, 0, false, false, true); 153 var record = mstore.findRecord('id', mehId, 0, false, false, true);
154 if (!record) {
155 return '';
156 }
155 return record.get('einheit'); 157 return record.get('einheit');
156 } 158 }
157 }, { 159 }, {
158 header: 'rel. Unsich.[%]', 160 header: 'rel. Unsich.[%]',
159 dataIndex: 'messfehler', 161 dataIndex: 'messfehler',

http://lada.wald.intevation.org