comparison 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
comparison
equal deleted inserted replaced
139:df6e36dd57ee 140:00e43c00b7f2
44 var record = store.getById(value); 44 var record = store.getById(value);
45 return record.get('beschreibung'); 45 return record.get('beschreibung');
46 }, 46 },
47 flex: 1 47 flex: 1
48 }, 48 },
49 {header: 'Messwert', dataIndex: 'messwertPzs'}, 49 {
50 header: 'Messwert',
51 dataIndex: 'pzsId',
52 renderer: function(value) {
53 var store = Ext.getStore('Zusatzwerte');
54 var record = store.getById(value);
55 var messwert = record.get('messwertPzs');
56 var nwg = record.get('nwgZuMesswert');
57 if (messwert < nwg ) {
58 return "<"+messwert;
59 } else {
60 return messwert;
61 }
62 }
63 },
50 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, 64 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'},
51 { 65 {
52 header: 'Maßeinheit', 66 header: 'Maßeinheit',
53 dataIndex: 'pzsId', 67 dataIndex: 'pzsId',
54 renderer: function(value) { 68 renderer: function(value) {

http://lada.wald.intevation.org