changeset 621:c3c8a3be5117

Added messung create window.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 16 Mar 2015 12:10:31 +0100
parents e0b966b32163
children ee92e352be20
files app/view/window/MessungCreate.js
diffstat 1 files changed, 62 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/window/MessungCreate.js	Mon Mar 16 12:10:31 2015 +0100
@@ -0,0 +1,62 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details.
+ */
+
+/*
+ * Window to edit a Messung
+ */
+Ext.define('Lada.view.window.MessungCreate', {
+    extend: 'Ext.window.Window',
+    alias: 'widget.messungcreate',
+
+    requires: [
+      'Lada.view.form.Messung'
+    ],
+
+    collapsible: true,
+    maximizable: true,
+    autoshow: true,
+    autoscroll: true,
+    layout: 'fit',
+
+    record: null,
+
+    initComponent: function() {
+        this.title = 'Messung';
+        this.buttons = [{
+            text: 'Schließen',
+            scope: this,
+            handler: this.close
+        }];
+        this.width = 700;
+
+        this.items = [{
+            border: 0,
+            autoScroll: true,
+            items: [{
+                xtype: 'messungform'
+           }]
+        }];
+        this.callParent(arguments);
+    },
+
+    initData: function() {
+        this.clearMessages();
+        var messung = Ext.create('Lada.model.Messung', {
+            probeId: this.record.get('id')
+        });
+        this.down('messungform').setRecord(messung);
+    },
+
+    setMessages: function(errors, warnings) {
+        //todo this is a stub
+    },
+    clearMessages: function() {
+        //todo this is a stub
+    }
+
+});

http://lada.wald.intevation.org