{
- "id": "roo-file-1",
+ "id": "roo-file-88",
"name": "Pman.Tab.AdminCompanies",
"parent": "Pman.Tab.Admin",
"title": "Pman.Tab.AdminCompanies",
- "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminCompanies.bjs",
+ "path": "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminCompanies.bjs",
"items": [
{
"region": "center",
{
"listeners": {
"|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.Companies;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
- "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n",
- "rowclick": "function (_self, rowIndex, e)\n{\n try { Pman.Tab.AdminOffice.paging.onClick('refresh'); } catch(e) {}\n}"
+ "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n \n}\n",
+ "rowclick": "function (_self, rowIndex, e)\n{\n try { Pman.Tab.AdminOffice.grid.footer.onClick('refresh'); } catch(e) {}\n}"
},
"*prop": "grid",
"autoExpandColumn": "name",
"xtype": "Fill"
},
{
- "text": "Add",
- "xtype": "Button",
- "cls": "x-btn-text-icon",
- "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
"listeners": {
"|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
},
+ "cls": "x-btn-text-icon",
+ "text": "Add",
+ "xtype": "Button",
+ "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
"|xns": "Roo.Toolbar"
},
{
"sortable": true,
"width": 90,
"xtype": "ColumnModel",
- "|renderer": "function (v,x ,r) {\n return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n}",
+ "|renderer": "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}",
"|xns": "Roo.grid"
},
{
"sortable": true,
"width": 200,
"xtype": "ColumnModel",
- "|renderer": "function(v,x,r) {\n return String.format(r.data.isOwner ? '<B>{0}</B>' : '{0}',v); \n}",
+ "|renderer": "function(v,x,r) {\n return String.format(r.data.comptype == 'OWNER' ? '<B>{0}</B>' : '{0}',v); \n}",
"|xns": "Roo.grid"
},
{
]
}
],
- "permname": "",
+ "permname": "Admin.Companies",
"modOrder": "030"
}
\ No newline at end of file