comparison app/view/messwerte/List.js @ 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 2f4270ff8206
children bba7fbcf2f70
comparison
equal deleted inserted replaced
436:067ecffac15d 437:3ed0ab0f5ee5
36 ] 36 ]
37 } 37 }
38 ]; 38 ];
39 this.columns = [ 39 this.columns = [
40 { 40 {
41 header: '&lt;NWG',
42 dataIndex: 'messwert',
43 renderer: function(value, row) {
44 // the seconds argument here is not documented in JQuery
45 // but it has the current rendererd row and this
46 // referenced the record.
47 var nwg = row.record.get('nwgZuMesswert');
48 if (value < nwg) {
49 return "<";
50 } else {
51 return "";
52 }
53 }
54 },
55 {
41 header: 'Messwert', 56 header: 'Messwert',
42 dataIndex: 'messwert', 57 dataIndex: 'messwert',
43 renderer: function(value, row) { 58 renderer: function(value, row) {
44 // the seconds argument here is not documented in JQuery 59 // the seconds argument here is not documented in JQuery
45 // but it has the current rendererd row and this 60 // but it has the current rendererd row and this
46 // referenced the record. 61 // referenced the record.
47 var nwg = row.record.get('nwgZuMesswert'); 62 var nwg = row.record.get('nwgZuMesswert');
48 if (value < nwg) { 63 if (value < nwg) {
49 return "<"+value; 64 return nwg;
50 } else { 65 } else {
51 return value; 66 return value;
52 } 67 }
53 } 68 }
54 }, 69 },

http://lada.wald.intevation.org