3 "name": "Pman.Tab.AdminWatches",
4 "parent": "Pman.Tab.AdminWatchNotify",
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}"
17 "tableName": "core_watch",
18 "|title": "(function() { return _this.title || \"Watches\"; })()",
24 "|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.AdminWatch;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
25 "|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"
28 "autoExpandColumn": "person_id_name",
35 "beforeload": "function (_self, options)\n{\n var val = _this.affectSel.getValue();\n if (val.length) {\n options.params.ontable = val;\n }\n \n}"
37 "*prop": "dataSource",
40 "|sortInfo": "{ field : 'ontable', direction: 'ASC' }",
47 "|url": "baseURL + '/Roo/core_watch.php'",
52 "xtype": "JsonReader",
53 "totalProperty": "total",
57 "|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]"
63 "xtype": "PagingToolbar",
66 "displayMsg": "Displaying core_watch{0} - {1} of {2}",
67 "emptyMsg": "No core_watch found",
82 "|select": "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}",
83 "|render": "function (_self)\n{\n _this.affectSel = _self;\n}"
86 "displayField": "on_table",
88 "emptyText": "Select Table",
89 "forceSelection": true,
91 "loadingText": "Searching...",
95 "qtip": "Select Action",
96 "queryParam": "query[ontable]",
97 "selectOnFocus": true,
98 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
99 "triggerAction": "all",
101 "valueField": "on_table",
108 "|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}"
113 "|sortInfo": "{ field : 'on_table' , direction : 'ASC' }",
119 "xtype": "HttpProxy",
120 "|url": "baseURL + '/Roo/Events.php'",
127 "totalProperty": "total",
128 "xtype": "JsonReader",
129 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n }\n \n]",
137 "|xns": "Roo.Toolbar",
143 "cls": "x-btn-text-icon",
144 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
146 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
148 "|xns": "Roo.Toolbar"
152 "cls": "x-btn-text-icon",
153 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
156 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
158 "|xns": "Roo.Toolbar"
163 "*prop": "colModel[]",
164 "dataIndex": "event",
165 "header": "Watch Event",
167 "xtype": "ColumnModel",
168 "|renderer": "function(v) { return String.format('{0}', v); }",
172 "*prop": "colModel[]",
173 "dataIndex": "ontable",
174 "header": "Watch Table",
176 "xtype": "ColumnModel",
177 "|renderer": "function(v) { return String.format('{0}', v); }",
181 "*prop": "colModel[]",
183 "header": "Watch ID",
185 "xtype": "ColumnModel",
186 "|renderer": "function(v) { return String.format('{0}', v); }",
190 "*prop": "colModel[]",
191 "dataIndex": "person_id_name",
192 "header": "Who get's notified",
194 "xtype": "ColumnModel",
195 "|renderer": "function(v) { return String.format('{0}', v); }",
199 "*prop": "colModel[]",
200 "dataIndex": "medium",
201 "header": "What happens",
203 "xtype": "ColumnModel",
204 "|renderer": "function(v) { return String.format('{0}', v); }",
208 "xtype": "ColumnModel",
211 "dataIndex": "active",
212 "|renderer": "function(v) { return String.format('{0}', v); }",
214 "*prop": "colModel[]"