annotate app/view/grid/Orte.js @ 1334:2c5d89886885

Fixed ortszuordnung window layout.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 03 Feb 2017 16:17:46 +0100
parents 35bbbfbe130c
children da98f0e7c288
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
6408811c5c41 Fix i18n-String.
Tom Gottfried <tom@intevation.de>
parents: 1130
diff changeset
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
5dfd5798cbcc i18n-wording
Tom Gottfried <tom@intevation.de>
parents: 1296
diff changeset
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) {
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
151 if (!value) {
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
152 return '';
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
153 }
1004
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
154 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
155 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
156 return record.get('bezeichnung');
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
157 },
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
158 editor: {
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
159 xtype: 'combobox',
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
160 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
161 displayField: 'bezeichnung',
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
162 valueField: 'id',
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
163 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
164 }
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT 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 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
166 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
167 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
168 width: 70,
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
169 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
170 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
171 },
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
172 renderer: function(value) {
1296
6043187c6e8d Show staat iso code in orte grids.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1293
diff changeset
173 if (value === undefined || value === '') {
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
174 return '';
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
175 }
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
176 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
177 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
178 return record.get('staatIso');
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
179 },
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
180 editor: {
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
181 xtype: 'combobox',
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
182 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
183 displayField: 'staatIso',
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
184 valueField: 'id',
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
185 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
186 }
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
187 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
188 header: i18n.getMsg('orte.kdaId'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
189 filter: {
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
190 type: 'string'
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
191 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
192 editor: {
1325
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
193 xtype: 'combobox',
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
194 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
195 displayField: 'koordinatenart',
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
196 valueField: 'id'
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
197 },
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
198 renderer: function(value) {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
199 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
200 return '';
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
201 }
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
202 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
203 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
204 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
205 },
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
206 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
207 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
208 header: i18n.getMsg('orte.ozId'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
209 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
210 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
211 },
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
212 editor: {
1325
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
213 xtype: 'combobox',
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
214 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
215 displayField: 'ozsId',
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
216 valueField: 'ozsId'
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
217 },
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
218 renderer: function(value) {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
219 if (value === undefined ||
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
220 value === null ||
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
221 value === ''
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
222 ) {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
223 return '';
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
224 }
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
225 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
226 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
227 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
228 },
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
229 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
230 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
231 header: i18n.getMsg('orte.ortTyp'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
232 filter: {
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
233 type: 'string'
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 editor: {
1325
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
236 xtype: 'combobox',
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
237 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
238 displayField: 'code',
35bbbfbe130c Changed ort grid editors from custom to default comboboxes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1317
diff changeset
239 valueField: 'id'
1317
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
240 },
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
241 renderer: function(value) {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
242 if (value === undefined ||
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
243 value === null ||
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
244 value === ''
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
245 ) {
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
246 return '';
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
247 }
46093e6f45d2 Use the new stammdaten to display and edit ort attributes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1308
diff changeset
248 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
249 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
250 return record.get('code');
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
251 },
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
252 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
253 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
254 header: i18n.getMsg('orte.mpArt'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
255 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
256 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
257 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
258 editor: {
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
259 xtype: 'textfield',
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
260 maxLength: 10
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
261 },
1004
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
262 dataIndex: '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
263 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
264 header: i18n.getMsg('orte.zone'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
265 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
266 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
267 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
268 editor: {
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
269 xtype: 'textfield',
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
270 maxLength: 1
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
271 },
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
272 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
273 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
274 header: i18n.getMsg('orte.sektor'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
275 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
276 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
277 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
278 editor: {
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
279 xtype: 'textfield',
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
280 maxLength: 2
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
281 },
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
282 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
283 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
284 header: i18n.getMsg('orte.zustaendigkeit'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
285 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
286 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
287 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
288 editor: {
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
289 xtype: 'textfield',
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
290 maxLength: 10
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
291 },
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
292 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
293 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
294 header: i18n.getMsg('orte.berichtstext'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
295 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
296 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
297 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
298 editor: {
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
299 xtype: 'textfield',
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
300 maxLength: 70
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: '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
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.kurztext'),
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: 15,
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: '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
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.langtext'),
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: {
1140
450368f67858 Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1130
diff changeset
320 xtype: 'textfield',
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
321 maxLength: 100,
1140
450368f67858 Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1130
diff changeset
322 allowBlank: false
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
323 },
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
324 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
325 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
326 header: i18n.getMsg('orte.unscharf'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
327 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
328 type: 'string'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
329 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
330 editor: {
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
331 xtype: 'textfield'
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: '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
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.hoeheLand'),
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: 'numeric'
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: 'numberfield'
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: '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
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.koordXExtern'),
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: '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
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.koordYExtern'),
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: 'string'
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: {
1140
450368f67858 Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1130
diff changeset
360 xtype: 'textfield',
1254
6321530e640e Make it a bit easier to create a valid new Ort.
Tom Gottfried <tom@intevation.de>
parents: 1141
diff changeset
361 maxLength: 22,
1140
450368f67858 Set requiered fields for stammdaten.ort grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1130
diff changeset
362 allowBlank: false
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
363 },
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
364 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
365 }, {
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
366 header: i18n.getMsg('orte.longitude'),
1308
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
367 filter: {
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
368 type: 'numeric'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
369 },
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
370 editor: {
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
371 xtype: 'numberfield'
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: '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
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.latitude'),
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: '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
383 }, {
1137
53d108efab0b Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents: 1136
diff changeset
384 header: i18n.getMsg('letzteAenderung'),
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: 'date'
6075731bc4f1 Added column filter to orte grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1297
diff changeset
387 },
1137
53d108efab0b Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents: 1136
diff changeset
388 xtype: 'datecolumn',
53d108efab0b Format letzteAenderung in Orte grid.
Tom Gottfried <tom@intevation.de>
parents: 1136
diff changeset
389 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
390 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
391 }];
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT 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 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
393 },
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
394
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
395 /**
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
396 * 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
397 */
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
398 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
399 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
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 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
402 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
403
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 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
405 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
406 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
407 }
1df6b6210b42 WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents: 1011
diff changeset
408
1df6b6210b42 WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
Dustin Demuth <dustin@intevation.de>
parents: 1011
diff changeset
409 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
410 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
411 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
412 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
413 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
414 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
415 }]);
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 }
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
417 }
1130
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
418
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
419 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
420 var panel = this.up('ortpanel');
e4952906634d Implemented insert, edit and delete for stammdaten.ort.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1081
diff changeset
421 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
422 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
423 }
1049
1bd4c0709bd6 Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1021
diff changeset
424 },
1bd4c0709bd6 Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1021
diff changeset
425
1bd4c0709bd6 Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1021
diff changeset
426 selectOrt: function(map, feature) {
1bd4c0709bd6 Working version of selectable 'ort' in map and grid.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1021
diff changeset
427 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
428 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
429 this.getSelectionModel().select(record);
1293
16a80ca16732 map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents: 1254
diff changeset
430 var win = this.up('ortszuordnungwindow');
16a80ca16732 map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents: 1254
diff changeset
431 if (win){
16a80ca16732 map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents: 1254
diff changeset
432 win.down('ortszuordnungform').setOrt(null, record);
16a80ca16732 map feature visibility, selection and grid layout
Maximilian Krambach <mkrambach@intevation.de>
parents: 1254
diff changeset
433 }
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
434 }
9ac03f461ab4 Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
435 });

http://lada.wald.intevation.org