comparison app/view/window/FilterManagement.js @ 1129:6f5549e50607

add messung tab to FilterManagement
author Michael Stanko <mstanko@bfs.de>
date Tue, 24 May 2016 15:55:05 +0200
parents af9879d72310
children
comparison
equal deleted inserted replaced
1128:9c8b5cbb929a 1129:6f5549e50607
33 text: i18n.getMsg('close'), 33 text: i18n.getMsg('close'),
34 scope: this, 34 scope: this,
35 handler: this.close 35 handler: this.close
36 }]; 36 }];
37 var probenstore = Ext.StoreManager.get('probequeries'); 37 var probenstore = Ext.StoreManager.get('probequeries');
38 var messungstore = Ext.StoreManager.get('messungqueries');
38 var messpstore = Ext.StoreManager.get('messprogrammqueries'); 39 var messpstore = Ext.StoreManager.get('messprogrammqueries');
39 var stammstore = Ext.StoreManager.get('stammdatenqueries'); 40 var stammstore = Ext.StoreManager.get('stammdatenqueries');
40 me.items = [{ 41 me.items = [{
41 xtype: 'tabpanel', 42 xtype: 'tabpanel',
42 items: [{ 43 items: [{
86 } 87 }
87 return columnString.join(', '); 88 return columnString.join(', ');
88 } 89 }
89 }] 90 }]
90 }, { 91 }, {
91 title: i18n.getMsg('querygrid.messprogramm.title'), 92 title: i18n.getMsg('querygrid.messung.title'),
92 xtype: 'grid', 93 xtype: 'grid',
93 viewConfig: { 94 viewConfig: {
94 markDirty: false, 95 markDirty: false,
95 getRowClass: function() { 96 getRowClass: function() {
96 return 'x-lada-multiline-grid'; 97 return 'x-lada-multiline-grid';
97 } 98 }
98 }, 99 },
99 store: messpstore, 100 store: messungstore,
100 columns: [{ 101 columns: [{
101 header: i18n.getMsg('querygrid.header.favorite'), 102 header: i18n.getMsg('querygrid.header.favorite'),
102 width: 48, 103 width: 48,
103 dataIndex: 'favorite', 104 dataIndex: 'favorite',
104 xtype: 'favcolumn' 105 xtype: 'favcolumn'
134 } 135 }
135 return columnString.join(', '); 136 return columnString.join(', ');
136 } 137 }
137 }] 138 }]
138 }, { 139 }, {
140 title: i18n.getMsg('querygrid.messprogramm.title'),
141 xtype: 'grid',
142 viewConfig: {
143 markDirty: false,
144 getRowClass: function() {
145 return 'x-lada-multiline-grid';
146 }
147 },
148 store: messpstore,
149 columns: [{
150 header: i18n.getMsg('querygrid.header.favorite'),
151 width: 48,
152 dataIndex: 'favorite',
153 xtype: 'favcolumn'
154 }, {
155 header: i18n.getMsg('querygrid.header.name'),
156 dataIndex: 'name',
157 width: 200
158 }, {
159 header: i18n.getMsg('querygrid.header.description'),
160 dataIndex: 'description',
161 minWidth: 200,
162 flex: 3
163 }, {
164 header: i18n.getMsg('querygrid.header.columns'),
165 dataIndex: 'results',
166 width: 250,
167 flex: 2,
168 renderer: function(value) {
169 var columnString = [];
170 for (var i = 0; i < value.length; i++) {
171 columnString.push(value[i].header);
172 }
173 return columnString.join(', ');
174 }
175 }, {
176 header: i18n.getMsg('querygrid.header.filters'),
177 dataIndex: 'filters',
178 width: 200,
179 renderer: function(value) {
180 var columnString = [];
181 for (var i = 0; i < value.length; i++) {
182 columnString.push(value[i].label);
183 }
184 return columnString.join(', ');
185 }
186 }]
187 }, {
139 title: i18n.getMsg('querygrid.stammdaten.title'), 188 title: i18n.getMsg('querygrid.stammdaten.title'),
140 xtype: 'grid', 189 xtype: 'grid',
141 viewConfig: { 190 viewConfig: {
142 markDirty: false, 191 markDirty: false,
143 getRowClass: function() { 192 getRowClass: function() {

http://lada.wald.intevation.org