diff app/view/window/Messprogramm.js @ 760:2e7e1a8bf79f

Added a Window and Buttons to generate Proben from a Messprogramm
author Dustin Demuth <dustin@intevation.de>
date Fri, 08 May 2015 11:38:00 +0200
parents b7484c7da2d4
children 1f3837b513d9
line wrap: on
line diff
--- a/app/view/window/Messprogramm.js	Thu May 07 10:55:44 2015 +0200
+++ b/app/view/window/Messprogramm.js	Fri May 08 11:38:00 2015 +0200
@@ -38,6 +38,20 @@
         }
 
         this.buttons = [{
+            text: i18n.getMsg('generateproben'),
+            scope: this,
+            disabled: this.record? false : true, //disable button if no record is set.
+            handler: function() {
+                var winname = 'Lada.view.window.GenProbenFromMessprogramm';
+                var win = Ext.create(winname, {
+                    record: this.record
+                });
+                win.show();
+                win.initData();
+            }
+        },
+        '->',
+        {
             text: i18n.getMsg('close'),
             scope: this,
             handler: this.close

http://lada.wald.intevation.org