Mercurial > lada > lada-client
annotate app/view/proben/Edit.js @ 58:26863a7af202
Added action attributes to the buttons in the toolbar of the kommentar list
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 29 May 2013 15:22:38 +0200 |
parents | 73bc17de6ff2 |
children | db26aeebe521 |
rev | line source |
---|---|
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.view.proben.Edit', { |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.window.Window', |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 alias: 'widget.probenedit', |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 title: 'Maske für §3-Proben', |
47
e6d5177a9f6f
Set size of the edit window relative to the available space in the browser.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
46
diff
changeset
|
6 // Make size of the dialog dependend of the available space. |
e6d5177a9f6f
Set size of the edit window relative to the available space in the browser.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
46
diff
changeset
|
7 // TODO: Handle resizing the browser window. |
e6d5177a9f6f
Set size of the edit window relative to the available space in the browser.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
46
diff
changeset
|
8 width: Ext.getBody().getViewSize().width - 30, |
e6d5177a9f6f
Set size of the edit window relative to the available space in the browser.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
46
diff
changeset
|
9 height: Ext.getBody().getViewSize().height - 30, |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 autoShow: true, |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
22
diff
changeset
|
11 autoScroll: true, |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
22
diff
changeset
|
12 modal: true, |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 |
40
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
38
diff
changeset
|
14 requires: [ |
42
5ed477590736
Added missiong code for uwb.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
15 'Lada.view.widgets.Uwb', |
41
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
40
diff
changeset
|
16 'Lada.view.widgets.Datenbasis', |
46
39f5f1529847
Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
45
diff
changeset
|
17 'Lada.view.widgets.Probenart', |
49
792c34b3f5a9
Added combobox for field "testdatensatz"
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
47
diff
changeset
|
18 'Lada.view.widgets.Betriebsart', |
53
73bc17de6ff2
Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
49
diff
changeset
|
19 'Lada.view.widgets.Testdatensatz', |
73bc17de6ff2
Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
49
diff
changeset
|
20 'Lada.view.kommentare.List' |
40
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
38
diff
changeset
|
21 ], |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
38
diff
changeset
|
22 |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 initComponent: function() { |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 this.items = [ |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 { |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
26 //Define the form |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 xtype: 'form', |
25
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
22
diff
changeset
|
28 bodyPadding: '10 10', |
f964a50bfe57
Restructured the application. Fixed layouts etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
22
diff
changeset
|
29 border: 0, |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 items: [ |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
31 // Probenangaben |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 { |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
33 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
34 title: 'Probenangaben', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
35 defaults: { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
36 labelWidth: 150 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
37 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
38 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
39 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
40 xtype: 'textfield', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
41 name: 'mstId', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
42 fieldLabel: 'Messstelle' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
43 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
44 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
45 xtype: 'textfield', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
46 name: 'hauptprobenNr', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
47 fieldLabel: 'Hauptprobennr.' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
48 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
49 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
50 xtype: 'textfield', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
51 name: 'probeId', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
52 fieldLabel: 'Probe-ID' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
53 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
54 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
55 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
56 title: 'Erweiterte Probenangaben', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
57 collapsible: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
58 collapsed: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
59 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
60 { |
41
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
40
diff
changeset
|
61 xtype: 'datenbasis', |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
40
diff
changeset
|
62 id: 'datenbasis', |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
40
diff
changeset
|
63 editable: false, |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
40
diff
changeset
|
64 name: 'datenbasisId', |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
40
diff
changeset
|
65 fieldLabel: 'Datenbasis' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
66 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
67 { |
46
39f5f1529847
Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
45
diff
changeset
|
68 xtype: 'betriebsart', |
39f5f1529847
Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
45
diff
changeset
|
69 name: 'baId', |
39f5f1529847
Added combotbox for Betriebsart.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
45
diff
changeset
|
70 fieldLabel: 'Betriebsart' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
71 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
72 { |
49
792c34b3f5a9
Added combobox for field "testdatensatz"
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
47
diff
changeset
|
73 xtype: 'testdatensatz', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
74 name: 'test', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
75 fieldLabel: 'Testdatensatz' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
76 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
77 { |
40
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
38
diff
changeset
|
78 xtype: 'probenart', |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
38
diff
changeset
|
79 id: 'probenart', |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
38
diff
changeset
|
80 editable: false, |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
81 name: 'probenartId', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
82 fieldLabel: 'Probenart' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
83 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
84 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
85 xtype: 'textfield', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
86 name: 'probenartId', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
87 fieldLabel: 'Probennehmer' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
88 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
89 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
90 xtype: 'textfield', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
91 name: 'x11', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
92 fieldLabel: 'Datensatzerzeuger' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
93 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
94 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
95 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
96 ] |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
97 }, |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
98 // Medium |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
99 { |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
100 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
101 title: 'Medium', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
102 defaults: { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
103 labelWidth: 150 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
104 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
105 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
106 { |
38
b1751458594f
Use combobox for Umweltdaten
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
25
diff
changeset
|
107 xtype: 'uwb', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
108 name: 'umwId', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
109 fieldLabel: 'Umweltbereich' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
110 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
111 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
112 xtype: 'textfield', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
113 name: 'media', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
114 fieldLabel: 'Medienbezeichnung' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
115 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
116 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
117 xtype: 'textfield', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
118 name: 'mediaDesk', |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
119 fieldLabel: 'Deskriptoren' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
120 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
121 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
122 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
123 title: 'Details Deskriptoren', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
124 collapsible: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
125 collapsed: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
126 defaultType: 'textfield', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
127 items: this.buildDescriptors() |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
128 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
129 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
130 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
131 // Zeit |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
132 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
133 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
134 title: 'Zeit', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
135 defaultType: 'datefield', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
136 defaults: { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
137 labelWidth: 150 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
138 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
139 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
140 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
141 fieldLabel: 'Probennahme Beginn', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
142 name: 'probeentnahmeBeginn' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
143 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
144 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
145 fieldLabel: 'Probennahme Ende', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
146 name: 'probeentnahmeEnde' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
147 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
148 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
149 fieldLabel: 'Sollzeit Von', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
150 name: 'solldatumBeginn' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
151 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
152 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
153 fieldLabel: 'Sollzeit Bis', |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
154 name: 'solldatumEnde' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
155 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
156 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
157 fieldLabel: 'Ursprungszeit', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
158 name: 'z5' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
159 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
160 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
161 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
162 // Ortsangaben |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
163 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
164 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
165 title: 'Ortsangaben', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
166 padding: '10 10', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
167 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
168 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
169 xtype: 'grid', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
170 dockedItems: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
171 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
172 xtype: 'toolbar', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
173 dock: 'top', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
174 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
175 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
176 text: 'Hinzufügen', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
177 icon: 'gfx/plus.gif' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
178 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
179 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
180 text: 'Löschen', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
181 icon: 'gfx/minus.gif' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
182 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
183 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
184 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
185 ], |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
186 columns: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
187 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
188 text: 'Typ' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
189 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
190 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
191 text: 'Staat' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
192 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
193 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
194 text: 'Gem-ID' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
195 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
196 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
197 text: 'Gemeindebezeichnung', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
198 flex: 1 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
199 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
200 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
201 text: 'Messpunkt', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
202 flex: 1 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
203 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
204 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
205 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
206 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
207 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
208 // Probenzusatzwerte |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
209 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
210 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
211 title: 'Probenzusatzwerte', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
212 collapsible: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
213 collapsed: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
214 padding: '10 10', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
215 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
216 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
217 xtype: 'grid', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
218 dockedItems: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
219 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
220 xtype: 'toolbar', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
221 dock: 'top', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
222 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
223 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
224 text: 'Hinzufügen', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
225 icon: 'gfx/plus.gif' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
226 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
227 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
228 text: 'Löschen', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
229 icon: 'gfx/minus.gif' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
230 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
231 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
232 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
233 ], |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
234 columns: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
235 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
236 text: 'PZW-ID' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
237 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
238 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
239 text: 'PZW-Größe' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
240 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
241 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
242 text: '< NWG' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
243 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
244 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
245 text: '< PZW' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
246 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
247 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
248 text: 'rel. Unsich.[%]' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
249 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
250 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
251 text: 'Maßeinheit', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
252 flex: 1 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
253 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
254 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
255 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
256 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
257 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
258 // Probenkommentar |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
259 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
260 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
261 title: 'Probenkommentare', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
262 collapsible: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
263 collapsed: true, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
264 padding: '10 10', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
265 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
266 { |
53
73bc17de6ff2
Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
49
diff
changeset
|
267 xtype: 'kommentarelist' |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
268 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
269 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
270 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
271 // Messungsangaben |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
272 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
273 xtype: 'fieldset', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
274 title: 'Messungsangaben', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
275 padding: '10 10', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
276 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
277 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
278 xtype: 'grid', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
279 dockedItems: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
280 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
281 xtype: 'toolbar', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
282 dock: 'top', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
283 items: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
284 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
285 text: 'Hinzufügen', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
286 icon: 'gfx/plus.gif' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
287 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
288 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
289 text: 'Löschen', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
290 icon: 'gfx/minus.gif' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
291 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
292 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
293 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
294 ], |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
295 columns: [ |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
296 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
297 text: 'Mess.ID', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
298 width: 50 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
299 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
300 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
301 text: 'NPR-Nr.', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
302 width: 50 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
303 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
304 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
305 text: 'MMT', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
306 width: 50 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
307 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
308 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
309 text: 'Messzeit' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
310 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
311 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
312 text: 'Status' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
313 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
314 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
315 text: 'OK-Flag' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
316 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
317 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
318 text: 'Anzahl Nuklide' |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
319 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
320 { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
321 text: 'Anzahl Kommentare', |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
322 flex: 1 |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
323 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
324 ] |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
325 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
326 ] |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
327 } |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
328 ] |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
329 } |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
330 ]; |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
331 |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
332 this.buttons = [ |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
333 { |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
334 text: 'Speichern', |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
335 action: 'save' |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
336 }, |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
337 { |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
338 text: 'Verwerfen', |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
339 scope: this, |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
340 handler: this.close |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
341 } |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
342 ]; |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
343 this.callParent(arguments); |
19
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
344 }, |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
345 buildDescriptors: function() { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
346 var fields = new Array(); |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
347 for ($i=0; $i<12; $i++) { |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
348 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
349 } |
a05625ae08b1
Added more fields to the Edit-Dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
18
diff
changeset
|
350 return fields; |
43
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
351 }, |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
352 listeners: { |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
353 afterrender: function() { |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
354 // FIXME: This does not work! I do not know how to set the correct |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
355 // value in the combobox based on the model value. |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
356 // Will iterate over defined comboboxes and set the value |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
357 var combos = ['probenart', 'datenbasis']; |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
358 for (var i = combos.length - 1; i >= 0; i--){ |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
359 console.log('Searching for ' + combos[i]); |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
360 var element = Ext.getCmp(combos[i]); |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
361 // Statically set to 2. Must be the value from the model. |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
362 element.setValue(2); |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
363 } |
9176ad09a4f1
Added testfunction (not working) to initialize the comboboxes with a given value
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
42
diff
changeset
|
364 } |
18
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
365 } |
9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
366 }); |
22
0a4674f17bcb
Added more fields to the overview and set correct reference in on the edit
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
19
diff
changeset
|
367 |