Mercurial > lada > lada-client
annotate app/view/grid/Orte.js @ 1311:2d92be45df9e
update the record according to form when sending similar Ort in Ortserstellung
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 09:35:30 +0100 |
parents | 6075731bc4f1 |
children | 46093e6f45d2 |
rev | line source |
---|---|
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:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
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:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
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:
diff
changeset
|
3 * |
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:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
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:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
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:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
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:
diff
changeset
|
7 */ |
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:
diff
changeset
|
8 |
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:
diff
changeset
|
9 /** |
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:
diff
changeset
|
10 * Grid to list Orte Stammdaten |
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:
diff
changeset
|
11 */ |
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:
diff
changeset
|
12 Ext.define('Lada.view.grid.Orte', { |
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:
diff
changeset
|
13 extend: 'Ext.grid.Panel', |
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:
diff
changeset
|
14 alias: 'widget.ortstammdatengrid', |
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:
diff
changeset
|
15 |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
16 requires: [ |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
17 'Ext.ux.grid.FiltersFeature' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
18 ], |
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:
diff
changeset
|
19 // minHeight and deferEmptyText are needed to be able to show the |
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:
diff
changeset
|
20 // emptyText message. |
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:
diff
changeset
|
21 minHeight: 110, |
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:
diff
changeset
|
22 viewConfig: { |
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:
diff
changeset
|
23 deferEmptyText: false |
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:
diff
changeset
|
24 }, |
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:
diff
changeset
|
25 |
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:
diff
changeset
|
26 recordId: null, |
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:
diff
changeset
|
27 |
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:
diff
changeset
|
28 warnings: null, |
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:
diff
changeset
|
29 errors: null, |
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:
diff
changeset
|
30 readOnly: true, |
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:
diff
changeset
|
31 allowDeselect: true, |
1050
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
32 editableGrid: true, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
33 features: [], |
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:
diff
changeset
|
34 |
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:
diff
changeset
|
35 initComponent: function() { |
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:
diff
changeset
|
36 var i18n = Lada.getApplication().bundle; |
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:
diff
changeset
|
37 this.emptyText = i18n.getMsg('orte.emptyGrid'); |
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:
diff
changeset
|
38 |
1050
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
39 if (this.editableGrid) { |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
40 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
41 clicksToMoveEditor: 1, |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
42 autoCancel: false, |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
43 disabled: false, |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
44 pluginId: 'rowedit' |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
45 }); |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
46 this.plugins = [this.rowEditing]; |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
47 } |
1049
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
48 |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
49 filters = { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
50 ftype: 'filters', |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
51 // encode and local configuration options defined previously for easier reuse |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
52 encode: false, // json encode the filter query |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
53 local: true, // defaults to false (remote filtering) |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
54 |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
55 // Filters are most naturally placed in the column definition, but can also be |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
56 // added here. |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
57 filters: [{ |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
58 type: 'boolean', |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
59 dataIndex: 'visible' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
60 }] |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
61 }; |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
62 this.features = [filters]; |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
63 |
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:
diff
changeset
|
64 this.columns = [{ |
1081
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
65 xtype: 'actioncolumn', |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
66 text: 'RW', |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
67 dataIndex: 'readonly', |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
68 sortable: false, |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
69 width: 30, |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
70 getClass: function (val, meta, rec) { |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
71 if (rec.get('readonly') === false) { |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
72 return 'edit'; |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
73 } |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
74 return 'noedit'; |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
75 } |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
76 }, { |
1135 | 77 header: i18n.getMsg('netzbetreiberId'), |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
78 renderer: function(value) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
79 var r = ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
80 if (!value || value === '') { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
81 r = 'Error'; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
82 } |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
83 var store = Ext.data.StoreManager.get('netzbetreiber'); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
84 var record = store.getById(value); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
85 if (record) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
86 r = record.get('netzbetreiber'); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
87 } |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
88 return r; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
89 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
90 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
91 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
92 store: Ext.data.StoreManager.get('netzbetreiberFiltered'), |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
93 displayField: 'netzbetreiber', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
94 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
95 allowBlank: false |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
96 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
97 dataIndex: 'netzbetreiberId' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
98 }, { |
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:
diff
changeset
|
99 header: i18n.getMsg('orte.ortId'), |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
100 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
101 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
102 maxLength: 10, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
103 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
104 }, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
105 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
106 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
107 }, |
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:
diff
changeset
|
108 dataIndex: 'ortId' |
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:
diff
changeset
|
109 }, { |
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:
diff
changeset
|
110 header: i18n.getMsg('orte.nutsCode'), |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
111 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
112 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
113 maxLength: 10 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
114 }, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
115 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
116 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
117 }, |
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:
diff
changeset
|
118 dataIndex: 'nutsCode' |
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:
diff
changeset
|
119 }, { |
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:
diff
changeset
|
120 header: i18n.getMsg('orte.anlageId'), |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
121 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
122 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
123 }, |
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:
diff
changeset
|
124 dataIndex: 'anlageId' |
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:
diff
changeset
|
125 }, { |
1297 | 126 header: i18n.getMsg('orte.verwaltungseinheit'), |
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:
diff
changeset
|
127 dataIndex: 'gemId', |
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:
diff
changeset
|
128 width: 120, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
129 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
130 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
131 }, |
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:
diff
changeset
|
132 renderer: function(value) { |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
133 if (!value) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
134 return ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
135 } |
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:
diff
changeset
|
136 var store = Ext.data.StoreManager.get('verwaltungseinheiten'); |
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:
diff
changeset
|
137 var record = store.getById(value); |
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:
diff
changeset
|
138 return record.get('bezeichnung'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
139 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
140 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
141 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
142 store: Ext.data.StoreManager.get('verwaltungseinheiten'), |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
143 displayField: 'bezeichnung', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
144 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
145 allowBlank: false |
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:
diff
changeset
|
146 } |
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:
diff
changeset
|
147 }, { |
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:
diff
changeset
|
148 header: i18n.getMsg('orte.staatId'), |
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:
diff
changeset
|
149 dataIndex: 'staatId', |
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:
diff
changeset
|
150 width: 70, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
151 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
152 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
153 }, |
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:
diff
changeset
|
154 renderer: function(value) { |
1296
6043187c6e8d
Show staat iso code in orte grids.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1293
diff
changeset
|
155 if (value === undefined || value === '') { |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
156 return ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
157 } |
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:
diff
changeset
|
158 var staaten = Ext.data.StoreManager.get('staaten'); |
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:
diff
changeset
|
159 var record = staaten.getById(value); |
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:
diff
changeset
|
160 return record.get('staatIso'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
161 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
162 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
163 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
164 store: Ext.data.StoreManager.get('staaten'), |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
165 displayField: 'staatIso', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
166 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
167 allowBlank: false |
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:
diff
changeset
|
168 } |
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:
diff
changeset
|
169 }, { |
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:
diff
changeset
|
170 header: i18n.getMsg('orte.kdaId'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
171 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
172 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
173 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
174 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
175 xtype: 'numberfield', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
176 allowBlank: false |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
177 }, |
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:
diff
changeset
|
178 dataIndex: 'kdaId' |
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:
diff
changeset
|
179 }, { |
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:
diff
changeset
|
180 header: i18n.getMsg('orte.ozId'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
181 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
182 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
183 }, |
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:
diff
changeset
|
184 dataIndex: 'ozId' |
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:
diff
changeset
|
185 }, { |
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:
diff
changeset
|
186 header: i18n.getMsg('orte.ortTyp'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
187 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
188 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
189 }, |
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:
diff
changeset
|
190 dataIndex: 'ortTyp' |
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:
diff
changeset
|
191 }, { |
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:
diff
changeset
|
192 header: i18n.getMsg('orte.mpArt'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
193 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
194 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
195 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
196 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
197 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
198 maxLength: 10 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
199 }, |
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:
diff
changeset
|
200 dataIndex: 'mpArt' |
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:
diff
changeset
|
201 }, { |
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:
diff
changeset
|
202 header: i18n.getMsg('orte.zone'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
203 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
204 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
205 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
206 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
207 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
208 maxLength: 1 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
209 }, |
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:
diff
changeset
|
210 dataIndex: 'zone' |
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:
diff
changeset
|
211 }, { |
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:
diff
changeset
|
212 header: i18n.getMsg('orte.sektor'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
213 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
214 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
215 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
216 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
217 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
218 maxLength: 2 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
219 }, |
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:
diff
changeset
|
220 dataIndex: 'sektor' |
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:
diff
changeset
|
221 }, { |
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:
diff
changeset
|
222 header: i18n.getMsg('orte.zustaendigkeit'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
223 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
224 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
225 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
226 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
227 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
228 maxLength: 10 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
229 }, |
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:
diff
changeset
|
230 dataIndex: 'zustaendigkeit' |
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:
diff
changeset
|
231 }, { |
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:
diff
changeset
|
232 header: i18n.getMsg('orte.berichtstext'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
233 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
234 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
235 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
236 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
237 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
238 maxLength: 70 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
239 }, |
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:
diff
changeset
|
240 dataIndex: 'berichtstext' |
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:
diff
changeset
|
241 }, { |
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:
diff
changeset
|
242 header: i18n.getMsg('orte.kurztext'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
243 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
244 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
245 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
246 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
247 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
248 maxLength: 15, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
249 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
250 }, |
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:
diff
changeset
|
251 dataIndex: 'kurztext' |
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:
diff
changeset
|
252 }, { |
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:
diff
changeset
|
253 header: i18n.getMsg('orte.langtext'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
254 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
255 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
256 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
257 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
258 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
259 maxLength: 100, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
260 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
261 }, |
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:
diff
changeset
|
262 dataIndex: 'langtext' |
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:
diff
changeset
|
263 }, { |
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:
diff
changeset
|
264 header: i18n.getMsg('orte.unscharf'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
265 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
266 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
267 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
268 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
269 xtype: 'textfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
270 }, |
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:
diff
changeset
|
271 dataIndex: 'unscharf' |
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:
diff
changeset
|
272 }, { |
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:
diff
changeset
|
273 header: i18n.getMsg('orte.hoeheLand'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
274 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
275 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
276 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
277 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
278 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
279 }, |
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:
diff
changeset
|
280 dataIndex: 'hoeheLand' |
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:
diff
changeset
|
281 }, { |
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:
diff
changeset
|
282 header: i18n.getMsg('orte.koordXExtern'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
283 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
284 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
285 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
286 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
287 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
288 maxLength: 22, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
289 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
290 }, |
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:
diff
changeset
|
291 dataIndex: 'koordXExtern' |
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:
diff
changeset
|
292 }, { |
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:
diff
changeset
|
293 header: i18n.getMsg('orte.koordYExtern'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
294 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
295 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
296 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
297 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
298 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
299 maxLength: 22, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
300 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
301 }, |
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:
diff
changeset
|
302 dataIndex: 'koordYExtern' |
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:
diff
changeset
|
303 }, { |
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:
diff
changeset
|
304 header: i18n.getMsg('orte.longitude'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
305 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
306 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
307 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
308 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
309 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
310 }, |
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:
diff
changeset
|
311 dataIndex: 'longitude' |
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:
diff
changeset
|
312 }, { |
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:
diff
changeset
|
313 header: i18n.getMsg('orte.latitude'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
314 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
315 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
316 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
317 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
318 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
319 }, |
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:
diff
changeset
|
320 dataIndex: 'latitude' |
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:
diff
changeset
|
321 }, { |
1137
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
322 header: i18n.getMsg('letzteAenderung'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
323 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
324 type: 'date' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
325 }, |
1137
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
326 xtype: 'datecolumn', |
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
327 format: 'd.m.Y H:i', |
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:
diff
changeset
|
328 dataIndex: 'letzteAenderung' |
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:
diff
changeset
|
329 }]; |
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:
diff
changeset
|
330 this.callParent(arguments); |
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:
diff
changeset
|
331 }, |
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:
diff
changeset
|
332 |
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:
diff
changeset
|
333 /** |
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:
diff
changeset
|
334 * This sets the Store of this Grid |
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:
diff
changeset
|
335 */ |
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:
diff
changeset
|
336 setStore: function(store){ |
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:
diff
changeset
|
337 var i18n = Lada.getApplication().bundle; |
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:
diff
changeset
|
338 |
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:
diff
changeset
|
339 if (store) { |
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:
diff
changeset
|
340 this.reconfigure(store); |
1021
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
341 |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
342 var ptbar = this.down('pagingtoolbar'); |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
343 if (ptbar) { |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
344 this.removeDocked(ptbar); |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
345 } |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
346 |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
347 if (store.pageSize > 0) { |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
348 this.addDocked([{ |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
349 xtype: 'pagingtoolbar', |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
350 dock: 'bottom', |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
351 store: store, |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
352 displayInfo: true |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
353 }]); |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
354 } |
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:
diff
changeset
|
355 } |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
356 |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
357 if (Ext.Array.contains(Lada.funktionen, 4)) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
358 var panel = this.up('ortpanel'); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
359 panel.down('button[action=add]').enable(); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
360 panel.down('button[action=addMap]').enable(); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
361 } |
1049
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
362 }, |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
363 |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
364 selectOrt: function(map, feature) { |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
365 var id = feature[0].data.id; |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
366 var record = this.store.getById(id); |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
367 this.getSelectionModel().select(record); |
1293
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
368 var win = this.up('ortszuordnungwindow'); |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
369 if (win){ |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
370 win.down('ortszuordnungform').setOrt(null, record); |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
371 } |
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:
diff
changeset
|
372 } |
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:
diff
changeset
|
373 }); |