From: edward Date: Thu, 15 Feb 2018 04:52:42 +0000 (+0800) Subject: Pman.Dialog.VerifyAccess.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=acc4ba6826a55f5e83da638c001d403038aef5b1 Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index 6b243f7f..ac38e51f 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -54,13 +54,7 @@ "$ xns" : "Roo.bootstrap" } ] - } - ] - }, - { - "xtype" : "Row", - "$ xns" : "Roo.bootstrap", - "items" : [ + }, { "xtype" : "Column", "Number xs" : 12, @@ -76,13 +70,44 @@ "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" : "
{value}
", + "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, diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index 71a65669..d90f2a50 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -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 : '
{value}
', + 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,