annotate app/controller/Messungen.js @ 281:12ef979e73ce

Partially fixed issue55: Ignore the "fertig" field form when setting the form into readonly state. TODO: Only ignore the field if the current user is allowed to edit the messung.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 08 Aug 2013 11:13:44 +0200
parents f60472df54e3
children 1bda6420c87c
rev   line source
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.controller.Messungen', {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.app.Controller',
172
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 168
diff changeset
3 views: [
232
6ac95f587e10 Used new Editdialog and set the form readonly if the parent probe is readonly.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 229
diff changeset
4 'messungen.Create',
6ac95f587e10 Used new Editdialog and set the form readonly if the parent probe is readonly.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 229
diff changeset
5 'messungen.Edit'
172
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 168
diff changeset
6 ],
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 stores: [
229
80df1451b4a9 Set messung readonly if parent probe is readonly
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 224
diff changeset
8 'Proben',
163
15318541e568 Added MKommentare store. Some cleanup.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 157
diff changeset
9 'Messungen',
168
79a9c1a83305 Added Messwertestore to stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 163
diff changeset
10 'Messwerte',
79a9c1a83305 Added Messwertestore to stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 163
diff changeset
11 'MKommentare',
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 172
diff changeset
12 'Status',
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 172
diff changeset
13 'Messgroessen'
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 ],
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 init: function() {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 console.log('Initialising the Messungen controller');
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 this.control({
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 // CSS like selector to select element in the viewpzusatzwert. See
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 // ComponentQuery documentation for more details.
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 'messungenlist': {
193
93de61af9b9e Renamed function names to Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
21 itemdblclick: this.editMessung
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 'messungenlist toolbar button[action=add]': {
193
93de61af9b9e Renamed function names to Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
24 click: this.addMessung
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 'messungenlist toolbar button[action=delete]': {
193
93de61af9b9e Renamed function names to Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
27 click: this.deleteMessung
93de61af9b9e Renamed function names to Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
28 },
93de61af9b9e Renamed function names to Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
29 'messungencreate button[action=save]': {
93de61af9b9e Renamed function names to Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 181
diff changeset
30 click: this.saveMessung
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 },
233
f60472df54e3 Added Listener for save event in edit dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 232
diff changeset
32 'messungenedit button[action=save]': {
f60472df54e3 Added Listener for save event in edit dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 232
diff changeset
33 click: this.saveMessung
f60472df54e3 Added Listener for save event in edit dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 232
diff changeset
34 },
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 'messungencreate form': {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 savesuccess: this.createSuccess,
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 savefailure: this.createFailure
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 'messungenedit form': {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 savesuccess: this.editSuccess,
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 savefailure: this.editFailure
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43 });
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
44 },
194
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
45 saveMessung: function(button) {
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
46 console.log('Saving new Messung for Probe ' + button.probeId);
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
47 var form = button.up('window').down('form');
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
48 form.commit();
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
49 },
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
50 addMessung: function(button) {
172
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 168
diff changeset
51 console.log('Adding new Messung for Probe ' + button.probeId);
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 168
diff changeset
52 var messung = Ext.create('Lada.model.Messung');
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 168
diff changeset
53 messung.set('probeId', button.probeId);
cfa0cc437781 Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 168
diff changeset
54 var view = Ext.widget('messungencreate', {model: messung});
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
55 },
194
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
56 editMessung: function(grid, record) {
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
57 console.log('Editing Messung');
195
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
58 var kstore = this.getMKommentareStore();
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
59 kstore.load({
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
60 params: {
224
5e056c5edf9a Fixed loading stores when editing Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 218
diff changeset
61 probeId: record.get('probeId'),
195
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
62 messungsId: record.get('messungsId')
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
63 }
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
64 });
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
65 var sstore = this.getStatusStore();
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
66 sstore.load({
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
67 params: {
224
5e056c5edf9a Fixed loading stores when editing Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 218
diff changeset
68 probeId: record.get('probeId'),
195
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
69 messungsId: record.get('messungsId')
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
70 }
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
71 });
224
5e056c5edf9a Fixed loading stores when editing Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 218
diff changeset
72 var mstore = this.getMesswerteStore();
195
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
73 mstore.load({
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
74 params: {
224
5e056c5edf9a Fixed loading stores when editing Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 218
diff changeset
75 probeId: record.get('probeId'),
195
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
76 messungsId: record.get('messungsId')
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
77 }
01021f00ce6a Load kommentare, status and messwerte when editing probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 194
diff changeset
78 });
229
80df1451b4a9 Set messung readonly if parent probe is readonly
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 224
diff changeset
79 var probe = this.getProbenStore().getById(record.get('probeId'));
232
6ac95f587e10 Used new Editdialog and set the form readonly if the parent probe is readonly.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 229
diff changeset
80 var view = Ext.widget('messungenedit', {model: record});
6ac95f587e10 Used new Editdialog and set the form readonly if the parent probe is readonly.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 229
diff changeset
81 if (probe.get('readonly') === true) {
6ac95f587e10 Used new Editdialog and set the form readonly if the parent probe is readonly.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 229
diff changeset
82 var form = view.down('form');
281
12ef979e73ce Partially fixed issue55: Ignore the "fertig" field form when setting the form
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 233
diff changeset
83 // TODO: Field "fertig" must be editable (issue51). So we need to remove the
12ef979e73ce Partially fixed issue55: Ignore the "fertig" field form when setting the form
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 233
diff changeset
84 // readonly status if the user would be allowed to edit the probe
12ef979e73ce Partially fixed issue55: Ignore the "fertig" field form when setting the form
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 233
diff changeset
85 // if the "fertig" flag has not been set. (ti) <2013-08-08 10:24>
12ef979e73ce Partially fixed issue55: Ignore the "fertig" field form when setting the form
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 233
diff changeset
86 var ignore = Array();
12ef979e73ce Partially fixed issue55: Ignore the "fertig" field form when setting the form
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 233
diff changeset
87 ignore.push('fertig');
12ef979e73ce Partially fixed issue55: Ignore the "fertig" field form when setting the form
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 233
diff changeset
88 form.setReadOnly(true, ignore);
232
6ac95f587e10 Used new Editdialog and set the form readonly if the parent probe is readonly.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 229
diff changeset
89 }
224
5e056c5edf9a Fixed loading stores when editing Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 218
diff changeset
90 console.log("Loaded Messung with ID " + record.getId()); //outputs ID
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
91 },
194
5d72d74a2daf Added function to save a Messung.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 193
diff changeset
92 deleteMessung: function(button) {
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
93 // Get selected item in grid
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
94 var grid = button.up('grid');
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
95 var selection = grid.getView().getSelectionModel().getSelection()[0];
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
96 Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn){
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
97 if(btn === 'yes'){
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
98 var store = grid.getStore();
218
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
99 var deleteUrl = selection.getProxy().url + selection.getEidi();
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
100 Ext.Ajax.request({
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
101 url: deleteUrl,
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
102 method: 'DELETE',
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
103 success: function(response, opts) {
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
104 store.reload();
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
105 }
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
106 });
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
107 console.log('Deleting Messung');
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
108 } else {
218
1b5a0cb4fa6c Fixed delete call
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 195
diff changeset
109 console.log('Cancel Deleting Messung');
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
110 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
111 });
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
112 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
113 createSuccess: function(form, record, operation) {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
114 // Reload store
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
115 var store = this.getMessungenStore();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
116 store.reload();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
117 var win = form.up('window');
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
118 win.close();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
119 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
120 createFailure: function(form, record, operation) {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
121 Ext.MessageBox.show({
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
122 title: 'Fehler beim Speichern',
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
123 msg: form.message,
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
124 icon: Ext.MessageBox.ERROR,
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
125 buttons: Ext.Msg.OK
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
126 });
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
127 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
128 editSuccess: function(form, record, operation) {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
129 // Reload store
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
130 var store = this.getMessungenStore();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
131 store.reload();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
132 var win = form.up('window');
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
133 win.close();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
134 },
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
135 editFailure: function(form, record, operation) {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
136 Ext.MessageBox.show({
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
137 title: 'Fehler beim Speichern',
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
138 msg: form.message,
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
139 icon: Ext.MessageBox.ERROR,
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
140 buttons: Ext.Msg.OK
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
141 });
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
142 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
143 });

http://lada.wald.intevation.org