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",
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": "ontable",
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>{ontable}</b> </div>",
98 "triggerAction": "all",
100 "valueField": "ontable",
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 = 'ontable';\n o.params._columns ='ontable';\n}"
112 "|sortInfo": "{ field : 'ontable' , direction : 'ASC' }",
118 "xtype": "HttpProxy",
119 "|url": "baseURL + '/Roo/Core_watch.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"
152 "cls": "x-btn-text-icon",
153 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
155 "|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"
157 "|xns": "Roo.Toolbar"
161 "cls": "x-btn-text-icon",
162 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
165 "|click": "function()\n{\n Pman.genericDelete(_this, 'core_watch'); \n}\n "
167 "|xns": "Roo.Toolbar"
172 "*prop": "colModel[]",
173 "dataIndex": "event",
174 "header": "Watch Event",
176 "xtype": "ColumnModel",
177 "|renderer": "function(v) { return String.format('{0}', v); }",
181 "*prop": "colModel[]",
182 "dataIndex": "ontable",
183 "header": "Watch Table",
185 "xtype": "ColumnModel",
186 "|renderer": "function(v) { return String.format('{0}', v); }",
190 "*prop": "colModel[]",
192 "header": "Watch ID",
194 "xtype": "ColumnModel",
195 "|renderer": "function(v) { return String.format('{0}', v); }",
199 "*prop": "colModel[]",
200 "dataIndex": "person_id_name",
201 "header": "Who get's notified",
203 "xtype": "ColumnModel",
204 "|renderer": "function(v) { return String.format('{0}', v); }",
208 "*prop": "colModel[]",
209 "dataIndex": "medium",
210 "header": "What happens",
212 "xtype": "ColumnModel",
213 "|renderer": "function(v) { return String.format('{0}', v); }",
217 "xtype": "ColumnModel",
220 "dataIndex": "active",
221 "|renderer": "function(v) { return String.format('{0}', v); }",
223 "*prop": "colModel[]"