annotate app/view/form/Messung.js @ 589:4c97717b92da

Cosmetics.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 11 Mar 2015 15:21:55 +0100
parents 424802824648
children 8a156a7fbe67
rev   line source
581
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 *
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 */
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
9 /*
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10 * Formular to edit a Messung
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11 */
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.form.Messung', {
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 extend: 'Ext.form.Panel',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14 alias: 'widget.messungform',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 requires: [
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16 'Lada.view.widget.Datenbasis',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
17 'Lada.view.widget.base.TextField',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
18 'Lada.view.widget.base.Datetime',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
19 'Lada.view.widget.base.FieldSet',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
20 'Lada.model.Messung'
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
21 ],
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 model: 'Lada.model.Messung',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 minWidth: 650,
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25 margin: 5,
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26 border: 0,
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
28 recordId: null,
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
30 trackResetOnLoad: true,
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
31
589
4c97717b92da Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 581
diff changeset
32 initComponent: function() {
581
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 this.items = [{
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
34 xtype: 'fieldset',
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
35 title: 'Allgemein'
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36 }];
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
37 this.callParent(arguments);
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38 },
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
39
589
4c97717b92da Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 581
diff changeset
40 setRecord: function(record) {
581
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
41 this.getForm().loadRecord(record);
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
42 },
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
43
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
44 setMessages: function() {
589
4c97717b92da Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 581
diff changeset
45 // TODO this is a stub
581
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
46 },
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
47
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
48 clearMessages: function() {
589
4c97717b92da Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 581
diff changeset
49 // TODO this is a stub
581
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
50 },
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
51
589
4c97717b92da Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 581
diff changeset
52 setReadonly: function() {
4c97717b92da Cosmetics.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 581
diff changeset
53 // TODO this is a stub
581
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
54 }
424802824648 Added a form for Messungen (unfinished)
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
55 });

http://lada.wald.intevation.org