changeset 489:6056a7fd9aa2

Added and updated stores.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:11:25 +0100
parents f7446ebfe5d0
children 446e99cfd425
files app/store/Kommentare.js app/store/KommentareM.js app/store/KommentareP.js app/store/MKommentare.js app/store/Messeinheit.js app/store/Messgroessen.js app/store/Ortedetails.js app/store/StaDatenbasen.js app/store/StaMesseinheiten.js app/store/StaMessgroessen.js app/store/StaMessmethoden.js app/store/StaMessstellen.js app/store/StaNetzbetreiber.js app/store/StaOrte.js app/store/StaPflichtmessgroessen.js app/store/StaProbenarten.js app/store/StaProbenzusaetze.js app/store/StaStaaten.js app/store/StaUmwelt.js app/store/StaVerwaltungseinheiten.js app/store/Staaten.js app/store/Verwaltungseinheiten.js
diffstat 22 files changed, 347 insertions(+), 181 deletions(-) [+]
line wrap: on
line diff
--- a/app/store/Kommentare.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for Kommentare
- */
-Ext.define('Lada.store.Kommentare', {
-    extend: 'Ext.data.Store',
-    model: 'Lada.model.Kommentar'
-});
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/KommentareM.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,16 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Kommentare
+ */
+Ext.define('Lada.store.KommentareM', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.KommentarM'
+});
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/KommentareP.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,16 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Kommentare
+ */
+Ext.define('Lada.store.KommentareP', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.KommentarP'
+});
+
--- a/app/store/MKommentare.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for MKommentare
- */
-Ext.define('Lada.store.MKommentare', {
-    extend: 'Ext.data.Store',
-    model: 'Lada.model.MKommentar'
-});
-
--- a/app/store/Messeinheit.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for Messeinheit
- */
-Ext.define('Lada.store.Messeinheit', {
-    extend: 'Ext.data.Store',
-    fields: ['mehId', 'einheit'],
-    sorters: [{
-        property: 'einheit',
-        transform: function(val) {
-            if (val) {
-                return val.toLowerCase(); 
-            } else {
-                return "";
-            };
-        }
-    }],
-    autoLoad: true,
-    proxy: {
-        type: 'ajax',
-        api: {
-        read: 'server/rest/messeinheit'
-        },
-        reader: {
-            type: 'json',
-            root: 'data'
-        }
-    }
-});
--- a/app/store/Messgroessen.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for Messgroessen
- */
-Ext.define('Lada.store.Messgroessen', {
-    extend: 'Ext.data.Store',
-    fields: ['messgroesseId', 'messgroesse'],
-    sorters: [{
-        property: 'messgroesse',
-        transform: function(val) {
-            if (val) {
-                return val.toLowerCase();
-            } else {
-                return "";
-            };
-        }
-    }],
-    autoLoad: true,
-    proxy: {
-        type: 'ajax',
-        api: {
-        read: 'server/rest/messgroesse'
-        },
-        reader: {
-            type: 'json',
-            root: 'data'
-        }
-    }
-});
--- a/app/store/Ortedetails.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for Ortedetails
- */
-Ext.define('Lada.store.Ortedetails', {
-    extend: 'Ext.data.Store',
-    model: 'Lada.model.Ortdetail',
-    sorters: [{
-        property: 'bezeichnung'
-    }],
-    autoLoad: true
-});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaDatenbasen.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Datenbasis
+ */
+Ext.define('Lada.store.StaDatenbasen', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaDatenbasis',
+    sorters: [{
+        property: 'datenbasis',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaMesseinheiten.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Messeinheit
+ */
+Ext.define('Lada.store.StaMesseinheiten', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaMesseinheit',
+    sorters: [{
+        property: 'einheit',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaMessgroessen.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Messgroessen
+ */
+Ext.define('Lada.store.StaMessgroessen', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaMessgroesse',
+    sorters: [{
+        property: 'messgroesse',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaMessmethoden.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Messmethoden
+ */
+Ext.define('Lada.store.StaMessmethoden', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaMessmethode',
+    sorters: [{
+        property: 'messmethode',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaMessstellen.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Messstellen
+ */
+Ext.define('Lada.store.StaMessstellen', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaMessstelle',
+    sorters: [{
+        property: 'messStelle',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaNetzbetreiber.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Netzbetreiber
+ */
+Ext.define('Lada.store.StaNetzbetreiber', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaNetzbetreiber',
+    sorters: [{
+        property: 'netzbetreiber',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaOrte.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,19 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Ortedetails
+ */
+Ext.define('Lada.store.StaOrte', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaOrt',
+    sorters: [{
+        property: 'bezeichnung'
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaPflichtmessgroessen.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,16 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Pflichtmessgroessen
+ */
+Ext.define('Lada.store.StaPflichtmessgroessen', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaPfichtmessgroesse',
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaProbenarten.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Probenarten
+ */
+Ext.define('Lada.store.StaProbenarten', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaProbenart',
+    sorters: [{
+        property: 'probenart',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaProbenzusaetze.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Probenzusaetze
+ */
+Ext.define('Lada.store.StaProbenzusaetze', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaProbenzusatz',
+    sorters: [{
+        property: 'zusatzwert',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaStaaten.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,19 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Staaten
+ */
+Ext.define('Lada.store.StaStaaten', {
+    extend: 'Ext.data.Store',
+    sorters: [{
+        property: 'staat'
+    }],
+    model: 'Lada.model.StaStaat',
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaUmwelt.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,26 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Umweltbereiche
+ */
+Ext.define('Lada.store.StaUmwelt', {
+    extend: 'Ext.data.Store',
+    model: 'Lada.model.StaUmwelt',
+    sorters: [{
+        property: 'umweltBereich',
+        transform: function(val) {
+            if (val) {
+                return val.toLowerCase();
+            } else {
+                return "";
+            };
+        }
+    }],
+    autoLoad: true
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/StaVerwaltungseinheiten.js	Fri Oct 31 21:11:25 2014 +0100
@@ -0,0 +1,27 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details. 
+ */
+
+/**
+ * Store for Verwaltungseinheiten
+ */
+Ext.define('Lada.store.StaVerwaltungseinheiten', {
+    extend: 'Ext.data.Store',
+    fields: ['gemId', 'bezeichnung', 'longitude', 'latitude'],
+    sorters: [{
+        property: 'bezeichnung'
+    }],
+    autoLoad: true,
+    proxy: {
+        type: 'rest',
+        url: 'server/rest/sta_verwaltungseinheit',
+        reader: {
+            type: 'json',
+            root: 'data'
+        }
+    }
+});
--- a/app/store/Staaten.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for Staaten
- */
-Ext.define('Lada.store.Staaten', {
-    extend: 'Ext.data.Store',
-    sorters: [{
-        property: 'staat'
-    }],
-    model: 'Lada.model.Staat',
-    autoLoad: true,
-    proxy: {
-        type: 'ajax',
-        api: {
-        read: 'server/rest/staat'
-        },
-        reader: {
-            type: 'json',
-            root: 'data'
-        }
-    }
-});
--- a/app/store/Verwaltungseinheiten.js	Fri Oct 31 21:10:35 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU GPL (v>=3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
- */
-
-/**
- * Store for Verwaltungseinheiten
- */
-Ext.define('Lada.store.Verwaltungseinheiten', {
-    extend: 'Ext.data.Store',
-    fields: ['gemId', 'bezeichnung', 'longitude', 'latitude'],
-    sorters: [{
-        property: 'bezeichnung'
-    }],
-    autoLoad: true,
-    proxy: {
-        type: 'rest',
-        api: {
-        read: 'server/rest/verwaltungseinheit'
-        },
-        reader: {
-            type: 'json',
-            root: 'data'
-        }
-    }
-});

http://lada.wald.intevation.org