Mercurial > lada > lada-client
annotate app.js @ 529:f6e26b782eb2
Updated static data.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 17 Dec 2014 11:28:50 +0100 |
parents | 10959fe61092 |
children |
rev | line source |
---|---|
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
1 /** |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
2 * Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
421
diff
changeset
|
3 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
421
diff
changeset
|
4 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
421
diff
changeset
|
5 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
421
diff
changeset
|
6 * and comes with ABSOLUTELY NO WARRANTY! Check out |
496
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
7 * the documentation coming with IMIS-Labordaten-Application for details. |
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
421
diff
changeset
|
8 */ |
421
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
9 Ext.Loader.setConfig({ |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
10 enabled: true, |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
11 paths: { |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
12 'Ext.ux.form.DateTimeField': 'resources/datetime/UX_DateTimeField.js', |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
13 'Ext.ux.DateTimeMenu': 'resources/datetime/UX_DateTimeMenu.js', |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
14 'Ext.ux.DateTimePicker': 'resources/datetime/UX_DateTimePicker.js', |
501
10959fe61092
Updated dependencies and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
15 'Ext.ux.form.TimePickerField': 'resources/datetime/UX_TimePickerField.js', |
10959fe61092
Updated dependencies and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
499
diff
changeset
|
16 'Ext.i18n': 'resources/i18n/' |
421
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
17 } |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
18 }); |
f06a882ab776
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
Raimund Renkert <rrenkert@intevation.de>
parents:
311
diff
changeset
|
19 |
0
1e257ec56220
Initial commit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 Ext.application({ |
118
f2579cadaee8
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
117
diff
changeset
|
21 |
f2579cadaee8
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
117
diff
changeset
|
22 // Name of the application. Do not change as this name is used in |
f2579cadaee8
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
117
diff
changeset
|
23 // references! |
0
1e257ec56220
Initial commit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 name: 'Lada', |
118
f2579cadaee8
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
117
diff
changeset
|
25 |
117
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
26 // Setting up translations. This is done using a ext-plgin which can be |
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
27 // found on https://github.com/elmasse/Ext.i18n.Bundle |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
477
diff
changeset
|
28 requires: [ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
477
diff
changeset
|
29 'Ext.i18n.Bundle', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
477
diff
changeset
|
30 'Lada.lib.Helpers', |
496
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
31 'Ext.layout.container.Column', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
32 'Lada.store.StaDatenbasen', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
33 'Lada.store.StaMesseinheiten', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
34 'Lada.store.StaMessgroessen', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
35 'Lada.store.StaMessmethoden', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
36 'Lada.store.StaMessstellen', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
37 'Lada.store.StaNetzbetreiber', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
38 'Lada.store.StaOrte', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
39 'Lada.store.StaPflichtmessgroessen', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
40 'Lada.store.StaProbenarten', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
41 'Lada.store.StaProbenzusaetze', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
42 'Lada.store.StaStaaten', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
43 'Lada.store.StaUmwelt', |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
44 'Lada.store.StaVerwaltungseinheiten' |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
477
diff
changeset
|
45 ], |
73
7661f09466cc
Added i18n extension. Note: This extension must be installed. See https://github.com/elmasse/Ext.i18n.Bundle/wiki/HowTo
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
54
diff
changeset
|
46 bundle: { |
7661f09466cc
Added i18n extension. Note: This extension must be installed. See https://github.com/elmasse/Ext.i18n.Bundle/wiki/HowTo
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
54
diff
changeset
|
47 bundle: 'Lada', |
7661f09466cc
Added i18n extension. Note: This extension must be installed. See https://github.com/elmasse/Ext.i18n.Bundle/wiki/HowTo
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
54
diff
changeset
|
48 lang: 'de-DE', |
7661f09466cc
Added i18n extension. Note: This extension must be installed. See https://github.com/elmasse/Ext.i18n.Bundle/wiki/HowTo
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
54
diff
changeset
|
49 path: 'resources', |
7661f09466cc
Added i18n extension. Note: This extension must be installed. See https://github.com/elmasse/Ext.i18n.Bundle/wiki/HowTo
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
54
diff
changeset
|
50 noCache: true |
7661f09466cc
Added i18n extension. Note: This extension must be installed. See https://github.com/elmasse/Ext.i18n.Bundle/wiki/HowTo
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
54
diff
changeset
|
51 }, |
118
f2579cadaee8
Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
117
diff
changeset
|
52 |
117
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
53 // Setting this variable to true triggers loading the Viewport.js |
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
54 // file which sets ob the viewport. |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
24
diff
changeset
|
55 autoCreateViewport: true, |
117
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
56 |
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
57 // Start the application. |
0
1e257ec56220
Initial commit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
58 launch: function() { |
496
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
59 Ext.create('Lada.store.StaDatenbasen', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
60 storeId: 'staDatenbasen' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
61 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
62 Ext.create('Lada.store.StaMesseinheiten', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
63 storeId: 'staMesseinheiten' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
64 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
65 Ext.create('Lada.store.StaMessgroessen', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
66 storeId: 'staMessgroessen' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
67 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
68 Ext.create('Lada.store.StaMessmethoden', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
69 storeId: 'staMessmethoden' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
70 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
71 Ext.create('Lada.store.StaMessstellen', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
72 storeId: 'staMessstellen' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
73 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
74 Ext.create('Lada.store.StaNetzbetreiber', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
75 storeId: 'staNetzbetreiber' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
76 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
77 Ext.create('Lada.store.StaOrte', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
78 storeId: 'staOrte' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
79 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
80 Ext.create('Lada.store.StaPflichtmessgroessen', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
81 storeId: 'staPflichtmessgroessen' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
82 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
83 Ext.create('Lada.store.StaProbenarten', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
84 storeId: 'staProbenarten' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
85 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
86 Ext.create('Lada.store.StaProbenzusaetze', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
87 storeId: 'staProbenzusaetze' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
88 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
89 Ext.create('Lada.store.StaStaaten', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
90 storeId: 'staStaaten' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
91 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
92 Ext.create('Lada.store.StaUmwelt', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
93 storeId: 'staUmwelt' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
94 }); |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
95 Ext.create('Lada.store.StaVerwaltungseinheiten', { |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
96 storeId: 'staVerwaltungseinheiten' |
d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
97 }); |
2
570373979387
Added a simple panel to the application.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
0
diff
changeset
|
98 }, |
117
5ef91e9ac7b1
Clean up code and improve comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
110
diff
changeset
|
99 |
3
ac736eea9b30
Initialise the Proben controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
2
diff
changeset
|
100 // Define the controllers of the application. They will be initialized |
ac736eea9b30
Initialise the Proben controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
2
diff
changeset
|
101 // first before the application "launch" function is called. |
ac736eea9b30
Initialise the Proben controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
2
diff
changeset
|
102 controllers: [ |
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
120
diff
changeset
|
103 'Sql', |
122
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
104 'Proben', |
144
7b1140bd8b3d
Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
130
diff
changeset
|
105 'Zusatzwerte', |
149
26ac4c99f8c4
Added Orte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
144
diff
changeset
|
106 'Kommentare', |
206
32e1356cf391
Preload Mkommentar Controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
202
diff
changeset
|
107 'MKommentare', |
157
237a4efe715a
Enabled loading Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
149
diff
changeset
|
108 'Orte', |
190
781113839155
Fixed name of store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
157
diff
changeset
|
109 'Messungen', |
202
7a4d93c9b0ff
Added status controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
190
diff
changeset
|
110 'Messwert', |
7a4d93c9b0ff
Added status controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
190
diff
changeset
|
111 'Status' |
3
ac736eea9b30
Initialise the Proben controller.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
2
diff
changeset
|
112 ] |
0
1e257ec56220
Initial commit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
113 }); |
122
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
114 |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
115 Ext.data.writer.Json.override({ |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
116 getRecordData: function(record) { |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
117 if (this.writeEverything || record.writeEverything) { |
122
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
118 return record.getAllData(); |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
477
diff
changeset
|
119 } |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
120 return this.callOverridden(arguments); |
122
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
121 } |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
122 }); |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
123 |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
124 Ext.data.Model.addMembers({ |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
125 getAllData: function() { |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
126 var data1 = this.getData(); |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
127 var data2 = this.getAssociatedData(); |
122
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
128 var dataMerged = Ext.Object.merge(data1, data2); |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
129 return dataMerged; |
130
747d488b9203
Added function getEidi which returns the part of the id of an item which needs
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
122
diff
changeset
|
130 }, |
747d488b9203
Added function getEidi which returns the part of the id of an item which needs
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
122
diff
changeset
|
131 getEidi: function() { |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
496
diff
changeset
|
132 return '/' + this.getId(); |
122
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
133 } |
a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
134 }); |