diff app/model/Ort.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/Ort.js	Fri Oct 31 21:07:39 2014 +0100
+++ b/app/model/Ort.js	Fri Oct 31 21:10:35 2014 +0100
@@ -12,29 +12,20 @@
 Ext.define('Lada.model.Ort', {
     extend: 'Lada.model.Base',
     fields: [
-        // Field from the l_ort table
-        {name: "portId", type: 'int'},
+        {name: "id", type: 'int'},
         {name: "ortId", type: 'int'},
         {name: "probeId"},
         {name: "ortsTyp"},
         {name: "ortszusatztext"},
         {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}
     ],
-    idProperty: "portId",
+    idProperty: "id",
     proxy: {
         type: 'rest',
-        appendId: true, //default
         url: 'server/rest/ort',
-        api: {
-        },
         reader: {
             type: 'json',
             root: 'data'
         }
-    },
-    getEidi: function() {
-        var ortId = this.get('portId');
-        var probeId = this.get('probeId');
-        return "/" + ortId + "/" + probeId;
     }
 });

http://lada.wald.intevation.org