[Lada-commits] [PATCH 3 of 4] Added function to model with return the beschreibung of the messeinheit of a
Wald Commits
scm-commit at wald.intevation.org
Fri Jun 28 11:17:40 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1372410939 -7200
# Node ID dee9da79f05560b60e6aa598ad261e302b6db937
# Parent 1fb79e16149f6aa509daa013a20e96efa0a62e41
Added function to model with return the beschreibung of the messeinheit of a
given Probenzusatzwert by pzsId.
diff -r 1fb79e16149f -r dee9da79f055 app/model/Zusatzwert.js
--- a/app/model/Zusatzwert.js Fri Jun 28 09:51:41 2013 +0200
+++ b/app/model/Zusatzwert.js Fri Jun 28 11:15:39 2013 +0200
@@ -26,6 +26,13 @@
var pzsId = this.get('pzsId');
var probeId = this.get('probeId');
return "/" + pzsId + "/" + probeId;
+ },
+ getMesseinheit: function(pzsId) {
+ var zstore = Ext.getStore('Probenzusatzwerte');
+ var mstore = Ext.getStore('Messeinheit');
+ var mehId = zstore.getById(pzsId).get('mehId');
+ var record = mstore.findRecord('mehId', mehId);
+ return record.get('einheit');
}
});
More information about the Lada-commits
mailing list