Pman.Dialog.AdminCoreEnum.js
"name" : "Pman.Dialog.AdminCoreEnum",
"parent" : "",
"title" : "",
"name" : "Pman.Dialog.AdminCoreEnum",
"parent" : "",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminCoreEnum.bjs",
+ "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminCoreEnum.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
"permname" : "",
"modOrder" : "001",
"strings" : {
"show" : "function (_self)\n{\n if(!isAdmin && Pman.Tab.Hopedb){\n Roo.MessageBox.alert(\"Error\", \"Permission Denied\", function(){\n _this.dialog.hide();\n });\n return;\n }\n var name_hidden = false;\n\n if (typeof(_this.data._hide_name) != 'undefined') {\n name_hidden = true;\n \n }\n \n _this.grid.colModel.setHidden(1,name_hidden);\n _this.grid.footer.onClick('first');\n}"
},
"modal" : true,
"show" : "function (_self)\n{\n if(!isAdmin && Pman.Tab.Hopedb){\n Roo.MessageBox.alert(\"Error\", \"Permission Denied\", function(){\n _this.dialog.hide();\n });\n return;\n }\n var name_hidden = false;\n\n if (typeof(_this.data._hide_name) != 'undefined') {\n name_hidden = true;\n \n }\n \n _this.grid.colModel.setHidden(1,name_hidden);\n _this.grid.footer.onClick('first');\n}"
},
"modal" : true,
- "xtype" : "LayoutDialog",
"title" : "Pulldown Options",
"title" : "Pulldown Options",
+ "xtype" : "LayoutDialog",
"width" : 950,
"$ xns" : "Roo",
"closable" : false,
"width" : 950,
"$ xns" : "Roo",
"closable" : false,
- "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n // _this.grid.footer.onClick('first');\n }\n}"
+ "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n // _this.grid.footer.onClick('first');\n }\n \n}"
"region" : "center",
"fitToframe" : true,
"region" : "center",
"fitToframe" : true,
"title" : "Pulldown Options",
"xtype" : "GridPanel",
"fitContainer" : true,
"title" : "Pulldown Options",
"xtype" : "GridPanel",
"fitContainer" : true,
{
"listeners" : {
"beforeedit" : "function (e)\n{\n \n // force fill in of name first.. (Except when it's hidden)\n if (typeof(_this.data._hide_name) != 'undefined') { \n if(e.field == 'display_name' && e.record.data.is_system_enum*1 == 1){\n return ;\n }\n \n }\n \n if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n Roo.log(\"block name?\");\n return false;\n }\n}",
{
"listeners" : {
"beforeedit" : "function (e)\n{\n \n // force fill in of name first.. (Except when it's hidden)\n if (typeof(_this.data._hide_name) != 'undefined') { \n if(e.field == 'display_name' && e.record.data.is_system_enum*1 == 1){\n return ;\n }\n \n }\n \n if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n Roo.log(\"block name?\");\n return false;\n }\n}",
- "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n // this.footer.onClick('first');\n }\n}",
"cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}",
"cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}",
+ "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n // this.footer.onClick('first');\n }\n}",
"afteredit" : "function (e)\n{\n e.record.commit(); \n}"
},
"autoExpandColumn" : "display_name",
"afteredit" : "function (e)\n{\n e.record.commit(); \n}"
},
"autoExpandColumn" : "display_name",
"items" : [
{
"$ url" : "baseURL + '/Roo/core_enum.php'",
"items" : [
{
"$ url" : "baseURL + '/Roo/core_enum.php'",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"xtype" : "ColumnModel",
},
{
"xtype" : "ColumnModel",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
},
{
"xtype" : "ColumnModel",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
},
{
"xtype" : "ColumnModel",
"header" : "Display Name",
"header" : "Display Name",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
},
{
"xtype" : "ColumnModel",
"$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n \n }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n \n }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
{
var _this = this;
this.dialog = Roo.factory({
{
var _this = this;
this.dialog = Roo.factory({
+ xtype : 'LayoutDialog',
closable : false,
height : 400,
modal : true,
resizable : false,
title : _this._strings['2df80d5febcde0c10a66818488622b7c'] /* Pulldown Options */,
width : 950,
closable : false,
height : 400,
modal : true,
resizable : false,
title : _this._strings['2df80d5febcde0c10a66818488622b7c'] /* Pulldown Options */,
width : 950,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'LayoutDialog',
listeners : {
show : function (_self)
{
listeners : {
show : function (_self)
{
_this.grid.footer.onClick('first');
}
},
_this.grid.footer.onClick('first');
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
+ xtype : 'LayoutRegion',
- '|xns' : 'Roo',
- xtype : 'LayoutRegion'
- text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
- xns : Roo,
- '|xns' : 'Roo',
+ text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
listeners : {
click : function (_self, e)
{
_this.dialog.hide();
}
listeners : {
click : function (_self, e)
{
_this.dialog.hide();
}
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
- text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
- xns : Roo,
- '|xns' : 'Roo',
+ text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
listeners : {
click : function (_self, e)
{
listeners : {
click : function (_self, e)
{
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
background : false,
fitContainer : true,
fitToframe : true,
region : 'center',
tableName : 'core_enum',
title : _this._strings['2df80d5febcde0c10a66818488622b7c'] /* Pulldown Options */,
background : false,
fitContainer : true,
fitToframe : true,
region : 'center',
tableName : 'core_enum',
title : _this._strings['2df80d5febcde0c10a66818488622b7c'] /* Pulldown Options */,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'GridPanel',
listeners : {
activate : function() {
_this.panel = this;
if (_this.grid) {
// _this.grid.footer.onClick('first');
}
listeners : {
activate : function() {
_this.panel = this;
if (_this.grid) {
// _this.grid.footer.onClick('first');
}
+ xns : Roo,
+ '|xns' : 'Roo',
autoExpandColumn : 'display_name',
clicksToEdit : 1,
loadMask : true,
autoExpandColumn : 'display_name',
clicksToEdit : 1,
loadMask : true,
- xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'EditorGrid',
listeners : {
afteredit : function (e)
{
listeners : {
afteredit : function (e)
{
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid',
+ xtype : 'PagingToolbar',
displayInfo : true,
displayMsg : _this._strings['510bc6e58593b2b8002c9fe0c21f3fde'] /* Displaying core_enum{0} - {1} of {2} */,
emptyMsg : _this._strings['1ba4d808fc7b27a7f60ce2ff75a8af3a'] /* No core_enum found */,
pageSize : 25,
xns : Roo,
displayInfo : true,
displayMsg : _this._strings['510bc6e58593b2b8002c9fe0c21f3fde'] /* Displaying core_enum{0} - {1} of {2} */,
emptyMsg : _this._strings['1ba4d808fc7b27a7f60ce2ff75a8af3a'] /* No core_enum found */,
pageSize : 25,
xns : Roo,
- '|xns' : 'Roo',
- xtype : 'PagingToolbar'
xns : Roo,
'|xns' : 'Roo',
xns : Roo,
'|xns' : 'Roo',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['d9ec74f5aa29ceef6bf7b45f7fec5d0f'] /* Add Value */,
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['d9ec74f5aa29ceef6bf7b45f7fec5d0f'] /* Add Value */,
- xns : Roo.Toolbar,
- '|xns' : 'Roo.Toolbar',
- xtype : 'Button',
listeners : {
click : function()
{
listeners : {
click : function()
{
}
_this.grid.startEditing(r, ec); // name...
}
}
_this.grid.startEditing(r, ec); // name...
}
+ },
+ xns : Roo.Toolbar,
+ '|xns' : 'Roo.Toolbar'
- '|xns' : 'Roo.Toolbar',
- xtype : 'Fill'
remoteSort : true,
sortInfo : { field : 'etype', direction: 'ASC' },
remoteSort : true,
sortInfo : { field : 'etype', direction: 'ASC' },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'Store',
listeners : {
beforeload : function (_self, options)
{
listeners : {
beforeload : function (_self, options)
{
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
method : 'GET',
url : baseURL + '/Roo/core_enum.php',
xns : Roo.data,
method : 'GET',
url : baseURL + '/Roo/core_enum.php',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
fields : [
{
'name': 'id',
fields : [
{
'name': 'id',
root : 'data',
totalProperty : 'total',
xns : Roo.data,
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
dataIndex : 'id',
header : _this._strings['7af54708cf5a4286cf0cfa58ff5148a8'] /* Internal # */,
renderer : function(v) { return String.format('{0}', v); },
width : 75,
xns : Roo.grid,
dataIndex : 'id',
header : _this._strings['7af54708cf5a4286cf0cfa58ff5148a8'] /* Internal # */,
renderer : function(v) { return String.format('{0}', v); },
width : 75,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
dataIndex : 'name',
header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
renderer : function(v) { return String.format('{0}', v); },
width : 200,
xns : Roo.grid,
'|xns' : 'Roo.grid',
dataIndex : 'name',
header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
renderer : function(v) { return String.format('{0}', v); },
width : 200,
xns : Roo.grid,
'|xns' : 'Roo.grid',
xns : Roo.grid,
'|xns' : 'Roo.grid',
xns : Roo.grid,
'|xns' : 'Roo.grid',
- '|xns' : 'Roo.form',
- xtype : 'TextField'
dataIndex : 'display_name',
header : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
renderer : function(v) { return String.format('{0}', v); },
width : 200,
xns : Roo.grid,
'|xns' : 'Roo.grid',
dataIndex : 'display_name',
header : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
renderer : function(v) { return String.format('{0}', v); },
width : 200,
xns : Roo.grid,
'|xns' : 'Roo.grid',
xns : Roo.grid,
'|xns' : 'Roo.grid',
xns : Roo.grid,
'|xns' : 'Roo.grid',
- '|xns' : 'Roo.form',
- xtype : 'TextField'
dataIndex : 'active',
header : _this._strings['4d3d769b812b6faa6b76e1a8abaece2d'] /* Active */,
renderer : function(v) {
dataIndex : 'active',
header : _this._strings['4d3d769b812b6faa6b76e1a8abaece2d'] /* Active */,
renderer : function(v) {
},
width : 75,
xns : Roo.grid,
},
width : 75,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
dataIndex : 'seqid',
header : _this._strings['d1228f5476d15142b1358ae4b5fa2454'] /* Order # */,
renderer : function(v) { return String.format('{0}', v); },
dataIndex : 'seqid',
header : _this._strings['d1228f5476d15142b1358ae4b5fa2454'] /* Order # */,
renderer : function(v) { return String.format('{0}', v); },
width : 75,
xns : Roo.grid,
'|xns' : 'Roo.grid',
width : 75,
xns : Roo.grid,
'|xns' : 'Roo.grid',
xns : Roo.grid,
'|xns' : 'Roo.grid',
xns : Roo.grid,
'|xns' : 'Roo.grid',
allowDecimals : false,
allowNegative : true,
decimalPrecision : 0,
xns : Roo.form,
allowDecimals : false,
allowNegative : true,
decimalPrecision : 0,
xns : Roo.form,
- '|xns' : 'Roo.form',
- xtype : 'NumberField'