Mercurial > lada > lada-client
diff app/view/zusatzwerte/List.js @ 140:00e43c00b7f2
Display messwert of Zusatzwert with a prepended "<" if the messwert is smaller
then the nachweisgrenze.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 28 Jun 2013 09:26:07 +0200 |
parents | 4dc84682110d |
children | 1fb79e16149f |
line wrap: on
line diff
--- a/app/view/zusatzwerte/List.js Thu Jun 27 16:21:21 2013 +0200 +++ b/app/view/zusatzwerte/List.js Fri Jun 28 09:26:07 2013 +0200 @@ -46,7 +46,21 @@ }, flex: 1 }, - {header: 'Messwert', dataIndex: 'messwertPzs'}, + { + header: 'Messwert', + dataIndex: 'pzsId', + renderer: function(value) { + var store = Ext.getStore('Zusatzwerte'); + var record = store.getById(value); + var messwert = record.get('messwertPzs'); + var nwg = record.get('nwgZuMesswert'); + if (messwert < nwg ) { + return "<"+messwert; + } else { + return messwert; + } + } + }, {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, { header: 'Maßeinheit',