diff app.js @ 496:d07e5086a64b

Moved stammdaten stores to app.js and load them via storemanager.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 10:35:35 +0100
parents 850ccfe5f3c4
children 7c0653e8d9f7
line wrap: on
line diff
--- a/app.js	Mon Nov 03 12:12:24 2014 +0100
+++ b/app.js	Thu Nov 06 10:35:35 2014 +0100
@@ -3,7 +3,7 @@
  *
  * 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. 
+ * the documentation coming with IMIS-Labordaten-Application for details.
  */
 
 Ext.Loader.setConfig({
@@ -27,7 +27,20 @@
     requires: [
         'Ext.i18n.Bundle',
         'Lada.lib.Helpers',
-        'Ext.layout.container.Column'
+        'Ext.layout.container.Column',
+        'Lada.store.StaDatenbasen',
+        'Lada.store.StaMesseinheiten',
+        'Lada.store.StaMessgroessen',
+        'Lada.store.StaMessmethoden',
+        'Lada.store.StaMessstellen',
+        'Lada.store.StaNetzbetreiber',
+        'Lada.store.StaOrte',
+        'Lada.store.StaPflichtmessgroessen',
+        'Lada.store.StaProbenarten',
+        'Lada.store.StaProbenzusaetze',
+        'Lada.store.StaStaaten',
+        'Lada.store.StaUmwelt',
+        'Lada.store.StaVerwaltungseinheiten'
     ],
     bundle: {
         bundle: 'Lada',
@@ -43,6 +56,45 @@
     // Start the application.
     launch: function() {
         console.log('Launching the application');
+        Ext.create('Lada.store.StaDatenbasen', {
+            storeId: 'staDatenbasen'
+        });
+        Ext.create('Lada.store.StaMesseinheiten', {
+            storeId: 'staMesseinheiten'
+        });
+        Ext.create('Lada.store.StaMessgroessen', {
+            storeId: 'staMessgroessen'
+        });
+        Ext.create('Lada.store.StaMessmethoden', {
+            storeId: 'staMessmethoden'
+        });
+        Ext.create('Lada.store.StaMessstellen', {
+            storeId: 'staMessstellen'
+        });
+        Ext.create('Lada.store.StaNetzbetreiber', {
+            storeId: 'staNetzbetreiber'
+        });
+        Ext.create('Lada.store.StaOrte', {
+            storeId: 'staOrte'
+        });
+        Ext.create('Lada.store.StaPflichtmessgroessen', {
+            storeId: 'staPflichtmessgroessen'
+        });
+        Ext.create('Lada.store.StaProbenarten', {
+            storeId: 'staProbenarten'
+        });
+        Ext.create('Lada.store.StaProbenzusaetze', {
+            storeId: 'staProbenzusaetze'
+        });
+        Ext.create('Lada.store.StaStaaten', {
+            storeId: 'staStaaten'
+        });
+        Ext.create('Lada.store.StaUmwelt', {
+            storeId: 'staUmwelt'
+        });
+        Ext.create('Lada.store.StaVerwaltungseinheiten', {
+            storeId: 'staVerwaltungseinheiten'
+        });
     },
 
     // Define the controllers of the application. They will be initialized

http://lada.wald.intevation.org