Mercurial > lada > lada-client
diff app/view/messungen/List.js @ 490:446e99cfd425
Updated views and controllers using the new model and stores.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:28:31 +0100 |
parents | debfcc7713e3 |
children | 850ccfe5f3c4 |
line wrap: on
line diff
--- a/app/view/messungen/List.js Fri Oct 31 21:11:25 2014 +0100 +++ b/app/view/messungen/List.js Fri Oct 31 21:28:31 2014 +0100 @@ -43,7 +43,7 @@ } ]; this.columns = [ - {header: 'Mess.ID', dataIndex: "messungsId", width: 50}, + {header: 'Mess.ID', dataIndex: "id", width: 50}, {header: 'NPR-Nr.', dataIndex: "nebenprobenNr", width: 50}, {header: 'MMT', dataIndex: "mmtId", width: 50}, {header: 'Messzeit', dataIndex: "messzeitpunkt"}, @@ -55,7 +55,7 @@ sstore.load({ params: { probeId: value.probeId, - messungsId: value.messungsId + messungsId: value.id } }); if (sstore.getTotalCount() === 0) { @@ -84,7 +84,7 @@ mstore.load({ params: { probeId: value.probeId, - messungsId: value.messungsId + messungsId: value.id } }); return mstore.getTotalCount(); @@ -95,11 +95,11 @@ flex: 1, dataIndex: 'id', renderer: function(value) { - var kstore = Ext.getStore('MKommentare'); + var kstore = Ext.getStore('KommentareM'); kstore.load({ params: { probeId: value.probeId, - messungsId: value.messungsId + messungsId: value.id } }); return kstore.getTotalCount();