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",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "core_watch",
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": "person_id_name",
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",
73 "cls": "x-btn-text-icon",
74 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
77 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
88 "|select": "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}",
89 "|render": "function (_self)\n{\n _this.affectSel = _self;\n}"
92 "displayField": "on_table",
94 "emptyText": "Select Affects",
95 "forceSelection": true,
97 "loadingText": "Searching...",
101 "qtip": "Select Action",
102 "queryParam": "query[on_table]",
103 "selectOnFocus": true,
104 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
105 "triggerAction": "all",
107 "valueField": "action",
114 "|beforeload": "function (_self, o)\n{\n o.params = o.params || {};\n // staff can see all logs, other companies can only see their own.\n if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n o.params._distinct = 'on_table';\n o.params._columns ='on_table';\n}"
119 "|sortInfo": "{ field : 'on_table' , direction : 'ASC' }",
125 "xtype": "HttpProxy",
126 "|url": "baseURL + '/Roo/Core_watch.php'",
131 "xtype": "JsonReader",
132 "totalProperty": "total",
136 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\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]"
143 "|xns": "Roo.Toolbar",
149 "cls": "x-btn-text-icon",
150 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
152 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
154 "|xns": "Roo.Toolbar"
159 "cls": "x-btn-text-icon",
160 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
162 "|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"
164 "|xns": "Roo.Toolbar"
168 "cls": "x-btn-text-icon",
169 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
172 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
174 "|xns": "Roo.Toolbar"
179 "*prop": "colModel[]",
180 "dataIndex": "event",
181 "header": "Watch Event",
183 "xtype": "ColumnModel",
184 "|renderer": "function(v) { return String.format('{0}', v); }",
188 "*prop": "colModel[]",
189 "dataIndex": "ontable",
190 "header": "Watch Table",
192 "xtype": "ColumnModel",
193 "|renderer": "function(v) { return String.format('{0}', v); }",
197 "*prop": "colModel[]",
199 "header": "Watch ID",
201 "xtype": "ColumnModel",
202 "|renderer": "function(v) { return String.format('{0}', v); }",
206 "*prop": "colModel[]",
207 "dataIndex": "person_id_name",
208 "header": "Who get's notified",
210 "xtype": "ColumnModel",
211 "|renderer": "function(v) { return String.format('{0}', v); }",
215 "*prop": "colModel[]",
216 "dataIndex": "medium",
217 "header": "What happens",
219 "xtype": "ColumnModel",
220 "|renderer": "function(v) { return String.format('{0}', v); }",
224 "xtype": "ColumnModel",
227 "dataIndex": "active",
228 "|renderer": "function(v) { return String.format('{0}', v); }",
230 "*prop": "colModel[]"