diff app/model/Zusatzwert.js @ 131:968806c1a3cb

Implement custom getEidi function to build a ID from the pzsId and the probenID.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 25 Jun 2013 17:30:01 +0200
parents f5864914ebb3
children 4dc84682110d
line wrap: on
line diff
--- a/app/model/Zusatzwert.js	Tue Jun 25 17:29:17 2013 +0200
+++ b/app/model/Zusatzwert.js	Tue Jun 25 17:30:01 2013 +0200
@@ -46,6 +46,12 @@
             type: 'json',
             writeEverything : true
         }
+    },
+    getEidi: function () {
+        var sprobenZusatz = this.get('sprobenZusatz');
+        var pzsId =  sprobenZusatz.pzsId;
+        var probeId = this.get('probeId');
+        return "/" + pzsId + "/" + probeId;
     }
 });
 

http://lada.wald.intevation.org