changeset 581:424802824648

Added a form for Messungen (unfinished)
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Mar 2015 17:12:53 +0100
parents fe074c2250b4
children a241362cda68
files app/view/form/Messung.js app/view/window/MessungEdit.js
diffstat 2 files changed, 60 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/form/Messung.js	Tue Mar 10 17:12:53 2015 +0100
@@ -0,0 +1,56 @@
+/* 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.
+ */
+
+/*
+ * Formular to edit a Messung
+ */
+Ext.define('Lada.view.form.Messung', {
+    extend: 'Ext.form.Panel',
+    alias: 'widget.messungform',
+    requires: [
+        'Lada.view.widget.Datenbasis',
+        'Lada.view.widget.base.TextField',
+        'Lada.view.widget.base.Datetime',
+        'Lada.view.widget.base.FieldSet',
+        'Lada.model.Messung'
+    ],
+
+    model: 'Lada.model.Messung',
+    minWidth: 650,
+    margin: 5,
+    border: 0,
+
+    recordId: null,
+
+    trackResetOnLoad: true,
+
+    initComponent: function(){
+        this.items = [{
+            xtype: 'fieldset',
+            title: 'Allgemein'
+        }];
+        this.callParent(arguments);
+    },
+
+    setRecord: function(record){
+        this.getForm().loadRecord(record);
+    },
+
+    setMessages: function() {
+        //todo this is a stub
+    },
+
+    clearMessages: function() {
+        //todo this is a stub
+    },
+
+    setReadonlye: function(){
+        //todo this is a stub
+    }
+});
+
--- a/app/view/window/MessungEdit.js	Tue Mar 10 15:59:53 2015 +0100
+++ b/app/view/window/MessungEdit.js	Tue Mar 10 17:12:53 2015 +0100
@@ -13,12 +13,12 @@
     extend: 'Ext.window.Window',
     alias: 'widget.messungedit',
 
-   // requires: [
-   //   'Lada.view.form.Messung',
+    requires: [
+      'Lada.view.form.Messung'
    //   'Lada.view.grid.Messwert',
    //   'Lada.view.grid.Messstatus',
    //   'Lada.view.grid.MKommentar'
-   // ],
+    ],
 
     collapsible: true,
     maximizable: true,
@@ -47,7 +47,7 @@
             border: 0,
             autoScroll: true,
             items: [{
-         //       xtype: 'messungform',
+                xtype: 'messungform',
 //                recordId: record.get('id')
             }, {
                 xtype: 'fset',

http://lada.wald.intevation.org