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}"
17 "tableName": "core_watch",
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>{ontable}</b> </div>",
99 "triggerAction": "all",
101 "valueField": "ontable",
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"
153 "cls": "x-btn-text-icon",
154 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
156 "|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"
158 "|xns": "Roo.Toolbar"
162 "cls": "x-btn-text-icon",
163 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
166 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
168 "|xns": "Roo.Toolbar"
173 "*prop": "colModel[]",
174 "dataIndex": "event",
175 "header": "Watch Event",
177 "xtype": "ColumnModel",
178 "|renderer": "function(v) { return String.format('{0}', v); }",
182 "*prop": "colModel[]",
183 "dataIndex": "ontable",
184 "header": "Watch Table",
186 "xtype": "ColumnModel",
187 "|renderer": "function(v) { return String.format('{0}', v); }",
191 "*prop": "colModel[]",
193 "header": "Watch ID",
195 "xtype": "ColumnModel",
196 "|renderer": "function(v) { return String.format('{0}', v); }",
200 "*prop": "colModel[]",
201 "dataIndex": "person_id_name",
202 "header": "Who get's notified",
204 "xtype": "ColumnModel",
205 "|renderer": "function(v) { return String.format('{0}', v); }",
209 "*prop": "colModel[]",
210 "dataIndex": "medium",
211 "header": "What happens",
213 "xtype": "ColumnModel",
214 "|renderer": "function(v) { return String.format('{0}', v); }",
218 "xtype": "ColumnModel",
221 "dataIndex": "active",
222 "|renderer": "function(v) { return String.format('{0}', v); }",
224 "*prop": "colModel[]"