Lith hai 6 meses
pai
achega
47a1e19c8d

+ 28 - 1
src/Sqler/Sqler_DataEditor_schema.ControllerConfig.json

@@ -17,11 +17,17 @@
   "fields": [
     {
       "field": "name",
+      "filters": [ {} ],
       "list_config": { "width": 200 },
       "ig_attr": { "ig_class": "Text" }
     },
     {
       "field": "templateName",
+      "filters": [ {} ],
+      "ig_attr": {
+        "ig_class": "Text",
+        "ig_param": { "width": 500 }
+      },
       "list_config": { "width": 250 }
     },
     {
@@ -34,7 +40,26 @@
     },
     {
       "field": "primary_key",
-      "list_config": { "width": 80 }
+      "list_config": { "width": 80 },
+      "ig_attr": {
+        "ig_class": "Select",
+        "ig_param": {
+          "options": [
+            {
+              "id": "",
+              "text": "--"
+            },
+            {
+              "id": "0",
+              "text": "false"
+            },
+            {
+              "id": "1",
+              "text": "true"
+            }
+          ]
+        }
+      }
     },
     {
       "field": "autoincrement",
@@ -45,6 +70,7 @@
     {
 
       "field": "column_comment",
+      "filters": [ { "ig_class": "Text" } ],
       "list_config": { "width": 150 },
       "ig_attr": { "ig_class": "TextArea" },
       "editable": false
@@ -56,6 +82,7 @@
     },
     {
       "field": "autoTemp_Config",
+      "filters": [ { "ig_attr": { "ig_class": "Text" } } ],
       "list_config": { "width": 200 },
       "ig_attr": { "ig_class": "TextArea" }
     }

+ 14 - 4
src/Vit.AutoTemp/AutoTempControllerConfig.FieldConfig.cs

@@ -1,6 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
+using System.Collections.Generic;
 
 namespace Vit.AutoTemp
 {
@@ -15,8 +13,20 @@ namespace Vit.AutoTemp
             public bool? editable;
 
             public ListConfig list_config;
+
+
+            public bool? useDefaultFilter;
+            public List<Filter> filters;
             public IgAttr ig_attr;
 
+
+            public class Filter
+            {
+                public string title;
+                public List<string> operators;
+                public IgAttr ig_attr;
+            }
+
             public class ListConfig
             {
                 public string title;
@@ -27,7 +37,7 @@ namespace Vit.AutoTemp
             public class IgAttr
             {
                 public string ig_class;
-                public Dictionary<string,object> ig_param;
+                public Dictionary<string, object> ig_param;
             }
         }
     }

+ 1 - 4
src/Vit.AutoTemp/AutoTempControllerConfig.cs

@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
+using System.Collections.Generic;
 
 
 namespace Vit.AutoTemp