Mercurial > lada > lada-client
annotate app/view/window/FilterManagement.js @ 1334:2c5d89886885
Fixed ortszuordnung window layout.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 16:17:46 +0100 |
parents | 6f5549e50607 |
children |
rev | line source |
---|---|
1015
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 /** |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 * |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.window.FilterManagement', { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.window.Window', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 alias: 'widget.filtermanagement', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 requires: [ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 'Lada.view.widget.base.FavColumn' |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 ], |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 layout: 'fit', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 width: window.innerWidth - 100, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 height: 500, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 closeAction: 'hide', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 /** |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 * @private |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 * Initialize the view. |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 */ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 initComponent: function() { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
30 var i18n = Lada.getApplication().bundle; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 var me = this; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 this.buttons = [{ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 text: i18n.getMsg('close'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 scope: this, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 handler: this.close |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 }]; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
37 var probenstore = Ext.StoreManager.get('probequeries'); |
1129
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
38 var messungstore = Ext.StoreManager.get('messungqueries'); |
1015
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 var messpstore = Ext.StoreManager.get('messprogrammqueries'); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 var stammstore = Ext.StoreManager.get('stammdatenqueries'); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
41 me.items = [{ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 xtype: 'tabpanel', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
43 items: [{ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 title: i18n.getMsg('querygrid.probe.title'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 xtype: 'grid', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 viewConfig: { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
47 markDirty: false, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
48 getRowClass: function() { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
49 return 'x-lada-multiline-grid'; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
50 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
51 }, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
52 store: probenstore, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
53 columns: [{ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
54 header: i18n.getMsg('querygrid.header.favorite'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
55 width: 48, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
56 dataIndex: 'favorite', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
57 xtype: 'favcolumn' |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
58 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
59 header: i18n.getMsg('querygrid.header.name'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
60 dataIndex: 'name', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
61 width: 200 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
62 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
63 header: i18n.getMsg('querygrid.header.description'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
64 dataIndex: 'description', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
65 minWidth: 200, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
66 flex: 3 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
67 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
68 header: i18n.getMsg('querygrid.header.columns'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
69 dataIndex: 'results', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
70 width: 250, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
71 flex: 2, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
72 renderer: function(value) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
73 var columnString = []; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
74 for (var i = 0; i < value.length; i++) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
75 columnString.push(value[i].header); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
76 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
77 return columnString.join(', '); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
78 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
79 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
80 header: i18n.getMsg('querygrid.header.filters'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
81 dataIndex: 'filters', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
82 width: 200, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
83 renderer: function(value) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
84 var columnString = []; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
85 for (var i = 0; i < value.length; i++) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
86 columnString.push(value[i].label); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
87 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
88 return columnString.join(', '); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
89 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
90 }] |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
91 }, { |
1129
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
92 title: i18n.getMsg('querygrid.messung.title'), |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
93 xtype: 'grid', |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
94 viewConfig: { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
95 markDirty: false, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
96 getRowClass: function() { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
97 return 'x-lada-multiline-grid'; |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
98 } |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
99 }, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
100 store: messungstore, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
101 columns: [{ |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
102 header: i18n.getMsg('querygrid.header.favorite'), |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
103 width: 48, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
104 dataIndex: 'favorite', |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
105 xtype: 'favcolumn' |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
106 }, { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
107 header: i18n.getMsg('querygrid.header.name'), |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
108 dataIndex: 'name', |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
109 width: 200 |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
110 }, { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
111 header: i18n.getMsg('querygrid.header.description'), |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
112 dataIndex: 'description', |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
113 minWidth: 200, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
114 flex: 3 |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
115 }, { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
116 header: i18n.getMsg('querygrid.header.columns'), |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
117 dataIndex: 'results', |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
118 width: 250, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
119 flex: 2, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
120 renderer: function(value) { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
121 var columnString = []; |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
122 for (var i = 0; i < value.length; i++) { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
123 columnString.push(value[i].header); |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
124 } |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
125 return columnString.join(', '); |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
126 } |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
127 }, { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
128 header: i18n.getMsg('querygrid.header.filters'), |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
129 dataIndex: 'filters', |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
130 width: 200, |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
131 renderer: function(value) { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
132 var columnString = []; |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
133 for (var i = 0; i < value.length; i++) { |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
134 columnString.push(value[i].label); |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
135 } |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
136 return columnString.join(', '); |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
137 } |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
138 }] |
6f5549e50607
add messung tab to FilterManagement
Michael Stanko <mstanko@bfs.de>
parents:
1015
diff
changeset
|
139 }, { |
1015
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
140 title: i18n.getMsg('querygrid.messprogramm.title'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
141 xtype: 'grid', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
142 viewConfig: { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
143 markDirty: false, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
144 getRowClass: function() { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
145 return 'x-lada-multiline-grid'; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
146 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
147 }, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
148 store: messpstore, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
149 columns: [{ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
150 header: i18n.getMsg('querygrid.header.favorite'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
151 width: 48, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
152 dataIndex: 'favorite', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
153 xtype: 'favcolumn' |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
154 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
155 header: i18n.getMsg('querygrid.header.name'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
156 dataIndex: 'name', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
157 width: 200 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
158 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
159 header: i18n.getMsg('querygrid.header.description'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
160 dataIndex: 'description', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
161 minWidth: 200, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
162 flex: 3 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
163 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
164 header: i18n.getMsg('querygrid.header.columns'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
165 dataIndex: 'results', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
166 width: 250, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
167 flex: 2, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
168 renderer: function(value) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
169 var columnString = []; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
170 for (var i = 0; i < value.length; i++) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
171 columnString.push(value[i].header); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
172 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
173 return columnString.join(', '); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
174 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
175 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
176 header: i18n.getMsg('querygrid.header.filters'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
177 dataIndex: 'filters', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
178 width: 200, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
179 renderer: function(value) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
180 var columnString = []; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
181 for (var i = 0; i < value.length; i++) { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
182 columnString.push(value[i].label); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
183 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
184 return columnString.join(', '); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
185 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
186 }] |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
187 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
188 title: i18n.getMsg('querygrid.stammdaten.title'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
189 xtype: 'grid', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
190 viewConfig: { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
191 markDirty: false, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
192 getRowClass: function() { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
193 return 'x-lada-multiline-grid'; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
194 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
195 }, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
196 store: stammstore, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
197 columns: [{ |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
198 header: i18n.getMsg('querygrid.header.favorite'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
199 width: 48, |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
200 dataIndex: 'favorite', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
201 xtype: 'favcolumn' |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
202 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
203 header: i18n.getMsg('querygrid.header.name'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
204 dataIndex: 'name', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
205 width: 200 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
206 }, { |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
207 header: i18n.getMsg('querygrid.header.description'), |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
208 dataIndex: 'description', |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
209 flex: 1 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
210 }] |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
211 }] |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
212 }]; |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
213 |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
214 this.callParent(arguments); |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
215 } |
af9879d72310
Updated UI, added window for filter management and added fieldset for query
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
216 }); |