diff app/controller/FilterResult.js @ 548:d47ee7439f44

Added new js files.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 12:43:52 +0100
parents
children e0b966b32163
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/controller/FilterResult.js	Fri Mar 06 12:43:52 2015 +0100
@@ -0,0 +1,55 @@
+/* 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.
+ */
+
+/**
+ * Controller for filter result grid.
+ */
+Ext.define('Lada.controller.FilterResult', {
+    extend: 'Ext.app.Controller',
+    requires: [
+        'Lada.view.window.ProbeEdit'
+    ],
+
+    init: function() {
+        this.control({
+            'filterresultgrid': {
+                itemdblclick: this.editItem
+            },
+            'filterresultgrid toolbar button[action=add]': {
+                click: this.addItem
+            },
+            'filterresultgrid toolbar button[action=import]': {
+                click: this.uploadFile
+            },
+            'filterresultgrid toolbar button[action=export]': {
+                click: this.downloadFile
+            }
+        });
+        this.callParent(arguments);
+    },
+
+    editItem: function(grid, record) {
+        var win = Ext.create('Lada.view.window.ProbeEdit', {
+            record: record
+        });
+        win.show();
+        win.initData();
+    },
+
+    addItem: function(button) {
+
+    },
+
+    uploadFile: function(button) {
+
+    },
+
+    downloadFile: function(button) {
+
+    }
+});

http://lada.wald.intevation.org