Mercurial > lada > lada-client
comparison app/view/zusatzwerte/List.js @ 136:4dc84682110d
Removed nested elements in Zusatzwerte. Change getting aditional info for
Probenzusätze in the Zusatzwert listing.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 10:18:08 +0200 |
parents | 324b11db4323 |
children | 00e43c00b7f2 |
comparison
equal
deleted
inserted
replaced
135:e80a9114524c | 136:4dc84682110d |
---|---|
32 } | 32 } |
33 ]; | 33 ]; |
34 this.columns = [ | 34 this.columns = [ |
35 { | 35 { |
36 header: 'PZW-ID', | 36 header: 'PZW-ID', |
37 dataIndex: 'sprobenZusatz', | 37 dataIndex: 'pzsId' |
38 renderer: function(value) { | |
39 return value.pzsId; | |
40 } | |
41 }, | 38 }, |
42 { | 39 { |
43 header: 'PZW-Größe', | 40 header: 'PZW-Größe', |
44 dataIndex: 'sprobenZusatz', | 41 dataIndex: 'pzsId', |
45 renderer: function(value) { | 42 renderer: function(value) { |
46 return value.beschreibung; | 43 var store = Ext.getStore('Probenzusatzwerte'); |
44 var record = store.getById(value); | |
45 return record.get('beschreibung'); | |
47 }, | 46 }, |
48 flex: 1 | 47 flex: 1 |
49 }, | 48 }, |
50 {header: 'Messwert', dataIndex: 'messwertPzs'}, | 49 {header: 'Messwert', dataIndex: 'messwertPzs'}, |
51 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, | 50 {header: 'rel. Unsich.[%]', dataIndex: 'messfehler'}, |
52 { | 51 { |
53 header: 'Maßeinheit', | 52 header: 'Maßeinheit', |
54 dataIndex: 'sprobenZusatz', | 53 dataIndex: 'pzsId', |
55 renderer: function(value) { | 54 renderer: function(value) { |
56 return value.mehId; | 55 var store = Ext.getStore('Probenzusatzwerte'); |
56 var record = store.getById(value); | |
57 return record.get('mehId'); | |
57 } | 58 } |
58 } | 59 } |
59 ]; | 60 ]; |
60 this.callParent(arguments); | 61 this.callParent(arguments); |
61 } | 62 } |