Mercurial > lada > lada-client
comparison app/view/messungen/List.js @ 170:738d657d8b6b
Added Status into Messungen listing.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 03 Jul 2013 16:08:22 +0200 |
parents | 52d105d4e93f |
children | c5422819d7b9 |
comparison
equal
deleted
inserted
replaced
169:52d105d4e93f | 170:738d657d8b6b |
---|---|
32 this.columns = [ | 32 this.columns = [ |
33 {header: 'Mess.ID', dataIndex: "messungsId", width: 50}, | 33 {header: 'Mess.ID', dataIndex: "messungsId", width: 50}, |
34 {header: 'NPR-Nr.', dataIndex: "nebenprobenNr", width: 50}, | 34 {header: 'NPR-Nr.', dataIndex: "nebenprobenNr", width: 50}, |
35 {header: 'MMT', dataIndex: "mmtId", width: 50}, | 35 {header: 'MMT', dataIndex: "mmtId", width: 50}, |
36 {header: 'Messzeit', dataIndex: "messdauer"}, | 36 {header: 'Messzeit', dataIndex: "messdauer"}, |
37 {header: 'Status'}, | 37 { |
38 header: 'Status', | |
39 dataIndex: 'id', | |
40 renderer: function(value) { | |
41 var sstore = Ext.getStore('Status'); | |
42 sstore.load({ | |
43 params: { | |
44 probeId: value.probeId, | |
45 messungsId: value.messungsId | |
46 } | |
47 }); | |
48 if (sstore.getTotalCount() === 0) { | |
49 return "unbekannt"; | |
50 } else { | |
51 return sstore.last().get('status'); | |
52 } | |
53 } | |
54 }, | |
38 {header: 'OK-Flag', dataIndex: "fertig"}, | 55 {header: 'OK-Flag', dataIndex: "fertig"}, |
39 { | 56 { |
40 header: 'Anzahl Nuklide', | 57 header: 'Anzahl Nuklide', |
41 dataIndex: 'id', | 58 dataIndex: 'id', |
42 renderer: function(value) { | 59 renderer: function(value) { |