3 "name": "Pman.Tab.AdminWatches",
4 "parent": "Pman.Tab.Admin",
5 "title": "Pman.Tab.AdminWatches",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminWatches.bjs",
11 "title": "core_watch",
14 "tableName": "core_watch",
18 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
24 "autoExpandColumn": "ontable",
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 : 'ontable', direction: 'ASC' }",
43 "|url": "baseURL + '/Roo/core_watch.php'",
48 "xtype": "JsonReader",
49 "totalProperty": "total",
53 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'ontable',\n 'type': 'string'\n },\n {\n 'name': 'onid',\n 'type': 'int'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'event',\n 'type': 'string'\n },\n {\n 'name': 'medium',\n 'type': 'string'\n },\n {\n 'name': 'active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]"
59 "xtype": "PagingToolbar",
62 "displayMsg": "Displaying core_watch{0} - {1} of {2}",
63 "emptyMsg": "No core_watch found",
74 "cls": "x-btn-text-icon",
75 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
77 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
84 "cls": "x-btn-text-icon",
85 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
87 "|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"
93 "cls": "x-btn-text-icon",
94 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
97 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
104 "*prop": "colModel[]",
105 "dataIndex": "event",
106 "header": "Watch Event",
108 "xtype": "ColumnModel",
109 "|renderer": "function(v) { return String.format('{0}', v); }",
113 "*prop": "colModel[]",
114 "dataIndex": "ontable",
115 "header": "Watch Table",
117 "xtype": "ColumnModel",
118 "|renderer": "function(v) { return String.format('{0}', v); }",
122 "*prop": "colModel[]",
124 "header": "Watch ID",
126 "xtype": "ColumnModel",
127 "|renderer": "function(v) { return String.format('{0}', v); }",
131 "*prop": "colModel[]",
132 "dataIndex": "person_id_name",
133 "header": "Who get's notified",
135 "xtype": "ColumnModel",
136 "|renderer": "function(v) { return String.format('{0}', v); }",
140 "xtype": "ColumnModel",
143 "dataIndex": "medium",
144 "|renderer": "function(v) { return String.format('{0}', v); }",
146 "*prop": "colModel[]"
149 "xtype": "ColumnModel",
152 "dataIndex": "active",
153 "|renderer": "function(v) { return String.format('{0}', v); }",
155 "*prop": "colModel[]"