Mercurial > lada > lada-client
changeset 437:3ed0ab0f5ee5
Issue70: Neue Spalte zum Anzeigen ob der Messwert < als die NWG ist. Wenn MW <
NWG dann wird anstatt des MW die NWG eingetragen.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 18 Nov 2013 10:09:13 +0100 |
parents | 067ecffac15d |
children | 1fc4407c6c83 60763d913203 |
files | app/view/messwerte/List.js |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/messwerte/List.js Mon Nov 11 11:22:16 2013 +0100 +++ b/app/view/messwerte/List.js Mon Nov 18 10:09:13 2013 +0100 @@ -38,6 +38,21 @@ ]; this.columns = [ { + header: '<NWG', + dataIndex: 'messwert', + renderer: function(value, row) { + // the seconds argument here is not documented in JQuery + // but it has the current rendererd row and this + // referenced the record. + var nwg = row.record.get('nwgZuMesswert'); + if (value < nwg) { + return "<"; + } else { + return ""; + } + } + }, + { header: 'Messwert', dataIndex: 'messwert', renderer: function(value, row) { @@ -46,7 +61,7 @@ // referenced the record. var nwg = row.record.get('nwgZuMesswert'); if (value < nwg) { - return "<"+value; + return nwg; } else { return value; }