Pman.Dialog.CoreNotifyRecurKeywords.bjs
authorEdward <edward@roojs.com>
Mon, 4 May 2015 07:40:25 +0000 (15:40 +0800)
committerEdward <edward@roojs.com>
Mon, 4 May 2015 07:40:25 +0000 (15:40 +0800)
Pman.Dialog.CoreNotifyRecurKeywords.js

Pman.Dialog.CoreNotifyRecurKeywords.bjs
Pman.Dialog.CoreNotifyRecurKeywords.js

index 9569cd1..1da6dc0 100644 (file)
           }
          ]
         },
+        {
+         "fieldLabel" : "Company Types",
+         "hiddenName" : "filter_company_type",
+         "xtype" : "ComboBoxArray",
+         "width" : 210,
+         "$ xns" : "Roo.form",
+         "name" : "filter_company_type_name",
+         "items" : [
+          {
+           "alwaysQuery" : true,
+           "listWidth" : 200,
+           "idField" : "id",
+           "triggerAction" : "all",
+           "fieldLabel" : "company",
+           "forceSelection" : true,
+           "displayField" : "display_name",
+           "minChars" : 2,
+           "valueField" : "id",
+           "xtype" : "ComboBox",
+           "allowBlank" : true,
+           "editable" : true,
+           "width" : 200,
+           "$ xns" : "Roo.form",
+           "* prop" : "combo",
+           "queryParam" : "search[display_name]",
+           "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
+           "nameField" : "display_name",
+           "items" : [
+            {
+             "listeners" : {
+              "beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype = 'COMPTYPE';\n    o.params.active  = 1;\n}\n"
+             },
+             "xtype" : "Store",
+             "remoteSort" : true,
+             "$ sortInfo" : "{ direction : 'ASC', field: 'display_name' }",
+             "$ xns" : "Roo.data",
+             "* prop" : "store",
+             "items" : [
+              {
+               "$ url" : "baseURL + '/Roo/core_enum.php'",
+               "xtype" : "HttpProxy",
+               "method" : "GET",
+               "$ xns" : "Roo.data",
+               "* prop" : "proxy"
+              },
+              {
+               "id" : "code",
+               "root" : "data",
+               "xtype" : "JsonReader",
+               "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
+               "$ xns" : "Roo.data",
+               "* prop" : "reader",
+               "totalProperty" : "total"
+              }
+             ]
+            }
+           ]
+          }
+         ]
+        },
         {
          "xtype" : "Hidden",
          "$ xns" : "Roo.form",
index 4be5c08..7c17161 100644 (file)
@@ -208,6 +208,78 @@ Pman.Dialog.CoreNotifyRecurKeywords = {
 
           ]
 
+         },
+         {
+          combo : {
+           store : {
+            proxy : {
+             '|xns' : 'Roo.data',
+             method : 'GET',
+             url : baseURL + '/Roo/core_enum.php',
+             xns : Roo.data,
+             xtype : 'HttpProxy'
+            },
+            reader : {
+             '|xns' : 'Roo.data',
+             fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}],
+             id : 'code',
+             root : 'data',
+             totalProperty : 'total',
+             xns : Roo.data,
+             xtype : 'JsonReader'
+            },
+            '|xns' : 'Roo.data',
+            remoteSort : true,
+            sortInfo : { direction : 'ASC', field: 'display_name' },
+            xns : Roo.data,
+            xtype : 'Store',
+            listeners : {
+             beforeload : function (_self, o){
+                  o.params = o.params || {};
+                  // set more here
+                  o.params.etype = 'COMPTYPE';
+                  o.params.active  = 1;
+              }
+            },
+            items : [
+
+            ]
+
+           },
+           '|xns' : 'Roo.form',
+           allowBlank : true,
+           alwaysQuery : true,
+           displayField : 'display_name',
+           editable : true,
+           fieldLabel : 'company',
+           forceSelection : true,
+           idField : 'id',
+           listWidth : 200,
+           minChars : 2,
+           nameField : 'display_name',
+           queryParam : 'search[display_name]',
+           tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
+           triggerAction : 'all',
+           valueField : 'id',
+           width : 200,
+           xns : Roo.form,
+           xtype : 'ComboBox',
+           items : [
+
+           ]
+
+          },
+          '|xns' : 'Roo.form',
+          fieldLabel : 'Company Types',
+          hiddenName : 'filter_company_type',
+          name : 'filter_company_type_name',
+          width : 210,
+          xns : Roo.form,
+          xtype : 'ComboBoxArray',
+          items : [
+
+          ]
+
          },
          {
           '|xns' : 'Roo.form',