Mercurial > lada > lada-client
annotate app/view/messungen/Edit.js @ 472:debfcc7713e3
Added license header to each file.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 16 Jan 2014 17:34:30 +0100 |
parents | f9bb1ecf6462 |
children | d00cc841a876 |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
8 |
343
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
9 /* |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
10 * Window to edit a Messung |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
11 */ |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.messungen.Edit', { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.window.Window', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 alias: 'widget.messungenedit', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 title: 'Maske für Messungen', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 width: Ext.getBody().getViewSize().width - 30, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 height: Ext.getBody().getViewSize().height - 30, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 autoShow: true, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 autoScroll: true, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 modal: true, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 requires: [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 'Lada.view.messungen.EditForm' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 ], |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 initComponent: function() { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 this.buttons = [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 text: 'Speichern', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 scope: form, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 action: 'save' |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
32 }, |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
33 { |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
34 text: 'Abbrechen', |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
35 scope: this, |
422
f9bb1ecf6462
Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents:
343
diff
changeset
|
36 handler: this.close |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 ]; |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
39 var form = Ext.create('Lada.view.messungen.EditForm', this.initialConfig); |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
40 this.items = [form]; |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 this.callParent(); |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 }); |