annotate app/view/Viewport.js @ 180:133df8f75a12

Added missing file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 04 Jul 2013 12:21:51 +0200
parents 1a11ae666f11
children cfa4ed3b62b5
rev   line source
12
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.view.Viewport' ,{
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.container.Viewport',
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 requires: [
28
4d60b9ebce15 Renamed sql modul into search. Further display The query selection as Combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 25
diff changeset
4 'Lada.view.search.List',
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
5 'Lada.view.search.Query1',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
6 'Lada.view.search.Query2',
120
19eab475bbe5 Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 39
diff changeset
7 'Lada.view.proben.List'
12
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 ],
173
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
9
12
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 initComponent: function() {
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 console.log('Setting up Viewport');
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
12 //this.initSearch();
173
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
13
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
14 // Development related:
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
15 // Disable "initSearch" call and enable one of the following init
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
16 // methods to get a dialog directly without the need to click through
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
17 // the whole application.
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
18 this.initMessung();
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
19 //this.initOrt();
173
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
20
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
21 this.callParent(arguments);
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
22 },
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
23 initMesswert: function() {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
24 var store = Ext.getStore('Messwerte');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
25 store.load({
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
26 params: {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
27 probeId: "000007575853X",
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
28 messungsId: "1"
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
29 }
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
30 });
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
31 },
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
32 initOrt: function() {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
33 var ort = Ext.create('Lada.model.Ort');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
34 var win = Ext.create('Lada.view.orte.Create', {model: ort});
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
35 },
173
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
36 initMessung: function() {
180
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
37 var store = Ext.getStore('Messungen');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
38 var kstore = Ext.getStore('MKommentare');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
39 probeId = "000007578314X";
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
40 store.load({
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
41 params: {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
42 probeId: probeId
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
43 },
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
44 callback: function () {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
45 console.log(store);
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
46 var messung = store.data.items[0];
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
47 console.log(store.data.items[0]);
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
48 kstore.load({
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
49 params: {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
50 probeId: probeId,
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
51 messungsId: messung.get('messungsId')
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
52 },
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
53 callback: function() {
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
54 console.log('Creating Messung window');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
55 //var messung = Ext.create('Lada.model.Messung');
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
56 var win = Ext.create('Lada.view.messungen.Create', {model: messung});
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
57 }
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
58 });
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
59 }
133df8f75a12 Added missing file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 173
diff changeset
60 });
173
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
61 },
1a11ae666f11 Added options to open dialogs directly without the need to click through the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 148
diff changeset
62 initSearch: function() {
12
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
63 this.items = {
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
64 xtype: 'panel',
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
65 title: '<center>Probenauswahlmaske</center>',
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
66 bodyPadding: '10 10',
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
67 items: [
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
68 // Auswahl einer Abfrage.
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
69 {
28
4d60b9ebce15 Renamed sql modul into search. Further display The query selection as Combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 25
diff changeset
70 xtype: 'queryselector',
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
71 margin: '0 0 10 0'
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
72 },
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
73 // Variables settings for the current selected sql statement.
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
74 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
75 id: 'query1',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
76 xtype: 'query1',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
77 hidden: true
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
78 },
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
79 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
80 id: 'query2',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
81 xtype: 'query2',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
82 hidden: true
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
83
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
84 },
120
19eab475bbe5 Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 39
diff changeset
85 // Buttons to trigger the search.
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
86 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
87 id: 'SearchBtnPanel',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
88 xtype: 'panel',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
89 border: false,
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
90 margin: '0 0 10 0',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
91 items: [
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
92 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
93 id: 'SearchBtn',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
94 text: 'Suchen',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
95 xtype: 'button',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
96 margin: '0 10 0 0'
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
97 },
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
98 {
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
99 id: 'ResetBtn',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
100 text: 'Zurücksetzen',
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
101 xtype: 'button'
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
102 }
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
103 ],
148
ed7fb4fa32dc Do not hide search buttons and the resultlist on initial load.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 120
diff changeset
104 hidden: false
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
105
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
106 },
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
107 // Resultlist for the query.
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
108 {
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
109 id: 'result',
31
897e3100c6da Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 28
diff changeset
110 xtype: 'probenlist',
148
ed7fb4fa32dc Do not hide search buttons and the resultlist on initial load.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 120
diff changeset
111 hidden: false
25
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
112 }
f964a50bfe57 Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 12
diff changeset
113 ]
12
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
114 };
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
115 }
cdcaf38eab45 Added Viewport class which should be used to setup the viewport. Currently not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
116 });

http://lada.wald.intevation.org