diff app/model/Messwert.js @ 488:f7446ebfe5d0

Added and updated models.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:10:35 +0100
parents debfcc7713e3
children 850ccfe5f3c4
line wrap: on
line diff
--- a/app/model/Messwert.js	Fri Oct 31 21:07:39 2014 +0100
+++ b/app/model/Messwert.js	Fri Oct 31 21:10:35 2014 +0100
@@ -13,9 +13,8 @@
     extend: 'Lada.model.Base',
     fields: [
         {name: "id"},
-        {name: "messungsId", mapping:"id.messungsId"},
-        {name: "probeId", mapping:"id.probeId"},
-        {name: "messgroesseId", mapping:"id.messgroesseId"},
+        {name: "messungsId"},
+        {name: "messgroesseId"},
         {name: "messwert", type:"float"},
         {name: "messwertNwg"},
         {name: "messfehler", type:"float"},
@@ -27,17 +26,10 @@
     idProperty: "id",
     proxy: {
         type: 'rest',
-        appendId: true, //default
         url: 'server/rest/messwert',
         reader: {
             type: 'json',
             root: 'data'
         }
-    },
-    getEidi: function() {
-        var mid =  this.get('messgroesseId');
-        var messId = this.get('messungsId');
-        var probeId = this.get('probeId');
-        return "/" + mid + "/" + messId + "/" + probeId;
     }
 });

http://lada.wald.intevation.org