comparison app/view/window/MessungCreate.js @ 621:c3c8a3be5117

Added messung create window.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 16 Mar 2015 12:10:31 +0100
parents
children 71e8b84d7829
comparison
equal deleted inserted replaced
620:e0b966b32163 621:c3c8a3be5117
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9 /*
10 * Window to edit a Messung
11 */
12 Ext.define('Lada.view.window.MessungCreate', {
13 extend: 'Ext.window.Window',
14 alias: 'widget.messungcreate',
15
16 requires: [
17 'Lada.view.form.Messung'
18 ],
19
20 collapsible: true,
21 maximizable: true,
22 autoshow: true,
23 autoscroll: true,
24 layout: 'fit',
25
26 record: null,
27
28 initComponent: function() {
29 this.title = 'Messung';
30 this.buttons = [{
31 text: 'Schließen',
32 scope: this,
33 handler: this.close
34 }];
35 this.width = 700;
36
37 this.items = [{
38 border: 0,
39 autoScroll: true,
40 items: [{
41 xtype: 'messungform'
42 }]
43 }];
44 this.callParent(arguments);
45 },
46
47 initData: function() {
48 this.clearMessages();
49 var messung = Ext.create('Lada.model.Messung', {
50 probeId: this.record.get('id')
51 });
52 this.down('messungform').setRecord(messung);
53 },
54
55 setMessages: function(errors, warnings) {
56 //todo this is a stub
57 },
58 clearMessages: function() {
59 //todo this is a stub
60 }
61
62 });

http://lada.wald.intevation.org