annotate app.js @ 1403:0026b509a746

Backed out changeset b92aef19cff9. This change completely prevents creating a new Messung.
author Tom Gottfried <tom@intevation.de>
date Mon, 20 Mar 2017 13:21:22 +0100
parents cd51645b79d5
children a347cb704f93
rev   line source
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 /**
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2 * Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 * Software engineering by Intevation GmbH
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 *
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5 * This file is Free Software under the GNU GPL (v>=3)
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 * and comes with ABSOLUTELY NO WARRANTY! Check out
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 * the documentation coming with IMIS-Labordaten-Application for details.
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8 */
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 Ext.Loader.setConfig({
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 enabled: true,
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 paths: {
885
00e05e112c6a Moved Ext-Resources to another subdirectory
Dustin Demuth <dustin@intevation.de>
parents: 865
diff changeset
12 'Ext.i18n': 'resources/lib/ext/i18n/',
1287
e317ba349204 Added search for orte, verwaltungseinheiten and staaten.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1270
diff changeset
13 'Ext.ux.upload': 'resources/lib/ext/upload',
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1287
diff changeset
14 'Ext.ux.util': 'resources/lib/ext/util',
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1287
diff changeset
15 'Ext.ux.grid': 'resources/lib/ext/grid'
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 }
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 Ext.application({
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 // Name of the application. Do not change as this name is used in
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 // references!
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 name: 'Lada',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
24
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 // Setting up translations. This is done using a ext-plgin which can be
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26 // found on https://github.com/elmasse/Ext.i18n.Bundle
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27 requires: [
1051
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
28 'Lada.view.Viewport',
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29 'Lada.override.Table',
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
30 'Lada.override.RestProxy',
570
1f6a22107c8c Added override for RowEditor.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 558
diff changeset
31 'Lada.override.RowEditor',
679
60a3e9809ea4 moved code from translations_de.js into proper overrides
Dustin Demuth <dustin@intevation.de>
parents: 673
diff changeset
32 'Lada.override.i18n.DE',
60a3e9809ea4 moved code from translations_de.js into proper overrides
Dustin Demuth <dustin@intevation.de>
parents: 673
diff changeset
33 'Lada.override.JSON',
1111
a73726bba79c Use custom row expander in probe list grid to display messung grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1084
diff changeset
34 'Lada.override.RowExpander',
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1287
diff changeset
35 'Lada.override.StringFilter',
1111
a73726bba79c Use custom row expander in probe list grid to display messung grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1084
diff changeset
36 'Lada.view.plugin.GridRowExpander',
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 'Ext.i18n.Bundle',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38 'Ext.layout.container.Column',
1051
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
39 'Lada.store.Deskriptoren',
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
40 'Lada.store.Ortszuordnung',
1339
1a2cd9bef6d7 messprogramm zuordnung now functional
Maximilian Krambach <mkrambach@intevation.de>
parents: 1338
diff changeset
41 'Lada.store.OrtszuordnungMp',
1051
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
42 'Lada.store.Messungen',
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
43 'Lada.store.Zusatzwerte',
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
44 'Lada.store.Status',
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
45 'Lada.store.Messwerte',
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
46 'Lada.store.MKommentare',
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
47 'Lada.store.Datenbasis',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
48 'Lada.store.Messeinheiten',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
49 'Lada.store.Messgroessen',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50 'Lada.store.Messmethoden',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51 'Lada.store.Messstellen',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
52 'Lada.store.Netzbetreiber',
1004
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents: 999
diff changeset
53 'Lada.store.Orte',
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
54 'Lada.store.Pflichtmessgroessen',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
55 'Lada.store.Probenarten',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
56 'Lada.store.Probenzusaetze',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
57 'Lada.store.Staaten',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
58 'Lada.store.Umwelt',
963
6a6f2c6fe8ee More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
Dustin Demuth <dustin@intevation.de>
parents: 942
diff changeset
59 'Lada.store.Verwaltungseinheiten',
6a6f2c6fe8ee More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
Dustin Demuth <dustin@intevation.de>
parents: 942
diff changeset
60 'Lada.store.StatusWerte',
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
61 'Lada.store.StatusStufe',
1217
4270da0f7d3b Merged branch schema-update into default.
Tom Gottfried <tom@intevation.de>
parents: 1216
diff changeset
62 'Lada.store.StatusKombi',
1107
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
63 'Lada.store.Probenehmer',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
64 'Lada.store.DatensatzErzeuger',
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
65 'Lada.store.MessprogrammKategorie',
1157
056ffbc2790a Add more missing requirements.
Tom Gottfried <tom@intevation.de>
parents: 1152
diff changeset
66 'Lada.store.MessungQueries',
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
67 'Lada.store.Ktas',
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
68 'Lada.store.OrtsZusatz',
1338
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents: 1337
diff changeset
69 'Lada.store.OrtszuordnungTyp',
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
70 'Lada.store.OrtTyp',
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
71 'Lada.store.KoordinatenArt',
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
72 'Lada.model.MessstelleLabor'
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 ],
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
74 bundle: {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 bundle: 'Lada',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76 lang: 'de-DE',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77 path: 'resources/i18n',
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 noCache: true
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
79 },
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
80
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
81 // Setting this variable to true triggers loading the Viewport.js
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
82 // file which sets ob the viewport.
668
3e91716f5862 Create the viewport manually on application startup.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 608
diff changeset
83 //autoCreateViewport: true,
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
84
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
85 // Start the application.
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
86 launch: function() {
716
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
87 Lada.username = '';
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
88 Lada.userroles = '';
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
89 Lada.logintime = '';
798
ff4330d4aba1 Filter Messtellen in Probeform and Messprogramm
Dustin Demuth <dustin@intevation.de>
parents: 758
diff changeset
90 Lada.mst = [];
1075
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
91 Lada.netzbetreiber = [];
1376
cd51645b79d5 Advance version.
Tom Gottfried <tom@intevation.de>
parents: 1374
diff changeset
92 Lada.clientVersion = '2.6-SNAPSHOT';
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
93 Lada.serverVersion = '';
716
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
94
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
95 var queryString = document.location.href.split('?')[1];
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
96 if (queryString) {
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
97 Lada.openIDParams = queryString;
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
98 }
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
99 Ext.Ajax.request({
999
f73ca04d73a7 Refactored Server URL
Dustin Demuth <dustin@intevation.de>
parents: 984
diff changeset
100 url: 'lada-server/rest/user',
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
101 method: 'GET',
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
102 scope: this,
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
103 success: this.onLoginSuccess,
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
104 failure: this.onLoginFailure
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
105 });
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
106 },
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
107
669
8756f7e423fb Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 668
diff changeset
108 onLoginFailure: function(response) {
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
109 try {
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
110 var json = Ext.decode(response.responseText);
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
111 if (json) {
669
8756f7e423fb Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 668
diff changeset
112 if (json.message === '699') {
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
113 /* This is the unauthorized message with the authentication
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
114 * redirect in the data */
913
44d7822d0d55 Removed OpenId stuff.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 899
diff changeset
115 Ext.MessageBox.alert('Es konnte kein Benutzername gefunden werden!',
44d7822d0d55 Removed OpenId stuff.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 899
diff changeset
116 json.data);
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
117 return;
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
118 }
669
8756f7e423fb Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 668
diff changeset
119 if (json.message === '698') {
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
120 /* This is general authentication error */
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
121 Ext.MessageBox.alert('Kommunikation mit dem Login Server fehlgeschlagen',
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
122 json.data);
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
123 return;
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
124 }
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
125 }
669
8756f7e423fb Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 668
diff changeset
126 }
8756f7e423fb Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 668
diff changeset
127 catch (e) {
608
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
128 // This is likely a 404 or some unknown error. Show general error then.
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
129 }
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
130 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen',
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
131 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.');
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
132 },
7fd9350eacf9 Add client side openID authentication handling
Andre Heinecke <andre.heinecke@intevation.de>
parents: 607
diff changeset
133
715
605bc34b45a0 Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
Dustin Demuth <dustin@intevation.de>
parents: 679
diff changeset
134 onLoginSuccess: function(response) {
605bc34b45a0 Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
Dustin Demuth <dustin@intevation.de>
parents: 679
diff changeset
135 /* Parse Username and Timestamp */
605bc34b45a0 Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
Dustin Demuth <dustin@intevation.de>
parents: 679
diff changeset
136 var json = Ext.decode(response.responseText);
716
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
137 Lada.username = json.data.username;
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
138 Lada.userroles = json.data.roles;
b400629a2575 Added Logininformation to a Popup in Viewport
Dustin Demuth <dustin@intevation.de>
parents: 715
diff changeset
139 Lada.logintime = json.data.servertime;
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
140 Lada.mst = []; //Store Messstellen this user may select
1039
77e22ad5cc84 Use user 'funktionen' attribute to set read/write status for stammdaten.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1015
diff changeset
141 Lada.funktionen = json.data.funktionen;
1083
cbe5a19449a4 Code style etc.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1077
diff changeset
142 Lada.netzbetreiber = json.data.netzbetreiber;
809
3bc19188fc3a Added some todos, Enhanced Proge-Generation Success Msg.
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
143 //Lada.serverVersion
3bc19188fc3a Added some todos, Enhanced Proge-Generation Success Msg.
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
144 this.getServerVersion();
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
145 var mstLabor = json.data.messstelleLabor;
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
146 for (var i = 0; i < mstLabor.length; i++) {
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
147 Lada.mst.push(mstLabor[i].messstelle);
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
148 Lada.mst.push(mstLabor[i].labor);
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
149 }
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
150
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
151 var mstLaborStore = Ext.create('Ext.data.Store', {
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
152 storeId: 'messstellelabor',
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
153 model: 'Lada.model.MessstelleLabor'
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
154 });
715
605bc34b45a0 Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
Dustin Demuth <dustin@intevation.de>
parents: 679
diff changeset
155
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
156 Ext.create('Lada.store.Datenbasis', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
157 storeId: 'datenbasis'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
158 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
159 Ext.create('Lada.store.Messeinheiten', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
160 storeId: 'messeinheiten'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
161 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
162 Ext.create('Lada.store.Messgroessen', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
163 storeId: 'messgroessen'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
164 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
165 Ext.create('Lada.store.Messmethoden', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
166 storeId: 'messmethoden'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
167 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
168 Ext.create('Lada.store.Messstellen', {
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
169 storeId: 'messstellen',
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
170 listeners: {
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
171 load: {
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
172 fn: function(store, records) {
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
173 for (var i = 0; i < mstLabor.length; i++) {
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
174 var item = store.getById(mstLabor[i].messstelle);
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
175 var itemLabor = store.getById(mstLabor[i].labor);
1084
54457d3f7f63 Fixed type error if user role has no labor_mst_id.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1083
diff changeset
176 if (!itemLabor) {
54457d3f7f63 Fixed type error if user role has no labor_mst_id.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1083
diff changeset
177 continue;
54457d3f7f63 Fixed type error if user role has no labor_mst_id.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1083
diff changeset
178 }
1116
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
179 if ( item.get('messStelle') === itemLabor.get('messStelle') ) {
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
180 displayCombi = item.get('messStelle');
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
181 } else {
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
182 displayCombi = item.get('messStelle') + '/' + itemLabor.get('messStelle')
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
183 }
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
184 mstLaborStore.add({
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
185 id: i,
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
186 messStelle: mstLabor[i].messstelle,
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
187 netzbetreiberId: item.get('netzbetreiberId'),
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
188 laborMst: mstLabor[i].labor,
1116
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
189 displayCombi: displayCombi
1066
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
190 });
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
191 }
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
192 }
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
193 }
d198946e5540 Introduced laborMstId as new probe field.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1051
diff changeset
194 }
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
195 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
196 Ext.create('Lada.store.Netzbetreiber', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
197 storeId: 'netzbetreiber'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
198 });
1004
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents: 999
diff changeset
199 Ext.create('Lada.store.Orte', {
1021
1df6b6210b42 WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents: 1013
diff changeset
200 storeId: 'orte',
1df6b6210b42 WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents: 1013
diff changeset
201 defaultPageSize: 0
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
202 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
203 Ext.create('Lada.store.Pflichtmessgroessen', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
204 storeId: 'pflichtmessgroessen'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
205 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
206 Ext.create('Lada.store.Probenarten', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
207 storeId: 'probenarten'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
208 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
209 Ext.create('Lada.store.Probenzusaetze', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
210 storeId: 'probenzusaetze'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
211 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
212 Ext.create('Lada.store.Staaten', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
213 storeId: 'staaten'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
214 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
215 Ext.create('Lada.store.Umwelt', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
216 storeId: 'umwelt'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
217 });
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
218 Ext.create('Lada.store.Verwaltungseinheiten', {
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
219 storeId: 'verwaltungseinheiten'
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
220 });
1107
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
221 Ext.create('Lada.store.Probenehmer', {
1108
7baaf2cd3f57 Redesign in Messgrogrammform
Evi Huber <ehuber@bfs.de>
parents: 1107
diff changeset
222 storeId: 'probenehmer',
1116
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
223 autoLoad: true
1107
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
224 });
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
225 Ext.create('Lada.store.DatensatzErzeuger', {
1116
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
226 storeId: 'datensatzerzeuger',
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
227 autoLoad: true
1107
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
228 });
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
229 Ext.create('Lada.store.MessprogrammKategorie', {
1116
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
230 storeId: 'messprogrammkategorie',
92c0fa2f29b0 complete some comboboxes in probe form and messprogramm form
Michael Stanko <mstanko@bfs.de>
parents: 1113
diff changeset
231 autoLoad: true
1107
9bcd17f7a0ae change some fields in probeform to combobox
Michael Stanko <mstanko@bfs.de>
parents: 1084
diff changeset
232 });
963
6a6f2c6fe8ee More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
Dustin Demuth <dustin@intevation.de>
parents: 942
diff changeset
233 Ext.create('Lada.store.StatusWerte', {
965
a2c2039bb5d9 Disabled StatusGrid Edit when StatusEdit ist false, Load StatuswerteStore differently, removed a bunch of trailing commas
Dustin Demuth <dustin@intevation.de>
parents: 963
diff changeset
234 storeId: 'statuswerte',
a2c2039bb5d9 Disabled StatusGrid Edit when StatusEdit ist false, Load StatuswerteStore differently, removed a bunch of trailing commas
Dustin Demuth <dustin@intevation.de>
parents: 963
diff changeset
235 autoLoad: true
963
6a6f2c6fe8ee More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
Dustin Demuth <dustin@intevation.de>
parents: 942
diff changeset
236 });
6a6f2c6fe8ee More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
Dustin Demuth <dustin@intevation.de>
parents: 942
diff changeset
237 Ext.create('Lada.store.StatusStufe', {
965
a2c2039bb5d9 Disabled StatusGrid Edit when StatusEdit ist false, Load StatuswerteStore differently, removed a bunch of trailing commas
Dustin Demuth <dustin@intevation.de>
parents: 963
diff changeset
238 storeId: 'statusstufe',
a2c2039bb5d9 Disabled StatusGrid Edit when StatusEdit ist false, Load StatuswerteStore differently, removed a bunch of trailing commas
Dustin Demuth <dustin@intevation.de>
parents: 963
diff changeset
239 autoLoad: 'true'
963
6a6f2c6fe8ee More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
Dustin Demuth <dustin@intevation.de>
parents: 942
diff changeset
240 });
1217
4270da0f7d3b Merged branch schema-update into default.
Tom Gottfried <tom@intevation.de>
parents: 1216
diff changeset
241 Ext.create('Lada.store.StatusKombi', {
4270da0f7d3b Merged branch schema-update into default.
Tom Gottfried <tom@intevation.de>
parents: 1216
diff changeset
242 storeId: 'statuskombi',
4270da0f7d3b Merged branch schema-update into default.
Tom Gottfried <tom@intevation.de>
parents: 1216
diff changeset
243 autoLoad: 'true'
4270da0f7d3b Merged branch schema-update into default.
Tom Gottfried <tom@intevation.de>
parents: 1216
diff changeset
244 });
1015
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
245 Ext.create('Lada.store.ProbeQueries', {
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
246 storeId: 'probequeries',
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
247 autoLoad: 'true'
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
248 });
1077
2a5d42045c63 Display Messungen query mode and use the new messung list grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1075
diff changeset
249 Ext.create('Lada.store.MessungQueries', {
2a5d42045c63 Display Messungen query mode and use the new messung list grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1075
diff changeset
250 storeId: 'messungqueries',
2a5d42045c63 Display Messungen query mode and use the new messung list grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1075
diff changeset
251 autoLoad: 'true'
2a5d42045c63 Display Messungen query mode and use the new messung list grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1075
diff changeset
252 });
1015
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
253 Ext.create('Lada.store.MessprogrammQueries', {
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
254 storeId: 'messprogrammqueries',
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
255 autoLoad: 'true'
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
256 });
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
257 Ext.create('Lada.store.StammdatenQueries', {
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
258 storeId: 'stammdatenqueries',
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
259 autoLoad: 'true'
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
260 });
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
261 Ext.create('Lada.store.Ktas', {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
262 storeId: 'ktas',
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
263 autoLoad: 'true'
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
264 });
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
265 Ext.create('Lada.store.OrtsZusatz', {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
266 storeId: 'ortszusatz',
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
267 autoLoad: 'true'
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
268 });
1338
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents: 1337
diff changeset
269 Ext.create('Lada.store.OrtszuordnungTyp', {
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents: 1337
diff changeset
270 storeId: 'ortszuordnungtyp',
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents: 1337
diff changeset
271 autoLoad: 'true'
d2f06ce4d43a Use service and widget instead of local store for OrtszuordnungTyp.
Tom Gottfried <tom@intevation.de>
parents: 1337
diff changeset
272 });
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
273 Ext.create('Lada.store.OrtTyp', {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
274 storeId: 'orttyp',
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
275 autoLoad: 'true'
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
276 });
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
277 Ext.create('Lada.store.KoordinatenArt', {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
278 storeId: 'koordinatenart',
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
279 autoLoad: 'true'
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
280 });
1015
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
281
967
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
282 //A Store containing all MST a User is allowed to set.
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
283 Ext.create('Lada.store.Messstellen', {
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
284 storeId: 'messstellenFiltered',
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
285 filters: function(item) {
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
286 if (Ext.Array.contains(Lada.mst, item.get('id'))) {
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
287 return true;
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
288 }
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
289 return false;
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
290 }
50d7b6e17525 Filter the selectable Messtellen in the statusgrid
Dustin Demuth <dustin@intevation.de>
parents: 965
diff changeset
291 });
1075
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
292 Ext.create('Lada.store.Netzbetreiber', {
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
293 storeId: 'netzbetreiberFiltered',
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
294 filters: function(item) {
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
295 if (Ext.Array.contains(Lada.netzbetreiber, item.get('id'))) {
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
296 return true;
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
297 }
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
298 return false;
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
299 }
d23427c68285 Use filtered set of netzbetreiber for stammdatengrids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1072
diff changeset
300 });
1015
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
301 Ext.create('Lada.view.Viewport');
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
302 },
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
303
801
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
304 getServerVersion: function() {
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
305 var i18n = Lada.getApplication().bundle;
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
306 Ext.Ajax.request({
999
f73ca04d73a7 Refactored Server URL
Dustin Demuth <dustin@intevation.de>
parents: 984
diff changeset
307 url: 'lada-server/rest/version',
801
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
308 method: 'GET',
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
309 headers: {
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
310 'X-OPENID-PARAMS': Lada.openIDParams
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
311 },
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
312 success: function(response) {
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
313 var json = Ext.decode(response.responseText);
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
314 Lada.serverVersion = json.data;
801
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
315 },
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
316 failure: function(response) {
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
317 console.log('Error in retrieving the server version.'
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
318 + ' It might be lower than 2.0-beta2'
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
319 + ' Or something is broken...');
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
320 Lada.serverVersion = i18n.getMsg('err.msg.generic.title');
801
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
321 }
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
322 });
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
323 },
646779690e20 moved code to request the server version to app.js
Dustin Demuth <dustin@intevation.de>
parents: 798
diff changeset
324
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
325 // Define the controllers of the application. They will be initialized
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
326 // first before the application "launch" function is called.
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
327 controllers: [
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
328 'Lada.controller.Filter',
978
7f5219b8e1bf Renamed the ProbePlanungSwitcher to a more generic ModeSwitcher and refactored the application
Dustin Demuth <dustin@intevation.de>
parents: 976
diff changeset
329 'Lada.controller.ModeSwitcher',
1011
6afdbc8ee920 Tidied up code, fixed buttons in Messprogrammkategoriegrid by renaming the alias of the grid
Dustin Demuth <dustin@intevation.de>
parents: 1004
diff changeset
330 'Lada.controller.Map',
1049
1bd4c0709bd6 Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1021
diff changeset
331 'Lada.controller.Ort',
975
fb99332bb48e Severe changes concerning the Resultgrids.
Dustin Demuth <dustin@intevation.de>
parents: 967
diff changeset
332 'Lada.controller.grid.ProbeList',
1077
2a5d42045c63 Display Messungen query mode and use the new messung list grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1075
diff changeset
333 'Lada.controller.grid.MessungList',
975
fb99332bb48e Severe changes concerning the Resultgrids.
Dustin Demuth <dustin@intevation.de>
parents: 967
diff changeset
334 'Lada.controller.grid.MessprogrammeList',
984
b21421ba6917 added buttons for datensatzerzeuger, pobenehmer, added controllers
Dustin Demuth <dustin@intevation.de>
parents: 978
diff changeset
335 'Lada.controller.grid.Datensatzerzeuger',
b21421ba6917 added buttons for datensatzerzeuger, pobenehmer, added controllers
Dustin Demuth <dustin@intevation.de>
parents: 978
diff changeset
336 'Lada.controller.grid.Probenehmer',
587
cf328526b5bb Moved controller into subfolders.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 580
diff changeset
337 'Lada.controller.form.Probe',
611
8a156a7fbe67 added a controller for messungforms, modified testdatensatz-widget to load a local store, removed dirtychange listeners from probe-form
Dustin Demuth <dustin@intevation.de>
parents: 607
diff changeset
338 'Lada.controller.form.Messung',
1337
7194964183f4 Ortserstellung controller separated from form
Maximilian Krambach <mkrambach@intevation.de>
parents: 1317
diff changeset
339 'Lada.controller.form.Ortserstellung',
587
cf328526b5bb Moved controller into subfolders.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 580
diff changeset
340 'Lada.controller.grid.Probenzusatzwert',
cf328526b5bb Moved controller into subfolders.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 580
diff changeset
341 'Lada.controller.grid.PKommentar',
597
d2ce1c4c3aad Add messung kommentare to messung edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 595
diff changeset
342 'Lada.controller.grid.MKommentar',
588
e24bc8cf8e1d Renamed messungen grid and controller.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 587
diff changeset
343 'Lada.controller.grid.Messung',
595
a81dafe06d1d Add status to messung edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 590
diff changeset
344 'Lada.controller.grid.Messwert',
638
d21048cbdbb3 Added controllers for map and location form and handle new locations.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 611
diff changeset
345 'Lada.controller.grid.Status',
1051
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
346 'Lada.controller.grid.Ortszuordnung',
981339d774b8 merged stammdatengrids to default.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1039 1049
diff changeset
347 'Lada.controller.form.Ortszuordnung',
758
b2fcbdc4969d Filled MessmethodenGrid with life.
Dustin Demuth <dustin@intevation.de>
parents: 754
diff changeset
348 'Lada.controller.form.Messprogramm',
1072
78ef9b52510e Load messprogrammkategorie controller and handle requests correct.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1066
diff changeset
349 'Lada.controller.grid.MessprogrammKategorie',
1015
af9879d72310 Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1004
diff changeset
350 'Lada.controller.grid.Messmethode',
1287
e317ba349204 Added search for orte, verwaltungseinheiten and staaten.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1270
diff changeset
351 'Lada.controller.FilterManagement',
e317ba349204 Added search for orte, verwaltungseinheiten and staaten.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1270
diff changeset
352 'Ext.ux.util.AlwaysOnTop'
758
b2fcbdc4969d Filled MessmethodenGrid with life.
Dustin Demuth <dustin@intevation.de>
parents: 754
diff changeset
353 ]
548
d47ee7439f44 Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
354 });

http://lada.wald.intevation.org