3 "name": "Pman.Tab.AdminContactsGroup",
4 "parent": "Pman.Tab.AdminContactsManager",
5 "title": "Pman.Tab.AdminContactsGroup",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs",
14 "tableName": "Groups",
18 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
23 "|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}",
24 "|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"
27 "autoExpandColumn": "name",
35 "*prop": "dataSource",
38 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
45 "|url": "baseURL + '/Roo/Groups.php'",
50 "xtype": "JsonReader",
51 "totalProperty": "total",
55 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'name',\n 'type': 'string'\n },\n {\n 'name': 'type',\n 'type': 'int'\n },\n {\n 'name': 'leader',\n 'type': 'int'\n },\n {\n 'name': 'leader_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_office_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_name',\n 'type': 'string'\n },\n {\n 'name': 'leader_phone',\n 'type': 'string'\n },\n {\n 'name': 'leader_fax',\n 'type': 'string'\n },\n {\n 'name': 'leader_email',\n 'type': 'string'\n },\n {\n 'name': 'leader_company_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_role',\n 'type': 'string'\n },\n {\n 'name': 'leader_active',\n 'type': 'int'\n },\n {\n 'name': 'leader_remarks',\n 'type': 'string'\n },\n {\n 'name': 'leader_passwd',\n 'type': 'string'\n },\n {\n 'name': 'leader_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_lang',\n 'type': 'string'\n },\n {\n 'name': 'leader_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'leader_action_type',\n 'type': 'string'\n },\n {\n 'name': 'leader_project_id',\n 'type': 'int'\n }\n]"
65 "text": "Manage Groups",
67 "|xns": "Roo.Toolbar",
76 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.ds.load({});\n }); \n}\n"
78 "cls": "x-btn-text-icon",
81 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
86 "|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(s[0].data, function() {\n _this.grid.ds.load({});\n }); \n \n}\n"
88 "cls": "x-btn-text-icon",
91 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
96 "|click": "function()\n{\n Pman.genericDelete(_this, 'Groups'); \n}\n "
98 "cls": "x-btn-text-icon",
101 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
110 "click": "function (_self, e)\n{\n _this.grid.ds.load({});\n}"
123 "xtype": "ColumnModel",
127 "|renderer": "function(v) { return String.format('{0}', v); }",
129 "*prop": "colModel[]"