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;",
218 " options.params['!event_id'] = 0;",
221 " if (!_this.personCombo) {",
224 " var p = _this.personCombo.getValue();",
226 " options.params.person_id = p;",
229 " var from = _this.fromDateSel.getValue();",
232 " options.params.from = from.format('Y-m-d');",
235 " var to = _this.toDateSel.getValue();",
238 " options.params.to = to.format('Y-m-d');",
241 " var type = _this.typeCombo.getValue();",
244 " options.params.evtype = type;",
246 " options.params['search[contains]'] = _this.searchBox.getValue();",
255 "$ xns" : "Roo.grid",
258 "afterselectionchange" : [
261 " // load detail log in _this.viewPanel;",
262 " if (!this.getSelected()) {",
263 " this.viewPanel.setContent(\"Nothing Selected\");",
266 " var id = this.getSelected().data.event_id;",
269 " _this.viewPanel.setContent(\"No Event for this line\"); ",
272 " _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });",
277 "singleSelect" : false,
278 "xtype" : "RowSelectionModel"
283 "displayInfo" : true,
284 "displayMsg" : "Displaying core_notify{0} - {1} of {2}",
285 "emptyMsg" : "No core_notify found",
287 "xtype" : "PagingToolbar"
291 "* prop" : "toolbar",
294 "$ xns" : "Roo.form",
295 "String emptyText" : "Search Subject",
300 " _this.searchBox = this;",
304 "function (_self, e)",
306 " _this.grid.footer.onClick('first');",
310 "xtype" : "TextField"
313 "$ xns" : "Roo.form",
315 "displayField" : "person_id_name",
317 "emptyText" : "Select person",
318 "forceSelection" : true,
321 "$ sortInfo" : "{ direction : 'ASC', field: 'person_id_name' }",
322 "$ xns" : "Roo.data",
326 "$ url" : "baseURL + '/Roo/core_notify.php'",
327 "$ xns" : "Roo.data",
330 "xtype" : "HttpProxy"
333 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]",
334 "$ xns" : "Roo.data",
338 "totalProperty" : "total",
339 "xtype" : "JsonReader"
344 "function (_self, o){",
345 " o.params = o.params || {};",
346 " o.params._distinct='person_id';",
347 " o.params._columns='person_id,person_id_name,person_id_email';",
348 " o.params['!person_id_name'] = '';",
364 " _this.personCombo = _self;",
368 "function (combo, record, index)",
370 " _this.grid.footer.onClick('first');",
374 "loadingText" : "Searching...",
377 "qtip" : "Select person",
378 "queryParam" : "query[person_id_name]",
379 "selectOnFocus" : true,
380 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
381 "triggerAction" : "all",
382 "valueField" : "person_id",
387 "$ xns" : "Roo.Toolbar",
388 "xtype" : "Separator"
391 "$ xns" : "Roo.form",
393 "displayField" : "display_name",
395 "emptyText" : "Select notify type",
396 "forceSelection" : true,
399 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
400 "$ xns" : "Roo.data",
404 "$ url" : "baseURL + '/Roo/core_enum.php'",
405 "$ xns" : "Roo.data",
408 "xtype" : "HttpProxy"
411 "$ fields" : "[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"display_name\",\"type\":\"string\"}]",
412 "$ xns" : "Roo.data",
416 "totalProperty" : "total",
417 "xtype" : "JsonReader"
422 "function (_self, o){",
423 " o.params = o.params || {};",
424 " o.params.etype = 'Core.NotifyType';",
425 " o.params.active = 1;",
439 " _this.typeCombo = _self;",
443 "function (combo, record, index)",
445 " _this.grid.footer.onClick('first');",
449 "loadingText" : "Searching...",
452 "qtip" : "Select type",
453 "queryParam" : "query[name]",
454 "selectOnFocus" : true,
455 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b></div>",
456 "triggerAction" : "all",
457 "valueField" : "name",
462 "$ xns" : "Roo.Toolbar",
463 "xtype" : "Separator"
466 "$ xns" : "Roo.Toolbar",
471 "$ xns" : "Roo.form",
475 "function (_self)\r",
477 " _this.fromDateSel = _self;\r",
478 " //_self.setValue( new Date() );\r",
482 "function (combo, date)",
484 " _this.grid.footer.onClick('first');",
489 "xtype" : "DateField"
492 "$ xns" : "Roo.Toolbar",
493 "xtype" : "Separator"
496 "$ xns" : "Roo.Toolbar",
501 "$ xns" : "Roo.form",
505 "function (_self)\r",
507 " _this.toDateSel = _self;\r",
508 " //_self.setValue( new Date() );\r",
512 "function (combo, date)",
514 " _this.grid.footer.onClick('first');",
519 "xtype" : "DateField"
522 "$ xns" : "Roo.Toolbar",
526 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
527 "$ xns" : "Roo.Toolbar",
528 "cls" : "x-btn-text-icon",
533 " Pman.genericDelete(_this, 'core_notify'); ",
542 "$ xns" : "Roo.Toolbar",
543 "enableToggle" : true,
548 " _this.toggleBtn = _self;",
552 "function (_self, pressed)",
554 " this.setText(pressed ? \"Hide Completed\" : \"Show Completed\");",
555 " _this.grid.footer.onClick('first');",
559 "text" : "Show Completed",
566 "$ renderer" : "function(v) { return String.format('{0}', v ); }",
567 "$ xns" : "Roo.grid",
568 "* prop" : "colModel[]",
573 "xtype" : "ColumnModel"
579 " var vv = (typeof(r.data.evtype_align) != 'undefined' && r.data.evtype_align) ? r.data.evtype_align : v;",
580 " return String.format('<span qtip=\"{0}\">{1}</span>', v, vv ); ",
583 "$ xns" : "Roo.grid",
584 "* prop" : "colModel[]",
585 "dataIndex" : "evtype",
589 "xtype" : "ColumnModel"
592 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }",
593 "$ xns" : "Roo.grid",
594 "* prop" : "colModel[]",
595 "dataIndex" : "act_when",
596 "header" : "Act when",
599 "xtype" : "ColumnModel"
604 " if (r.data.event_id *1 == 0) {",
607 " return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');",
610 "$ xns" : "Roo.grid",
611 "* prop" : "colModel[]",
612 "dataIndex" : "sent",
616 "xtype" : "ColumnModel"
619 "$ renderer" : "function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }",
620 "$ xns" : "Roo.grid",
621 "* prop" : "colModel[]",
622 "dataIndex" : "ontable",
623 "header" : "Ontable",
625 "xtype" : "ColumnModel"
631 " var pt = r.data.person_table.toLowerCase() ;",
632 " var pt = pt.length ? pt : 'person';",
633 " var ecol = pt + '_id_email' ;",
634 " var ncol = pt + '_id_name' ;",
635 " return String.format('{0} <u><{1}></u>', r.data[ncol], r.data[ecol]); ",
638 "$ xns" : "Roo.grid",
639 "* prop" : "colModel[]",
640 "dataIndex" : "person_id_name",
641 "header" : "Who to notify",
643 "xtype" : "ColumnModel"
648 " return String.format(",
649 " '{0} : {1} {2}', ",
650 " r.data.trigger_event_id_on_table, ",
651 " r.data.trigger_event_id_on_id, ",
652 " r.data.trigger_event_id_remarks",
656 "$ xns" : "Roo.grid",
657 "* prop" : "colModel[]",
658 "dataIndex" : "trigger_event_id",
659 "header" : "Triggered by",
661 "xtype" : "ColumnModel"
664 "$ renderer" : "function(v) { return String.format('{0}', v); }",
665 "$ xns" : "Roo.grid",
666 "* prop" : "colModel[]",
667 "dataIndex" : "msgid",
670 "xtype" : "ColumnModel"
673 "$ renderer" : "function(v) { return String.format('<span qtip=\"{0}\">{0}</span>', v); }",
674 "$ xns" : "Roo.grid",
675 "* prop" : "colModel[]",
676 "dataIndex" : "event_id_remarks",
679 "xtype" : "ColumnModel"
686 " _this.grid = this; ",
687 " //_this.dialog = Pman.Dialog.FILL_IN",
688 " if (_this.panel.active) {",
689 " this.footer.onClick('first');",
701 " _this.panel = this;",
702 " if (_this.grid) {",
703 " _this.grid.footer.onClick('first');",
710 "tableName" : "core_notify",
711 "title" : "Current Notifications",
712 "xtype" : "GridPanel"
721 " _this.viewPanel = _self;",
726 "xtype" : "ContentPanel"
729 "xtype" : "BorderLayout"
736 " _this.nest = this;",
740 "xtype" : "NestedLayoutPanel"
744 "name" : "Pman.Tab.AdminNotify",
745 "parent" : "Pman.Tab.AdminWatchNotify",
746 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotify.bjs",
749 "0f6d01b16d57911731aa44b94dbfefcc" : "Act when",
750 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
751 "12832b4def6eb0b6105b3d11e16066ea" : "Msgid",
752 "12ea1a38991aa3bc4992b10adac0f3bc" : "Event Details",
753 "136fac3c5c5881e0a7d0039e57decd68" : "Select notify type",
754 "24463f10155b8af973300f86302c4fde" : "Who to notify",
755 "478192f02d448c49bc6b7d76818d8483" : "Ontable",
756 "4c3880bb027f159e801041b1021e88e8" : "Method",
757 "5da618e8e4b89c66fe86e32cdafde142" : "From",
758 "7f8c0283f16925caed8e632086b81b9c" : "Sent",
759 "8535bcc0f05358a583bb432bbadf7e0d" : "Select type",
760 "a4ecfc70574394990cf17bd83df499f7" : "Event",
761 "aed6676e8238afe7cf55e3baf2ad72a2" : "Search Subject",
762 "b22e7ea679daf5146f08f477419dd8bd" : "Triggered by",
763 "bf1cb7e2a337a5e2ebf614009cbce9cc" : "Current Notifications",
764 "c956c97343a45cca5d492e70c56daa8e" : "Select person",
765 "dc873ea4b71ca217b0d8d1fdd45854ac" : "id#",
766 "dca4dd744d00b6fe1362ef7825ffdee5" : "No core_notify found",
767 "e12167aa0a7698e6ebc92b4ce3909b53" : "To",
768 "e4b478c05a833569833f9cc63b6c4354" : "Displaying core_notify{0} - {1} of {2}",
769 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
770 "f821027bade4aa6b7a4191cd1676cf41" : "Show Completed"
772 "title" : "Pman.Tab.AdminNotify"