changeset 375:1327dd6ec246

Added more search filters.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 23 Aug 2013 10:14:36 +0200
parents 832e3c8f9191
children 132c7b086fd5
files app/controller/Sql.js
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Sql.js	Tue Aug 20 16:50:47 2013 +0200
+++ b/app/controller/Sql.js	Fri Aug 23 10:14:36 2013 +0200
@@ -68,8 +68,12 @@
         // * text
         // * number
         // * datetime
+        // * bool
         // * listmst
         // * listumw
+        // * listver
+        // * listdbasis
+        // * listnetz
         //
         // Iterate over all configured filters and add filters dynamically
         //
@@ -91,12 +95,24 @@
             } else if (type == "datetime") {
                 console.log("Found datetime filter");
                 field = Ext.create('Lada.view.widgets.Datetime', { name: name, fieldLabel: label });
+            } else if (type == "bool") {
+                console.log("Found bool filter");
+                field = Ext.create('Lada.view.widgets.Testdatensatz', { name: name, fieldLabel: label, emptyText: '' });
             } else if (type == "listmst") {
                 console.log("Found listmst filter");
-                field = Ext.create('Lada.view.widgets.Mst', { name: name, fieldLabel: label });
+                field = Ext.create('Lada.view.widgets.Mst', { name: name, fieldLabel: label, multiSelect: true });
             } else if (type == "listumw") {
                 console.log("Found listumw filter");
-                field = Ext.create('Lada.view.widgets.Uwb', { name: name, fieldLabel: label });
+                field = Ext.create('Lada.view.widgets.Uwb', { name: name, fieldLabel: label, multiSelect: true });
+            } else if (type == "listdbasis") {
+                console.log("Found listdbasis filter");
+                field = Ext.create('Lada.view.widgets.Datenbasis', { name: name, fieldLabel: label, multiSelect: true });
+            } else if (type == "listver") {
+                console.log("Found listver filter");
+                field = Ext.create('Lada.view.widgets.Verwaltungseinheit', { name: name, fieldLabel: label, multiSelect: true });
+            } else if (type == "listnetz") {
+                console.log("Found listnetz filter");
+                field = Ext.create('Lada.view.widgets.Netzbetreiber', { name: name, fieldLabel: label, multiSelect: true });
             }
             if (field) {
                 console.log("Pushing field to filters");

http://lada.wald.intevation.org