{
- "id": "roo-file-1",
+ "id": "roo-file-46",
"name": "Pman.Tab.AdminCompanies",
"parent": "Pman.Tab.Admin",
"title": "Pman.Tab.AdminCompanies",
},
{
"*prop": "south",
+ "height": 150,
+ "split": true,
+ "titlebar": true,
"xtype": "LayoutRegion",
"|xns": "Roo"
},
{
"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",
"items": [
{
"listeners": {
- "load": "function (_self, records, options)\n{\n try {\n Pman.Tab.AdminOffice.grid.footer.onClick('refresh');\n } catch (e) {}\n}"
+ "load": "function (_self, records, options)\n{\n try {\n Pman.Tab.AdminOffice.grid.footer.onClick('refresh');\n } catch (e) {}\n}",
+ "beforeload": "function (_self, o)\n{\n o.params = o.params || {};\n try {\n o.params['query[name]'] = _this.searchBox.getValue();\n } catch(e) { return false; }\n}"
},
"*prop": "dataSource",
"remoteSort": true,
"xtype": "Store",
- "|sortInfo": "{ field : 'code', direction: 'ASC' }",
+ "|sortInfo": "{ field : 'name', direction: 'ASC' }",
"|xns": "Roo.data",
"items": [
{
"items": [
{
"listeners": {
- "show": "function (_self)\n{\n_this.searchBox = _self;\n}"
+ "show": "function (_self)\n{\n\n}",
+ "specialkey": "function (_self, e)\n{\n if (e.getKey() == 13) {\n _this.grid.footer.onClick( 'first' );\n }\n}",
+ "render": "function (_self)\n{\n_this.searchBox = _self;\n}"
},
"xtype": "TextField",
"|xns": "Roo.form"
]
}
],
- "permname": "",
+ "permname": "Admin.Companies",
"modOrder": "030"
}
\ No newline at end of file