Mercurial > lada > lada-client
annotate app/view/grid/Orte.js @ 1368:75b1b0d7dece
removed unused legacy code
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Wed, 08 Feb 2017 16:33:12 +0100 |
parents | 993e542796fd |
children | 1cc11bada44e |
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: { |
1325
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
126 xtype: 'combobox', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
127 store: Ext.data.StoreManager.get('ktas'), |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
128 displayField: 'code', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
129 valueField: 'id' |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
130 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
131 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
132 if (value === undefined || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
133 value === null || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
134 value === '' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
135 ) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
136 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
137 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
138 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
|
139 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
|
140 return record.get('code'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
141 }, |
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: '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
|
143 }, { |
1297 | 144 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
|
145 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
|
146 width: 120, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
147 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
148 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
149 }, |
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
|
150 renderer: function(value) { |
1345
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
151 if (value === undefined || |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
152 value === null || |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
153 value === '' |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
154 ) { |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
155 return ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
156 } |
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
|
157 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
|
158 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
|
159 return record.get('bezeichnung'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
160 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
161 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
162 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
163 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
|
164 displayField: 'bezeichnung', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
165 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
166 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
|
167 } |
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 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
|
170 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
|
171 width: 70, |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
172 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
173 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
174 }, |
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
|
175 renderer: function(value) { |
1345
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
176 if (value === undefined || |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
177 value === null || |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
178 value === '' |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
179 ) { |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
180 return ''; |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
181 } |
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
|
182 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
|
183 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
|
184 return record.get('staatIso'); |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
185 }, |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
186 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
187 xtype: 'combobox', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
188 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
|
189 displayField: 'staatIso', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
190 valueField: 'id', |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
191 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
|
192 } |
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
|
193 }, { |
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
|
194 header: i18n.getMsg('orte.kdaId'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
195 filter: { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
196 type: 'string' |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
197 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
198 editor: { |
1325
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
199 xtype: 'combobox', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
200 store: Ext.data.StoreManager.get('koordinatenart'), |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
201 displayField: 'koordinatenart', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
202 valueField: 'id' |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
203 }, |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
204 renderer: function(value) { |
1345
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
205 if (value === undefined || |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
206 value === null || |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
207 value === '' |
da98f0e7c288
Check for empty values in ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1325
diff
changeset
|
208 ) { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
209 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
210 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
211 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
|
212 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
|
213 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
|
214 }, |
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
|
215 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
|
216 }, { |
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
|
217 header: i18n.getMsg('orte.ozId'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
218 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
219 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
220 }, |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
221 editor: { |
1325
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
222 xtype: 'combobox', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
223 store: Ext.data.StoreManager.get('ortszusatz'), |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
224 displayField: 'ozsId', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
225 valueField: 'ozsId' |
1317
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 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
228 if (value === undefined || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
229 value === null || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
230 value === '' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
231 ) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
232 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
233 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
234 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
|
235 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
|
236 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
|
237 }, |
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
|
238 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
|
239 }, { |
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 header: i18n.getMsg('orte.ortTyp'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
241 filter: { |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
242 type: 'string' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
243 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
244 editor: { |
1325
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
245 xtype: 'combobox', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
246 store: Ext.data.StoreManager.get('orttyp'), |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
247 displayField: 'code', |
35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1317
diff
changeset
|
248 valueField: 'id' |
1317
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
249 }, |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
250 renderer: function(value) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
251 if (value === undefined || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
252 value === null || |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
253 value === '' |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
254 ) { |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
255 return ''; |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
256 } |
46093e6f45d2
Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1308
diff
changeset
|
257 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
|
258 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
|
259 return record.get('code'); |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
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: '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
|
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.mpArt'), |
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: 10 |
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: '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
|
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.zone'), |
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: 1 |
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: '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
|
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.sektor'), |
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: 2 |
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: '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
|
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.zustaendigkeit'), |
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: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
298 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
299 maxLength: 10 |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
300 }, |
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
|
301 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
|
302 }, { |
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 header: i18n.getMsg('orte.berichtstext'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
304 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
305 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
306 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
307 editor: { |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
308 xtype: 'textfield', |
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
309 maxLength: 70 |
1130
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: '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
|
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.kurztext'), |
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: 'string' |
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: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
318 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
319 maxLength: 15, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
320 allowBlank: false |
1130
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: '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
|
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.langtext'), |
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: 'string' |
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: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
329 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
330 maxLength: 100, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
331 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
332 }, |
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
|
333 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
|
334 }, { |
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 header: i18n.getMsg('orte.unscharf'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
336 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
337 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
338 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
339 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
340 xtype: 'textfield' |
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: '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
|
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.hoeheLand'), |
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: 'numeric' |
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: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
349 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
350 }, |
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
|
351 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
|
352 }, { |
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 header: i18n.getMsg('orte.koordXExtern'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
354 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
355 type: 'string' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
356 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
357 editor: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
358 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
359 maxLength: 22, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
360 allowBlank: false |
1130
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: '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
|
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.koordYExtern'), |
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: 'string' |
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: { |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
369 xtype: 'textfield', |
1254
6321530e640e
Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents:
1141
diff
changeset
|
370 maxLength: 22, |
1140
450368f67858
Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1130
diff
changeset
|
371 allowBlank: false |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
372 }, |
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
|
373 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
|
374 }, { |
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
|
375 header: i18n.getMsg('orte.longitude'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
376 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
377 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
378 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
379 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
380 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
381 }, |
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
|
382 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
|
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 header: i18n.getMsg('orte.latitude'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
385 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
386 type: 'numeric' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
387 }, |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
388 editor: { |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
389 xtype: 'numberfield' |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
390 }, |
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
|
391 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
|
392 }, { |
1137
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
393 header: i18n.getMsg('letzteAenderung'), |
1308
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
394 filter: { |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
395 type: 'date' |
6075731bc4f1
Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1297
diff
changeset
|
396 }, |
1137
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
397 xtype: 'datecolumn', |
53d108efab0b
Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents:
1136
diff
changeset
|
398 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
|
399 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
|
400 }]; |
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
|
401 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
|
402 }, |
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
|
403 |
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
|
404 /** |
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
|
405 * 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
|
406 */ |
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
|
407 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
|
408 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
|
409 |
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
|
410 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
|
411 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
|
412 |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
413 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
|
414 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
|
415 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
|
416 } |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
417 |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
418 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
|
419 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
|
420 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
|
421 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
|
422 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
|
423 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
|
424 }]); |
1df6b6210b42
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents:
1011
diff
changeset
|
425 } |
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
|
426 } |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
427 |
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
428 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
|
429 var panel = this.up('ortpanel'); |
1366
993e542796fd
Fixed type error in ortszuordnung when user has 'funktion = 4'
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1345
diff
changeset
|
430 // We are not in stammdaten editor. |
993e542796fd
Fixed type error in ortszuordnung when user has 'funktion = 4'
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1345
diff
changeset
|
431 if (!panel) { |
993e542796fd
Fixed type error in ortszuordnung when user has 'funktion = 4'
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1345
diff
changeset
|
432 return; |
993e542796fd
Fixed type error in ortszuordnung when user has 'funktion = 4'
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1345
diff
changeset
|
433 } |
1130
e4952906634d
Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1081
diff
changeset
|
434 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
|
435 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
|
436 } |
1049
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
437 }, |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
438 |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
439 selectOrt: function(map, feature) { |
1bd4c0709bd6
Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
1021
diff
changeset
|
440 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
|
441 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
|
442 this.getSelectionModel().select(record); |
1293
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
443 var win = this.up('ortszuordnungwindow'); |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
444 if (win){ |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
445 win.down('ortszuordnungform').setOrt(null, record); |
16a80ca16732
map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents:
1254
diff
changeset
|
446 } |
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
|
447 } |
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
|
448 }); |