[Lada-commits] [PATCH] Added a form for Messungen (unfinished)

Wald Commits scm-commit at wald.intevation.org
Tue Mar 10 16:55:34 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1426003973 -3600
# Node ID 4248028246489fa151cd5036e8bbef40e52d509e
# Parent  fe074c2250b43b6939cb48fea224dd16136d740c
Added a form for Messungen (unfinished)

diff -r fe074c2250b4 -r 424802824648 app/view/form/Messung.js
--- /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
+    }
+});
+
diff -r fe074c2250b4 -r 424802824648 app/view/window/MessungEdit.js
--- 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',


More information about the Lada-commits mailing list