5 "Boolean background" : false,
6 "String region" : "center",
7 "String title" : "Current Notifications",
16 "xtype" : "LayoutRegion"
21 "Boolean collapsible" : true,
22 "Boolean split" : true,
23 "String collapsedTitle" : "View Details",
24 "String title" : "Event Details",
27 "xtype" : "LayoutRegion"
31 "bool background" : false,
32 "fitContainer" : true,
38 "autoExpandColumn" : "person_id_name",
41 "$ sortInfo" : "{ field : 'act_when', direction: 'DESC' }",
43 "* prop" : "dataSource",
46 "$ url" : "baseURL + '/Roo/core_notify.php'",
60 " 'name': 'act_when',",
62 " 'dateFormat': 'Y-m-d'",
69 " 'name': 'ontable',",
73 " 'name': 'person_id',",
83 " 'dateFormat': 'Y-m-d'",
86 " 'name': 'event_id',",
90 " 'name': 'person_id_id',",
94 " 'name': 'person_id_office_id',",
98 " 'name': 'person_id_name',",
102 " 'name': 'person_id_phone',",
106 " 'name': 'person_id_fax',",
110 " 'name': 'person_id_email',",
114 " 'name': 'person_id_company_id',",
118 " 'name': 'person_id_role',",
122 " 'name': 'person_id_active',",
126 " 'name': 'person_id_remarks',",
130 " 'name': 'person_id_passwd',",
134 " 'name': 'person_id_owner_id',",
138 " 'name': 'person_id_lang',",
142 " 'name': 'person_id_no_reset_sent',",
146 " 'name': 'person_id_action_type',",
150 " 'name': 'person_id_project_id',",
154 " 'name': 'person_id_deleted_by',",
158 " 'name': 'person_id_deleted_dt',",
162 " 'name': 'event_id_id',",
166 " 'name': 'event_id_person_name',",
170 " 'name': 'event_id_event_when',",
174 " 'name': 'event_id_action',",
178 " 'name': 'event_id_ipaddr',",
182 " 'name': 'event_id_on_id',",
186 " 'name': 'event_id_on_table',",
190 " 'name': 'event_id_person_id',",
194 " 'name': 'event_id_remarks',",
199 "$ xns" : "Roo.data",
203 "totalProperty" : "total",
204 "xtype" : "JsonReader"
209 "function (_self, options)",
211 " options.params = options.params || {};",
213 " options.params._evtype_align = 1;",
215 " if (!_this.toggleBtn.pressed) {",
216 " options.params.event_id = 0;",
217 " options.params['query[status]'] = 'PENDING';",
219 " options.params['!event_id'] = 0;",
222 " if (!_this.personCombo) {",
225 " var p = _this.personCombo.getValue();",
227 " options.params.person_id = p;",
230 " var from = _this.fromDateSel.getValue();",
233 " options.params.from = from.format('Y-m-d');",
236 " var to = _this.toDateSel.getValue();",
239 " options.params.to = to.format('Y-m-d');",
242 " var type = _this.typeCombo.getValue();",
245 " options.params.evtype = type;",
247 " options.params['search[contains]'] = _this.searchBox.getValue();",
256 "$ xns" : "Roo.grid",
259 "afterselectionchange" : [
262 " // load detail log in _this.viewPanel;",
263 " if (!this.getSelected()) {",
264 " this.viewPanel.setContent(\"Nothing Selected\");",
267 " var id = this.getSelected().data.event_id;",
270 " _this.viewPanel.setContent(\"No Event for this line\"); ",
273 " _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });",
278 "singleSelect" : false,
279 "xtype" : "RowSelectionModel"
284 "displayInfo" : true,
285 "displayMsg" : "Displaying core_notify{0} - {1} of {2}",
286 "emptyMsg" : "No core_notify found",
288 "xtype" : "PagingToolbar"
292 "* prop" : "toolbar",
295 "$ xns" : "Roo.form",
296 "String emptyText" : "Search Subject",
301 " _this.searchBox = this;",
305 "function (_self, e)",
307 " _this.grid.footer.onClick('first');",
311 "xtype" : "TextField"
314 "$ xns" : "Roo.form",
316 "displayField" : "person_id_name",
318 "emptyText" : "Select person",
319 "forceSelection" : true,
322 "$ sortInfo" : "{ direction : 'ASC', field: 'person_id_name' }",
323 "$ xns" : "Roo.data",
327 "$ url" : "baseURL + '/Roo/core_notify.php'",
328 "$ xns" : "Roo.data",
331 "xtype" : "HttpProxy"
334 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]",
335 "$ xns" : "Roo.data",
339 "totalProperty" : "total",
340 "xtype" : "JsonReader"
345 "function (_self, o){",
346 " o.params = o.params || {};",
347 " o.params._distinct='person_id';",
348 " o.params._columns='person_id,person_id_name,person_id_email';",
349 " o.params['!person_id_name'] = '';",
365 " _this.personCombo = _self;",
369 "function (combo, record, index)",
371 " _this.grid.footer.onClick('first');",
375 "loadingText" : "Searching...",
378 "qtip" : "Select person",
379 "queryParam" : "query[person_id_name]",
380 "selectOnFocus" : true,
381 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
382 "triggerAction" : "all",
383 "valueField" : "person_id",
388 "$ xns" : "Roo.Toolbar",
389 "xtype" : "Separator"
392 "$ xns" : "Roo.form",
394 "displayField" : "display_name",
396 "emptyText" : "Select notify type",
397 "forceSelection" : true,
400 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
401 "$ xns" : "Roo.data",
405 "$ url" : "baseURL + '/Roo/core_enum.php'",
406 "$ xns" : "Roo.data",
409 "xtype" : "HttpProxy"
412 "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"display_name\",\"type\":\"string\"}]",
413 "$ xns" : "Roo.data",
417 "totalProperty" : "total",
418 "xtype" : "JsonReader"
423 "function (_self, o){",
424 " o.params = o.params || {};",
425 " o.params.etype = 'Core.NotifyType';",
426 " o.params.active = 1;",
440 " _this.typeCombo = _self;",
444 "function (combo, record, index)",
446 " _this.grid.footer.onClick('first');",
450 "loadingText" : "Searching...",
453 "qtip" : "Select type",
454 "queryParam" : "query[name]",
455 "selectOnFocus" : true,
456 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b></div>",
457 "triggerAction" : "all",
458 "valueField" : "name",
463 "$ xns" : "Roo.Toolbar",
464 "xtype" : "Separator"
467 "$ xns" : "Roo.Toolbar",
472 "$ xns" : "Roo.form",
476 "function (_self)\r",
478 " _this.fromDateSel = _self;\r",
479 " //_self.setValue( new Date() );\r",
483 "function (combo, date)",
485 " _this.grid.footer.onClick('first');",
490 "xtype" : "DateField"
493 "$ xns" : "Roo.Toolbar",
494 "xtype" : "Separator"
497 "$ xns" : "Roo.Toolbar",
502 "$ xns" : "Roo.form",
506 "function (_self)\r",
508 " _this.toDateSel = _self;\r",
509 " //_self.setValue( new Date() );\r",
513 "function (combo, date)",
515 " _this.grid.footer.onClick('first');",
520 "xtype" : "DateField"
523 "$ xns" : "Roo.Toolbar",
527 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
528 "$ xns" : "Roo.Toolbar",
529 "cls" : "x-btn-text-icon",
534 " Pman.genericDelete(_this, 'core_notify'); ",
543 "$ xns" : "Roo.Toolbar",
544 "enableToggle" : true,
549 " _this.toggleBtn = _self;",
553 "function (_self, pressed)",
555 " this.setText(pressed ? \"Hide Completed\" : \"Show Completed\");",
556 " _this.grid.footer.onClick('first');",
560 "text" : "Show Completed",
567 "$ renderer" : "function(v) { return String.format('{0}', v ); }",
568 "$ xns" : "Roo.grid",
569 "* prop" : "colModel[]",
574 "xtype" : "ColumnModel"
580 " var vv = (typeof(r.data.evtype_align) != 'undefined' && r.data.evtype_align) ? r.data.evtype_align : v;",
581 " return String.format('<span qtip=\"{0}\">{1}</span>', v, vv ); ",
584 "$ xns" : "Roo.grid",
585 "* prop" : "colModel[]",
586 "dataIndex" : "evtype",
590 "xtype" : "ColumnModel"
593 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }",
594 "$ xns" : "Roo.grid",
595 "* prop" : "colModel[]",
596 "dataIndex" : "act_when",
597 "header" : "Act when",
600 "xtype" : "ColumnModel"
605 " if (r.data.event_id *1 == 0) {",
608 " return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');",
611 "$ xns" : "Roo.grid",
612 "* prop" : "colModel[]",
613 "dataIndex" : "sent",
617 "xtype" : "ColumnModel"
620 "$ renderer" : "function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }",
621 "$ xns" : "Roo.grid",
622 "* prop" : "colModel[]",
623 "dataIndex" : "ontable",
624 "header" : "Ontable",
626 "xtype" : "ColumnModel"
632 " var pt = r.data.person_table.toLowerCase() ;",
633 " var pt = pt.length ? pt : 'person';",
634 " var ecol = pt + '_id_email' ;",
635 " var ncol = pt + '_id_name' ;",
636 " return String.format('{0} <u><{1}></u>', r.data[ncol], r.data[ecol]); ",
639 "$ xns" : "Roo.grid",
640 "* prop" : "colModel[]",
641 "dataIndex" : "person_id_name",
642 "header" : "Who to notify",
644 "xtype" : "ColumnModel"
649 " return String.format(",
650 " '{0} : {1} {2}', ",
651 " r.data.trigger_event_id_on_table, ",
652 " r.data.trigger_event_id_on_id, ",
653 " r.data.trigger_event_id_remarks",
657 "$ xns" : "Roo.grid",
658 "* prop" : "colModel[]",
659 "dataIndex" : "trigger_event_id",
660 "header" : "Triggered by",
662 "xtype" : "ColumnModel"
665 "$ renderer" : "function(v) { return String.format('{0}', v); }",
666 "$ xns" : "Roo.grid",
667 "* prop" : "colModel[]",
668 "dataIndex" : "msgid",
671 "xtype" : "ColumnModel"
674 "$ renderer" : "function(v) { return String.format('<span qtip=\"{0}\">{0}</span>', v); }",
675 "$ xns" : "Roo.grid",
676 "* prop" : "colModel[]",
677 "dataIndex" : "event_id_remarks",
680 "xtype" : "ColumnModel"
687 " _this.grid = this; ",
688 " //_this.dialog = Pman.Dialog.FILL_IN",
689 " if (_this.panel.active) {",
690 " this.footer.onClick('first');",
702 " _this.panel = this;",
703 " if (_this.grid) {",
704 " _this.grid.footer.onClick('first');",
711 "tableName" : "core_notify",
712 "title" : "Current Notifications",
713 "xtype" : "GridPanel"
722 " _this.viewPanel = _self;",
727 "xtype" : "ContentPanel"
730 "xtype" : "BorderLayout"
737 " _this.nest = this;",
741 "xtype" : "NestedLayoutPanel"
745 "name" : "Pman.Tab.AdminNotify",
746 "parent" : "Pman.Tab.AdminWatchNotify",
747 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotify.bjs",
750 "0f6d01b16d57911731aa44b94dbfefcc" : "Act when",
751 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
752 "12832b4def6eb0b6105b3d11e16066ea" : "Msgid",
753 "12ea1a38991aa3bc4992b10adac0f3bc" : "Event Details",
754 "136fac3c5c5881e0a7d0039e57decd68" : "Select notify type",
755 "24463f10155b8af973300f86302c4fde" : "Who to notify",
756 "478192f02d448c49bc6b7d76818d8483" : "Ontable",
757 "4c3880bb027f159e801041b1021e88e8" : "Method",
758 "5da618e8e4b89c66fe86e32cdafde142" : "From",
759 "7f8c0283f16925caed8e632086b81b9c" : "Sent",
760 "8535bcc0f05358a583bb432bbadf7e0d" : "Select type",
761 "a4ecfc70574394990cf17bd83df499f7" : "Event",
762 "aed6676e8238afe7cf55e3baf2ad72a2" : "Search Subject",
763 "b22e7ea679daf5146f08f477419dd8bd" : "Triggered by",
764 "bf1cb7e2a337a5e2ebf614009cbce9cc" : "Current Notifications",
765 "c956c97343a45cca5d492e70c56daa8e" : "Select person",
766 "dc873ea4b71ca217b0d8d1fdd45854ac" : "id#",
767 "dca4dd744d00b6fe1362ef7825ffdee5" : "No core_notify found",
768 "e12167aa0a7698e6ebc92b4ce3909b53" : "To",
769 "e4b478c05a833569833f9cc63b6c4354" : "Displaying core_notify{0} - {1} of {2}",
770 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
771 "f821027bade4aa6b7a4191cd1676cf41" : "Show Completed"
773 "title" : "Pman.Tab.AdminNotify"