"items" : [
{
"listeners" : {
- "show" : "function (_self)\n{\n var path = window.location.pathname.split('/');\n \n var authorized_key = path.pop();\n \n var id = path.pop();\n \n new Pman.Request({\n url: baseURL + '/Core/VerifyAccess',\n method : 'POST',\n mask : 'Loading...',\n params : {\n id : id,\n authorized_key : authorized_key,\n _to_data : 1\n }, \n success : function(res) {\n \n _this.data = res.data;\n \n _this.form.setValues(_this.data);\n \n return;\n },\n failure: function(res) {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n \n return;\n }\n });\n}"
+ "show" : "function (_self)\n{\n var path = window.location.pathname.split('/');\n \n var authorized_key = path.pop();\n \n var id = path.pop();\n \n new Pman.Request({\n url: baseURL + '/Core/VerifyAccess',\n method : 'POST',\n mask : 'Loading...',\n params : {\n id : id,\n authorized_key : authorized_key,\n _to_data : 1\n }, \n success : function(res) {\n \n _this.data = res.data;\n \n _this.form.setValues(_this.data);\n \n if(_this.data.status * 1 == 0){\n _this.form.findField('status').reset();\n }\n \n _this.form.clearInvalid();\n \n return;\n },\n failure: function(res) {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n \n return;\n }\n });\n}"
},
"String cls" : "enable-overflow",
"Boolean allow_close" : false,
"$ 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,
"select" : "function (combo, record, index)\n{\n \n}"
},
"Boolean allowBlank" : false,
+ "Boolean selectOnFocus" : true,
"String name" : "status_name",
"String mode" : "local",
"String valueField" : "code",
"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 ['-1', 'Reject']\n] ",
+ "$ string data" : "[\n ['1', 'Approve'],\n ['-2', 'Temporary'],\n ['-1', 'Reject']\n] ",
"xtype" : "SimpleStore",
"$ xns" : "Roo.data",
"$ fields" : "[ 'code', 'value' ]",