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",
23 "|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}",
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",
34 "beforeload": "function (_self, options)\n{\n var val = _this.affectSel.getValue();\n if (val.length) {\n options.params.ontable = val;\n }\n \n}"
36 "*prop": "dataSource",
39 "|sortInfo": "{ field : 'ontable', direction: 'ASC' }",
46 "|url": "baseURL + '/Roo/core_watch.php'",
51 "xtype": "JsonReader",
52 "totalProperty": "total",
56 "|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]"
62 "xtype": "PagingToolbar",
65 "displayMsg": "Displaying core_watch{0} - {1} of {2}",
66 "emptyMsg": "No core_watch found",
81 "|select": "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}",
82 "|render": "function (_self)\n{\n _this.affectSel = _self;\n}"
85 "displayField": "on_table",
87 "emptyText": "Select Table",
88 "forceSelection": true,
90 "loadingText": "Searching...",
94 "qtip": "Select Action",
95 "queryParam": "query[ontable]",
96 "selectOnFocus": true,
97 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
98 "triggerAction": "all",
100 "valueField": "on_table",
107 "|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}"
112 "|sortInfo": "{ field : 'on_table' , direction : 'ASC' }",
118 "xtype": "HttpProxy",
119 "|url": "baseURL + '/Roo/Events.php'",
126 "totalProperty": "total",
127 "xtype": "JsonReader",
128 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n }\n \n]",
136 "|xns": "Roo.Toolbar",
142 "cls": "x-btn-text-icon",
143 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
145 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
147 "|xns": "Roo.Toolbar"
151 "cls": "x-btn-text-icon",
152 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
155 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
157 "|xns": "Roo.Toolbar"
162 "*prop": "colModel[]",
163 "dataIndex": "event",
164 "header": "Watch Event",
166 "xtype": "ColumnModel",
167 "|renderer": "function(v) { return String.format('{0}', v); }",
171 "*prop": "colModel[]",
172 "dataIndex": "ontable",
173 "header": "Watch Table",
175 "xtype": "ColumnModel",
176 "|renderer": "function(v) { return String.format('{0}', v); }",
180 "*prop": "colModel[]",
182 "header": "Watch ID",
184 "xtype": "ColumnModel",
185 "|renderer": "function(v) { return String.format('{0}', v); }",
189 "*prop": "colModel[]",
190 "dataIndex": "person_id_name",
191 "header": "Who get's notified",
193 "xtype": "ColumnModel",
194 "|renderer": "function(v) { return String.format('{0}', v); }",
198 "*prop": "colModel[]",
199 "dataIndex": "medium",
200 "header": "What happens",
202 "xtype": "ColumnModel",
203 "|renderer": "function(v) { return String.format('{0}', v); }",
207 "xtype": "ColumnModel",
210 "dataIndex": "active",
211 "|renderer": "function(v) { return String.format('{0}', v); }",
213 "*prop": "colModel[]"