changeset 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 747d488b9203
children 04439f3feba3
files app/model/Zusatzwert.js
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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