[Lada-commits] [PATCH 3 of 3] Added missing files

Wald Commits scm-commit at wald.intevation.org
Fri Jul 5 11:20:23 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373015966 -7200
# Node ID 956555e20e027ff53ec7b3829e56ac2fbf410274
# Parent  df5dcdff7b690b274201dc790b061dae4ef8aa5a
Added missing files.

diff -r df5dcdff7b69 -r 956555e20e02 app/view/messwerte/Create.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/messwerte/Create.js	Fri Jul 05 11:19:26 2013 +0200
@@ -0,0 +1,26 @@
+Ext.define('Lada.view.messwerte.Create', {
+    extend: 'Ext.window.Window',
+    alias: 'widget.messwertecreate',
+
+    title: 'Maske für Messwerte',
+    //width: Ext.getBody().getViewSize().width - 30,
+    //height: Ext.getBody().getViewSize().height - 30,
+    autoShow: true,
+    autoScroll: true,
+    modal: true,
+
+    requires: [
+        'Lada.view.messungen.CreateForm'
+    ],
+    initComponent: function() {
+        var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig);
+        this.items = [form];
+        this.buttons = [
+            {
+                text: 'Speichern',
+                scope: form
+            }
+        ];
+        this.callParent();
+    }
+});
diff -r df5dcdff7b69 -r 956555e20e02 app/view/messwerte/CreateForm.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/messwerte/CreateForm.js	Fri Jul 05 11:19:26 2013 +0200
@@ -0,0 +1,104 @@
+Ext.define('Lada.view.messwerte.CreateForm', {
+    extend: 'Lada.view.widgets.LadaForm',
+    model: 'Lada.model.Messwert',
+    requires: [
+    //    'Lada.view.widgets.Messmethode',
+        'Lada.view.widgets.Messgroesse',
+        'Lada.view.widgets.Messeinheit'
+    //    'Lada.view.mkommentare.List',
+    //    'Lada.view.status.List',
+    //    'Lada.view.messwerte.List'
+    ],
+    initComponent: function() {
+        this.items = [
+            {
+                xtype: 'textfield',
+                name: 'messwert',
+                fieldLabel: 'Messwert'
+            },
+            {
+                xtype: 'textfield',
+                name: 'messfehler',
+                fieldLabel: 'Messfehler'
+            },
+            {
+                xtype: 'messgroesse',
+                name: 'messgroesseId',
+                fieldLabel: 'Messgroesse'
+            },
+            {
+                xtype: 'messeinheit',
+                name: 'mehId',
+                fieldLabel: 'Messeinheit'
+            },
+            {
+                xtype: 'textfield',
+                name: 'nwgZuMesswert',
+                fieldLabel: 'Nachweisgrenze'
+            }
+            //{
+            //    xtype: 'datefield',
+            //    name: 'messzeitpunkt',
+            //    fieldLabel: 'Messzeitpunkt'
+            //},
+            //{
+            //    xtype: 'textfield',
+            //    name: 'messdauer',
+            //    fieldLabel: 'Messdauer'
+            //},
+            //{
+            //    xtype: 'testdatensatz',
+            //    name: 'fertig',
+            //    fieldLabel: 'Fertig'
+            //},
+            //{
+            //    xtype: 'testdatensatz',
+            //    name: 'geplant',
+            //    fieldLabel: 'Geplant'
+            //},
+            //// Messwerte
+            //{
+            //    xtype: 'fieldset',
+            //    title: 'Messwerte',
+            //    collapsible: true,
+            //    collapsed: false,
+            //    padding: '10 10',
+            //    items: [
+            //        {
+            //            xtype: 'messwertelist',
+            //            parentId: this.modelId
+            //        }
+            //    ]
+            //},
+            //// Status
+            //{
+            //    xtype: 'fieldset',
+            //    title: 'Messungsstatus',
+            //    collapsible: true,
+            //    collapsed: false,
+            //    padding: '10 10',
+            //    items: [
+            //        {
+            //            xtype: 'statuslist',
+            //            parentId: this.modelId
+            //        }
+            //    ]
+            //},
+            //// Messungskommentare
+            //{
+            //    xtype: 'fieldset',
+            //    title: 'Messungskommentare',
+            //    collapsible: true,
+            //    collapsed: false,
+            //    padding: '10 10',
+            //    items: [
+            //        {
+            //            xtype: 'mkommentarelist',
+            //            parentId: this.modelId
+            //        }
+            //    ]
+            //}
+        ];
+        this.callParent();
+    }
+});
diff -r df5dcdff7b69 -r 956555e20e02 app/view/widgets/Messgroesse.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/widgets/Messgroesse.js	Fri Jul 05 11:19:26 2013 +0200
@@ -0,0 +1,12 @@
+// Combobox for Umweltbereich
+Ext.define('Lada.view.widgets.Messegroesse' ,{
+        extend: 'Ext.form.ComboBox',
+        alias: 'widget.messgroesse',
+        store: 'Messgroessen',
+        displayField: 'messgro0esse',
+        valueField: 'messgroesseId',
+        emptyText:'Wählen Sie eine Messgröße',
+    initComponent: function() {
+        this.callParent(arguments);
+    }
+});


More information about the Lada-commits mailing list