Pman.Dialog.VerifyAccess.bjs
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 04:52:42 +0000 (12:52 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 04:52:42 +0000 (12:52 +0800)
Pman.Dialog.VerifyAccess.js

Pman.Dialog.VerifyAccess.bjs
Pman.Dialog.VerifyAccess.js

index 6b243f7..ac38e51 100644 (file)
            "$ xns" : "Roo.bootstrap"
           }
          ]
-        }
-       ]
-      },
-      {
-       "xtype" : "Row",
-       "$ xns" : "Roo.bootstrap",
-       "items" : [
+        },
         {
          "xtype" : "Column",
          "Number xs" : 12,
            "String style" : "margin-bottom: 15px;"
           }
          ]
-        }
-       ]
-      },
-      {
-       "xtype" : "Row",
-       "$ xns" : "Roo.bootstrap",
-       "items" : [
+        },
+        {
+         "xtype" : "Column",
+         "Number xs" : 12,
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "listeners" : {
+            "select" : "function (combo, record, index)\n{\n    \n}"
+           },
+           "Boolean allowBlank" : false,
+           "Boolean selectOnFocus" : true,
+           "String name" : "status_name",
+           "String mode" : "local",
+           "String valueField" : "code",
+           "Boolean editable" : false,
+           "xtype" : "ComboBox",
+           "String triggerAction" : "all",
+           "string fieldLabel" : "Action",
+           "Boolean alwaysQuery" : true,
+           "$ xns" : "Roo.bootstrap",
+           "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{value}</b></div>",
+           "String hiddenName" : "status",
+           "String displayField" : "value",
+           "String indicatorpos" : "right",
+           "Boolean forceSelection" : true,
+           "items" : [
+            {
+             "$ string data" : "[\n    ['1', 'Approve'],\n    ['-2', 'Temporary'],\n    ['-1', 'Reject']\n] ",
+             "xtype" : "SimpleStore",
+             "$ xns" : "Roo.data",
+             "$ fields" : "[ 'code', 'value' ]",
+             "* prop" : "store"
+            }
+           ]
+          }
+         ]
+        },
         {
          "xtype" : "Column",
          "Number xs" : 12,
index 71a6566..d90f2a5 100644 (file)
@@ -183,14 +183,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
             '|xns' : 'Roo.bootstrap'
            }
           ]
-         }
-        ]
-       },
-       {
-        xtype : 'Row',
-        xns : Roo.bootstrap,
-        '|xns' : 'Roo.bootstrap',
-        items  : [
+         },
          {
           xtype : 'Column',
           xs : 12,
@@ -208,14 +201,51 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
             '|xns' : 'Roo.bootstrap'
            }
           ]
-         }
-        ]
-       },
-       {
-        xtype : 'Row',
-        xns : Roo.bootstrap,
-        '|xns' : 'Roo.bootstrap',
-        items  : [
+         },
+         {
+          xtype : 'Column',
+          xs : 12,
+          xns : Roo.bootstrap,
+          '|xns' : 'Roo.bootstrap',
+          items  : [
+           {
+            xtype : 'ComboBox',
+            allowBlank : false,
+            alwaysQuery : true,
+            displayField : 'value',
+            editable : false,
+            fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
+            forceSelection : true,
+            hiddenName : 'status',
+            indicatorpos : 'right',
+            mode : 'local',
+            name : 'status_name',
+            selectOnFocus : true,
+            tpl : '<div class=\"roo-select2-result\"><b>{value}</b></div>',
+            triggerAction : 'all',
+            valueField : 'code',
+            listeners : {
+             select : function (combo, record, index)
+              {
+                  
+              }
+            },
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap',
+            store : {
+             xtype : 'SimpleStore',
+             data : [
+                 ['1', 'Approve'],
+                 ['-2', 'Temporary'],
+                 ['-1', 'Reject']
+             ],
+             fields : [ 'code', 'value' ],
+             xns : Roo.data,
+             '|xns' : 'Roo.data'
+            }
+           }
+          ]
+         },
          {
           xtype : 'Column',
           xs : 12,