Mercurial > lada > lada-client
annotate app/view/grid/Orte.js @ 1317:46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 13:17:54 +0100 |
parents | 6075731bc4f1 |
children | 35bbbfbe130c |
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: [ |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
17 'Ext.ux.grid.FiltersFeature', |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
18 'Lada.view.widget.KoordinatenArt', |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
19 'Lada.view.widget.Kta', |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
20 'Lada.view.widget.OrtsZusatz', |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
21 'Lada.view.widget.OrtTyp' |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
22 ], |
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
|
23 // 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
|
24 // 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
|
25 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
|
26 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
|
27 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
|
28 }, |
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 |
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 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
|
31 |
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
|
32 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
|
33 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
|
34 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
|
35 allowDeselect: true, |
1050
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
36 editableGrid: true, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
37 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
|
38 |
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
|
39 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
|
40 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
|
41 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
|
42 |
1050
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
43 if (this.editableGrid) { |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
44 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
|
45 clicksToMoveEditor: 1, |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
46 autoCancel: false, |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
47 disabled: false, |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
48 pluginId: 'rowedit' |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
49 }); |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
50 this.plugins = [this.rowEditing]; |
e0b5e64928c9
Use rowediting plugin for orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1049
diff
changeset
|
51 } |
1049
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
52 |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
53 filters = { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
54 ftype: 'filters', |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
55 // 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
|
56 encode: false, // json encode the filter query |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
57 local: true, // defaults to false (remote filtering) |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
58 |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
59 // 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
|
60 // added here. |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
61 filters: [{ |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
62 type: 'boolean', |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
63 dataIndex: 'visible' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
64 }] |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
65 }; |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
66 this.features = [filters]; |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
67 |
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
|
68 this.columns = [{ |
1081
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
69 xtype: 'actioncolumn', |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
70 text: 'RW', |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
71 dataIndex: 'readonly', |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
72 sortable: false, |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
73 width: 30, |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
74 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
|
75 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
|
76 return 'edit'; |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
77 } |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
78 return 'noedit'; |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
79 } |
5e9a674d7bb4
Added Icon-column to stammdaten grid showing RW-status.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1050
diff
changeset
|
80 }, { |
1135 | 81 header: i18n.getMsg('netzbetreiberId'), |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
82 renderer: function(value) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
83 var r = ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
84 if (!value || value === '') { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
85 r = 'Error'; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
86 } |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
87 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
|
88 var record = store.getById(value); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
89 if (record) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
90 r = record.get('netzbetreiber'); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
91 } |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
92 return r; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
93 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
94 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
95 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
96 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
|
97 displayField: 'netzbetreiber', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
98 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
99 allowBlank: false |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
100 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
101 dataIndex: 'netzbetreiberId' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
102 }, { |
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
|
103 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
|
104 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
105 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
106 maxLength: 10, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
107 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
108 }, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
109 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
110 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
111 }, |
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
|
112 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
|
113 }, { |
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
|
114 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
|
115 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
116 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
117 maxLength: 10 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
118 }, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
119 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
120 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
121 }, |
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
|
122 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
|
123 }, { |
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 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
|
125 editor: { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
126 xtype: 'kta' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
127 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
128 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
129 if (value === undefined || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
130 value === null || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
131 value === '' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
132 ) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
133 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
134 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
135 var store = Ext.data.StoreManager.get('ktas'); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
136 var record = store.getById(value); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
137 return record.get('code'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
138 }, |
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
|
139 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
|
140 }, { |
1297 | 141 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
|
142 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
|
143 width: 120, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
144 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
145 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
146 }, |
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
|
147 renderer: function(value) { |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
148 if (!value) { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
149 return ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
150 } |
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
|
151 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
|
152 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
|
153 return record.get('bezeichnung'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
154 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
155 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
156 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
157 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
|
158 displayField: 'bezeichnung', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
159 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
160 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
|
161 } |
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
|
162 }, { |
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
|
163 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
|
164 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
|
165 width: 70, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
166 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
167 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
168 }, |
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
|
169 renderer: function(value) { |
1296
6043187c6e8d
Show staat iso code in orte grids.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1293
diff
changeset
|
170 if (value === undefined || value === '') { |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
171 return ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
172 } |
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
|
173 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
|
174 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
|
175 return record.get('staatIso'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
176 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
177 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
178 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
179 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
|
180 displayField: 'staatIso', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
181 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
182 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
|
183 } |
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 }, { |
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 header: i18n.getMsg('orte.kdaId'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
186 filter: { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
187 type: 'string' |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
188 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
189 editor: { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
190 xtype: 'koordinatenart', |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
191 allowBlank: false |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
192 }, |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
193 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
194 if (value === undefined || value === '') { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
195 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
196 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
197 var kda = Ext.data.StoreManager.get('koordinatenart'); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
198 var record = kda.getById(value); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
199 return record.get('koordinatenart'); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
200 }, |
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
|
201 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
|
202 }, { |
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
|
203 header: i18n.getMsg('orte.ozId'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
204 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
205 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
206 }, |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
207 editor: { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
208 xtype: 'ortszusatz', |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
209 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
210 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
211 if (value === undefined || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
212 value === null || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
213 value === '' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
214 ) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
215 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
216 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
217 var oz = Ext.data.StoreManager.get('ortszusatz'); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
218 var record = oz.getById(value); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
219 return record.get('ozsId'); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
220 }, |
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
|
221 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
|
222 }, { |
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
|
223 header: i18n.getMsg('orte.ortTyp'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
224 filter: { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
225 type: 'string' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
226 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
227 editor: { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
228 xtype: 'orttyp', |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
229 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
230 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
231 if (value === undefined || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
232 value === null || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
233 value === '' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
234 ) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
235 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
236 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
237 var ot = Ext.data.StoreManager.get('orttyp'); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
238 var record = ot.getById(value); |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
239 return record.get('code'); |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
240 }, |
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
|
241 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
|
242 }, { |
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
|
243 header: i18n.getMsg('orte.mpArt'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
244 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
245 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
246 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
247 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
248 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
249 maxLength: 10 |
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: '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
|
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.zone'), |
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: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
258 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
259 maxLength: 1 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
260 }, |
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
|
261 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
|
262 }, { |
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 header: i18n.getMsg('orte.sektor'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
264 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
265 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
266 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
267 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
268 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
269 maxLength: 2 |
1130
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: '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
|
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.zustaendigkeit'), |
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: 'string' |
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: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
278 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
279 maxLength: 10 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
280 }, |
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
|
281 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
|
282 }, { |
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
|
283 header: i18n.getMsg('orte.berichtstext'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
284 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
285 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
286 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
287 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
288 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
289 maxLength: 70 |
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: '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
|
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.kurztext'), |
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: 15, |
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: '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
|
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.langtext'), |
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: 'string' |
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: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
309 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
310 maxLength: 100, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
311 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
312 }, |
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
|
313 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
|
314 }, { |
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
|
315 header: i18n.getMsg('orte.unscharf'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
316 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
317 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
318 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
319 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
320 xtype: 'textfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
321 }, |
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
|
322 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
|
323 }, { |
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
|
324 header: i18n.getMsg('orte.hoeheLand'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
325 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
326 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
327 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
328 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
329 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
330 }, |
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
|
331 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
|
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 header: i18n.getMsg('orte.koordXExtern'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
334 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
335 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
336 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
337 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
338 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
339 maxLength: 22, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
340 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
341 }, |
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
|
342 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
|
343 }, { |
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
|
344 header: i18n.getMsg('orte.koordYExtern'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
345 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
346 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
347 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
348 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
349 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
350 maxLength: 22, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
351 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
352 }, |
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
|
353 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
|
354 }, { |
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 header: i18n.getMsg('orte.longitude'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
356 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
357 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
358 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
359 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
360 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
361 }, |
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
|
362 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
|
363 }, { |
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
|
364 header: i18n.getMsg('orte.latitude'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
365 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
366 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
367 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
368 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
369 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
370 }, |
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
|
371 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
|
372 }, { |
1137
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
373 header: i18n.getMsg('letzteAenderung'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
374 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
375 type: 'date' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
376 }, |
1137
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
377 xtype: 'datecolumn', |
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
378 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
|
379 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
|
380 }]; |
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
|
381 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
|
382 }, |
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
|
383 |
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
|
384 /** |
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
|
385 * 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
|
386 */ |
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
|
387 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
|
388 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
|
389 |
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
|
390 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
|
391 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
|
392 |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
393 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
|
394 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
|
395 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
|
396 } |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
397 |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
398 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
|
399 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
|
400 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
|
401 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
|
402 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
|
403 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
|
404 }]); |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
405 } |
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
|
406 } |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
407 |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
408 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
|
409 var panel = this.up('ortpanel'); |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
410 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
|
411 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
|
412 } |
1049
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
413 }, |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
414 |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
415 selectOrt: function(map, feature) { |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
416 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
|
417 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
|
418 this.getSelectionModel().select(record); |
1293
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
419 var win = this.up('ortszuordnungwindow'); |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
420 if (win){ |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
421 win.down('ortszuordnungform').setOrt(null, record); |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
422 } |
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
|
423 } |
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
|
424 }); |