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}"
24 "autoExpandColumn": "name",
27 "|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}",
28 "|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"
33 "*prop": "dataSource",
36 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
43 "|url": "baseURL + '/Roo/Groups.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 {\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]"
63 "text": "Manage Groups",
65 "|xns": "Roo.Toolbar",
74 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.ds.load({});\n }); \n}\n"
76 "cls": "x-btn-text-icon",
79 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
84 "|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.footer.onClick('first');\n }); \n \n}\n"
86 "cls": "x-btn-text-icon",
89 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
94 "|click": "function()\n{\n Pman.genericDelete(_this, 'Groups'); \n}\n "
96 "cls": "x-btn-text-icon",
99 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
108 "click": "function (_self, e)\n{\n _this.grid.ds.load({});\n}"
121 "xtype": "ColumnModel",
125 "|renderer": "function(v) { return String.format('{0}', v); }",
127 "*prop": "colModel[]"