comparison 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
comparison
equal deleted inserted replaced
495:649bf1d08531 496:d07e5086a64b
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz 1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH 2 * Software engineering by Intevation GmbH
3 * 3 *
4 * This file is Free Software under the GNU GPL (v>=3) 4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 8
9 Ext.Loader.setConfig({ 9 Ext.Loader.setConfig({
10 enabled: true, 10 enabled: true,
11 paths: { 11 paths: {
25 // Setting up translations. This is done using a ext-plgin which can be 25 // Setting up translations. This is done using a ext-plgin which can be
26 // found on https://github.com/elmasse/Ext.i18n.Bundle 26 // found on https://github.com/elmasse/Ext.i18n.Bundle
27 requires: [ 27 requires: [
28 'Ext.i18n.Bundle', 28 'Ext.i18n.Bundle',
29 'Lada.lib.Helpers', 29 'Lada.lib.Helpers',
30 'Ext.layout.container.Column' 30 'Ext.layout.container.Column',
31 'Lada.store.StaDatenbasen',
32 'Lada.store.StaMesseinheiten',
33 'Lada.store.StaMessgroessen',
34 'Lada.store.StaMessmethoden',
35 'Lada.store.StaMessstellen',
36 'Lada.store.StaNetzbetreiber',
37 'Lada.store.StaOrte',
38 'Lada.store.StaPflichtmessgroessen',
39 'Lada.store.StaProbenarten',
40 'Lada.store.StaProbenzusaetze',
41 'Lada.store.StaStaaten',
42 'Lada.store.StaUmwelt',
43 'Lada.store.StaVerwaltungseinheiten'
31 ], 44 ],
32 bundle: { 45 bundle: {
33 bundle: 'Lada', 46 bundle: 'Lada',
34 lang: 'de-DE', 47 lang: 'de-DE',
35 path: 'resources', 48 path: 'resources',
41 autoCreateViewport: true, 54 autoCreateViewport: true,
42 55
43 // Start the application. 56 // Start the application.
44 launch: function() { 57 launch: function() {
45 console.log('Launching the application'); 58 console.log('Launching the application');
59 Ext.create('Lada.store.StaDatenbasen', {
60 storeId: 'staDatenbasen'
61 });
62 Ext.create('Lada.store.StaMesseinheiten', {
63 storeId: 'staMesseinheiten'
64 });
65 Ext.create('Lada.store.StaMessgroessen', {
66 storeId: 'staMessgroessen'
67 });
68 Ext.create('Lada.store.StaMessmethoden', {
69 storeId: 'staMessmethoden'
70 });
71 Ext.create('Lada.store.StaMessstellen', {
72 storeId: 'staMessstellen'
73 });
74 Ext.create('Lada.store.StaNetzbetreiber', {
75 storeId: 'staNetzbetreiber'
76 });
77 Ext.create('Lada.store.StaOrte', {
78 storeId: 'staOrte'
79 });
80 Ext.create('Lada.store.StaPflichtmessgroessen', {
81 storeId: 'staPflichtmessgroessen'
82 });
83 Ext.create('Lada.store.StaProbenarten', {
84 storeId: 'staProbenarten'
85 });
86 Ext.create('Lada.store.StaProbenzusaetze', {
87 storeId: 'staProbenzusaetze'
88 });
89 Ext.create('Lada.store.StaStaaten', {
90 storeId: 'staStaaten'
91 });
92 Ext.create('Lada.store.StaUmwelt', {
93 storeId: 'staUmwelt'
94 });
95 Ext.create('Lada.store.StaVerwaltungseinheiten', {
96 storeId: 'staVerwaltungseinheiten'
97 });
46 }, 98 },
47 99
48 // Define the controllers of the application. They will be initialized 100 // Define the controllers of the application. They will be initialized
49 // first before the application "launch" function is called. 101 // first before the application "launch" function is called.
50 controllers: [ 102 controllers: [

http://lada.wald.intevation.org