2 "name" : "Pman.Tab.AdminNotify",
3 "parent" : "Pman.Tab.AdminWatchNotify",
4 "title" : "Pman.Tab.AdminNotify",
5 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotify.bjs",
9 "136fac3c5c5881e0a7d0039e57decd68" : "Select notify type",
10 "bf1cb7e2a337a5e2ebf614009cbce9cc" : "Current Notifications",
11 "8535bcc0f05358a583bb432bbadf7e0d" : "Select type",
12 "e12167aa0a7698e6ebc92b4ce3909b53" : "To",
13 "478192f02d448c49bc6b7d76818d8483" : "Ontable",
14 "dca4dd744d00b6fe1362ef7825ffdee5" : "No core_notify found",
15 "dc873ea4b71ca217b0d8d1fdd45854ac" : "id#",
16 "0f6d01b16d57911731aa44b94dbfefcc" : "Act when",
17 "7f8c0283f16925caed8e632086b81b9c" : "Sent",
18 "c956c97343a45cca5d492e70c56daa8e" : "Select person",
19 "12832b4def6eb0b6105b3d11e16066ea" : "Msgid",
20 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
21 "24463f10155b8af973300f86302c4fde" : "Who to notify",
22 "b22e7ea679daf5146f08f477419dd8bd" : "Triggered by",
23 "5da618e8e4b89c66fe86e32cdafde142" : "From",
24 "e4b478c05a833569833f9cc63b6c4354" : "Displaying core_notify{0} - {1} of {2}",
25 "4c3880bb027f159e801041b1021e88e8" : "Method",
26 "a4ecfc70574394990cf17bd83df499f7" : "Event",
27 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
28 "f821027bade4aa6b7a4191cd1676cf41" : "Show Completed"
32 "xtype" : "NestedLayoutPanel",
36 "xtype" : "BorderLayout",
41 "xtype" : "LayoutRegion",
46 "xtype" : "LayoutRegion",
52 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n \n}"
54 "bool background" : true,
57 "title" : "Current Notifications",
58 "xtype" : "GridPanel",
59 "fitContainer" : true,
61 "tableName" : "core_notify",
65 "|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}"
67 "autoExpandColumn" : "person_id_name",
75 "beforeload" : "function (_self, options)\n{\n options.params = options.params || {};\n \n options.params._evtype_align = 1;\n \n if (!_this.toggleBtn.pressed) {\n options.params['event_id'] = 0;\n }\n if (!_this.personCombo) {\n return false;\n }\n var p = _this.personCombo.getValue();\n if (p*1) { \n options.params.person_id = p;\n }\n \n var from = _this.fromDateSel.getValue();\n \n if(from){\n options.params.from = from.format('Y-m-d');\n }\n \n var to = _this.toDateSel.getValue();\n \n if(to){\n options.params.to = to.format('Y-m-d');\n }\n \n var type = _this.typeCombo.getValue();\n \n if(type.length){\n options.params.evtype = type;\n }\n}"
79 "$ sortInfo" : "{ field : 'act_when', direction: 'DESC' }",
81 "* prop" : "dataSource",
84 "$ url" : "baseURL + '/Roo/core_notify.php'",
86 "xtype" : "HttpProxy",
93 "xtype" : "JsonReader",
95 "$ 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]",
97 "totalProperty" : "total"
103 "xtype" : "PagingToolbar",
104 "emptyMsg" : "No core_notify found",
106 "displayInfo" : true,
107 "displayMsg" : "Displaying core_notify{0} - {1} of {2}",
113 "* prop" : "toolbar",
117 "render" : "function (_self)\n{\n _this.personCombo = _self;\n}",
118 "select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}"
121 "triggerAction" : "all",
122 "forceSelection" : true,
123 "selectOnFocus" : true,
125 "displayField" : "person_id_name",
126 "emptyText" : "Select person",
128 "valueField" : "person_id",
129 "xtype" : "ComboBox",
133 "$ xns" : "Roo.form",
134 "qtip" : "Select person",
135 "queryParam" : "query[person_id_name]",
136 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
137 "loadingText" : "Searching...",
141 "|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"
145 "$ sortInfo" : "{ direction : 'ASC', field: 'person_id_name' }",
146 "$ xns" : "Roo.data",
150 "$ url" : "baseURL + '/Roo/core_notify.php'",
152 "xtype" : "HttpProxy",
153 "$ xns" : "Roo.data",
159 "xtype" : "JsonReader",
160 "$ xns" : "Roo.data",
161 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]",
163 "totalProperty" : "total"
170 "xtype" : "Separator",
171 "$ xns" : "Roo.Toolbar"
175 "render" : "function (_self)\n{\n _this.typeCombo = _self;\n}",
176 "select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}"
179 "triggerAction" : "all",
180 "forceSelection" : true,
181 "selectOnFocus" : true,
183 "displayField" : "display_name",
184 "emptyText" : "Select notify type",
186 "valueField" : "name",
187 "xtype" : "ComboBox",
191 "$ xns" : "Roo.form",
192 "qtip" : "Select type",
193 "queryParam" : "query[name]",
194 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b></div>",
195 "loadingText" : "Searching...",
199 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n o.params.etype = 'Core.NotifyType';\n o.params.active = 1;\n}\n"
203 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
204 "$ xns" : "Roo.data",
208 "$ url" : "baseURL + '/Roo/core_enum.php'",
209 "xtype" : "HttpProxy",
211 "$ xns" : "Roo.data",
217 "xtype" : "JsonReader",
218 "$ xns" : "Roo.data",
219 "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"display_name\",\"type\":\"string\"}]",
221 "totalProperty" : "total"
228 "xtype" : "Separator",
229 "$ xns" : "Roo.Toolbar"
233 "xtype" : "TextItem",
234 "$ xns" : "Roo.Toolbar"
238 "render" : "function (_self)\r\n{\r\n _this.fromDateSel = _self;\r\n //_self.setValue( new Date() );\r\n}",
239 "select" : "function (combo, date)\n{\n _this.grid.footer.onClick('first');\n}"
242 "xtype" : "DateField",
247 "xtype" : "Separator",
248 "$ xns" : "Roo.Toolbar"
252 "xtype" : "TextItem",
253 "$ xns" : "Roo.Toolbar"
257 "render" : "function (_self)\r\n{\r\n _this.toDateSel = _self;\r\n //_self.setValue( new Date() );\r\n}",
258 "select" : "function (combo, date)\n{\n _this.grid.footer.onClick('first');\n}"
261 "xtype" : "DateField",
267 "$ xns" : "Roo.Toolbar"
271 "|click" : "function()\n{\n Pman.genericDelete(_this, 'core_notify'); \n}\n "
275 "cls" : "x-btn-text-icon",
276 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
277 "$ xns" : "Roo.Toolbar"
281 "toggle" : "function (_self, pressed)\n{\n this.setText(pressed ? \"Hide Completed\" : \"Show Completed\");\n _this.grid.footer.onClick('first');\n}",
282 "render" : "function (_self)\n{\n _this.toggleBtn = _self;\n}"
284 "text" : "Show Completed",
285 "enableToggle" : true,
287 "$ xns" : "Roo.Toolbar"
292 "xtype" : "ColumnModel",
296 "$ renderer" : "function(v) { return String.format('{0}', v ); }",
297 "$ xns" : "Roo.grid",
298 "* prop" : "colModel[]",
302 "xtype" : "ColumnModel",
306 "$ renderer" : "function(v,x,r) \n{ \n var vv = (typeof(r.data.evtype_align) != 'undefined' && r.data.evtype_align) ? r.data.evtype_align : v;\n return String.format('<span qtip=\"{0}\">{1}</span>', v, vv ); \n}",
307 "$ xns" : "Roo.grid",
308 "* prop" : "colModel[]",
309 "dataIndex" : "evtype"
312 "xtype" : "ColumnModel",
314 "header" : "Act when",
316 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }",
317 "$ xns" : "Roo.grid",
318 "* prop" : "colModel[]",
319 "dataIndex" : "act_when"
322 "xtype" : "ColumnModel",
326 "$ 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 }",
327 "$ xns" : "Roo.grid",
328 "* prop" : "colModel[]",
332 "xtype" : "ColumnModel",
333 "header" : "Ontable",
335 "$ renderer" : "function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }",
336 "$ xns" : "Roo.grid",
337 "* prop" : "colModel[]",
338 "dataIndex" : "ontable"
341 "xtype" : "ColumnModel",
342 "header" : "Who to notify",
344 "$ renderer" : "function(v,x,r) {\n\n var pt = r.data.person_table.toLowerCase() ;\n var pt = pt.length ? pt : 'person';\n var ecol = pt + '_id_email' ;\n var ncol = pt + '_id_name' ;\n return String.format('{0} <u><{1}></u>', r.data[ncol], r.data[ecol]); \n }",
345 "$ xns" : "Roo.grid",
346 "* prop" : "colModel[]",
347 "dataIndex" : "person_id_name"
350 "xtype" : "ColumnModel",
351 "header" : "Triggered by",
353 "$ renderer" : "function(v,x,r) {\n return String.format(\n '{0} : {1} {2}', \n r.data.trigger_event_id_on_table, \n r.data.trigger_event_id_on_id, \n r.data.trigger_event_id_remarks\n ); \n }",
354 "$ xns" : "Roo.grid",
355 "* prop" : "colModel[]",
356 "dataIndex" : "trigger_event_id"
359 "xtype" : "ColumnModel",
362 "$ renderer" : "function(v) { return String.format('{0}', v); }",
363 "$ xns" : "Roo.grid",
364 "* prop" : "colModel[]",
365 "dataIndex" : "msgid"
368 "xtype" : "ColumnModel",
371 "$ renderer" : "function(v) { return String.format('<span qtip=\"{0}\">{0}</span>', v); }",
372 "$ xns" : "Roo.grid",
373 "* prop" : "colModel[]",
374 "dataIndex" : "event_id_remarks"