[Lada-commits] [PATCH 5 of 9] Added and updated stores

Wald Commits scm-commit at wald.intevation.org
Mon Nov 3 10:31:25 CET 2014


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1414786285 -3600
# Node ID 6056a7fd9aa256ddf72f48aae6f8383b4b2070f5
# Parent  f7446ebfe5d0a0ff12ee55c95e6743990826693f
Added and updated stores.

diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/Kommentare.js
--- 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'
-});
-
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/KommentareM.js
--- /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'
+});
+
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/KommentareP.js
--- /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'
+});
+
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/MKommentare.js
--- 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'
-});
-
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/Messeinheit.js
--- 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'
-        }
-    }
-});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/Messgroessen.js
--- 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'
-        }
-    }
-});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/Ortedetails.js
--- 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
-});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaDatenbasen.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaMesseinheiten.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaMessgroessen.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaMessmethoden.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaMessstellen.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaNetzbetreiber.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaOrte.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaPflichtmessgroessen.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaProbenarten.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaProbenzusaetze.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaStaaten.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaUmwelt.js
--- /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
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/StaVerwaltungseinheiten.js
--- /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'
+        }
+    }
+});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/Staaten.js
--- 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'
-        }
-    }
-});
diff -r f7446ebfe5d0 -r 6056a7fd9aa2 app/store/Verwaltungseinheiten.js
--- 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'
-        }
-    }
-});


More information about the Lada-commits mailing list