3 "name": "Pman.Tab.AdminTypesCompany",
4 "parent": "Pman.Tab.AdminTypes",
5 "title": "Pman.Tab.AdminTypesCompany",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminTypesCompany.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "core_company_type",
17 "title": "Company Types",
23 "|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.AdminGenericName;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
24 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show({\n id : this.getDataSource().getAt(rowIndex).data.id,\n _title : \"Edit Company Type\",\n _table : _this.panel.tableName\n }, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
27 "autoExpandColumn": "name",
33 "*prop": "dataSource",
36 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
43 "|url": "baseURL + '/Roo/core_company_type.php'",
48 "xtype": "JsonReader",
49 "totalProperty": "total",
53 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'name',\n 'type': 'string'\n }\n]"
59 "xtype": "PagingToolbar",
62 "displayMsg": "Displaying core_image_type{0} - {1} of {2}",
63 "emptyMsg": "No core_image_type found",
73 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { \n id : 0,\n _title : \"Add Company Type\",\n _table : _this.panel.tableName\n } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
75 "cls": "x-btn-text-icon",
78 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
83 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show({\n id : s[0].data.id,\n _title : \"Edit Company Type\",\n _table : _this.panel.tableName\n }, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
85 "cls": "x-btn-text-icon",
88 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
93 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_company_type'); \n}\n "
95 "cls": "x-btn-text-icon",
98 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
104 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return String.format('{0}', v); }",
110 "*prop": "colModel[]"