3 "name": "Pman.Tab.AdminNotify",
4 "parent": "Pman.Tab.AdminWatchNotify",
5 "title": "Pman.Tab.AdminNotify",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotify.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n \n}"
16 "tableName": "core_notify",
17 "title": "Current Notifications",
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 if (!_this.toggleBtn.pressed) {\n options.params['event_id'] = 0;\n }\n}"
36 "*prop": "dataSource",
39 "|sortInfo": "{ field : 'act_when', direction: 'DESC' }",
46 "|url": "baseURL + '/Roo/core_notify.php'",
51 "xtype": "JsonReader",
52 "totalProperty": "total",
56 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'act_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'onid',\n 'type': 'int'\n },\n {\n 'name': 'ontable',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'msgid',\n 'type': 'string'\n },\n {\n 'name': 'sent',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'event_id',\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 {\n 'name': 'event_id_id',\n 'type': 'int'\n },\n {\n 'name': 'event_id_person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_id_event_when',\n 'type': 'date'\n },\n {\n 'name': 'event_id_action',\n 'type': 'string'\n },\n {\n 'name': 'event_id_ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'event_id_on_id',\n 'type': 'int'\n },\n {\n 'name': 'event_id_on_table',\n 'type': 'string'\n },\n {\n 'name': 'event_id_person_id',\n 'type': 'int'\n },\n {\n 'name': 'event_id_remarks',\n 'type': 'string'\n }\n]"
62 "xtype": "PagingToolbar",
65 "displayMsg": "Displaying core_notify{0} - {1} of {2}",
66 "emptyMsg": "No core_notify found",
76 "displayField": "person_id_name",
78 "emptyText": "Select person",
79 "forceSelection": true,
82 "loadingText": "Searching...",
86 "qtip": "Select core_notify",
87 "queryParam": "query[person_id_name]",
88 "selectOnFocus": true,
89 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
90 "triggerAction": "all",
91 "valueField": "person_id",
98 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n o.params._distinct='person_id';\n o.params._columns='person_id,person_id_name,person_id_email';\n o.params['!person_id_name'] = '';\n \n // set more here\n}\n"
103 "|sortInfo": "{ direction : 'ASC', field: 'person_id_name' }",
108 "xtype": "HttpProxy",
111 "|url": "baseURL + '/Roo/core_notify.php'"
115 "xtype": "JsonReader",
119 "totalProperty": "total",
120 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]"
127 "|xns": "Roo.Toolbar",
132 "|click": "function()\n {\n Pman.genericDelete(_this, 'core_notify'); \n }\n "
134 "cls": "x-btn-text-icon",
137 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
138 "|xns": "Roo.Toolbar"
142 "render": "function (_self)\n{\n _this.toggleBtn = _self;\n}",
143 "toggle": "function (_self, pressed)\n{\n this.setText(pressed ? \"Hide Completed\" : \"Show Completed\");\n _this.grid.footer.onClick('first');\n}"
145 "enableToggle": true,
146 "text": "Show Completed",
148 "|xns": "Roo.Toolbar"
153 "*prop": "colModel[]",
158 "xtype": "ColumnModel",
159 "|renderer": "function(v) { return String.format('{0}', v ); }",
163 "*prop": "colModel[]",
164 "dataIndex": "evtype",
168 "xtype": "ColumnModel",
169 "|renderer": "function(v) { return String.format('{0}', v ); }",
173 "*prop": "colModel[]",
174 "dataIndex": "act_when",
175 "header": "Act when",
178 "xtype": "ColumnModel",
179 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }",
183 "*prop": "colModel[]",
188 "xtype": "ColumnModel",
189 "|renderer": "function(v,x,r) {\n if (r.data.event_id *1 == 0) {\n return '';\n }\n return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');\n }",
193 "*prop": "colModel[]",
194 "dataIndex": "ontable",
197 "xtype": "ColumnModel",
198 "|renderer": "function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }",
202 "*prop": "colModel[]",
203 "dataIndex": "person_id_name",
204 "header": "Who to notify",
206 "xtype": "ColumnModel",
207 "|renderer": "function(v,x,r) {\n return String.format('{0} <u><{1}></u>', v, r.data.person_id_email); \n }",
211 "*prop": "colModel[]",
212 "dataIndex": "trigger_event_id",
213 "header": "Triggered by",
215 "xtype": "ColumnModel",
216 "|renderer": "function(v,x,r) {\n return String.format('{0} <u><{1}></u>', v, r.data.person_id_email); \n }",
220 "xtype": "ColumnModel",
223 "dataIndex": "msgid",
224 "|renderer": "function(v) { return String.format('{0}', v); }",
226 "*prop": "colModel[]"
229 "*prop": "colModel[]",
230 "dataIndex": "event_id_remarks",
233 "xtype": "ColumnModel",
234 "|renderer": "function(v) { return String.format('<span qtip=\"{0}\">{0}</span>', v); }",