3 "name": "Pman.Tab.AdminNotifyRecur",
4 "parent": "Pman.Tab.AdminWatchNotify",
5 "title": "Pman.Tab.AdminNotifyRecur",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotifyRecur.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "core_notify_recur",
17 "title": "Recurrent 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).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
27 "autoExpandColumn": "person_id_name",
39 "select": "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}",
40 "render": "function (_self)\n{\n _this.personCombo = _self;\n}"
43 "displayField": "person_id_name",
45 "emptyText": "Select person",
46 "forceSelection": true,
49 "loadingText": "Searching...",
53 "qtip": "Select core_notify",
54 "queryParam": "query[person_id_name]",
55 "selectOnFocus": true,
56 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
57 "triggerAction": "all",
58 "valueField": "person_id",
65 "|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"
70 "|sortInfo": "{ direction : 'ASC', field: 'person_id_name' }",
77 "|url": "baseURL + '/Roo/core_notify_recur.php'",
82 "xtype": "JsonReader",
86 "totalProperty": "total",
87 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]"
97 "beforeload": "function (_self, options)\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}"
99 "*prop": "dataSource",
102 "|sortInfo": "{ field : 'person_id_name', direction: 'ASC' }",
107 "xtype": "HttpProxy",
109 "|url": "baseURL + '/Roo/core_notify_recur.php'",
114 "xtype": "JsonReader",
115 "totalProperty": "total",
119 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'dtstart',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'dtend',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'max_applied_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'updated_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'last_applied_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'tz',\n 'type': 'string'\n },\n {\n 'name': 'freq',\n 'type': 'string'\n },\n {\n 'name': 'freq_day',\n 'type': 'string'\n },\n {\n 'name': 'freq_hour',\n 'type': 'string'\n },\n {\n 'name': 'onid',\n 'type': 'int'\n },\n {\n 'name': 'ontable',\n 'type': 'string'\n },\n {\n 'name': 'last_event_id',\n 'type': 'int'\n },\n {\n 'name': 'method',\n 'type': 'string'\n }\n]"
125 "xtype": "PagingToolbar",
128 "displayMsg": "Displaying core_notify_recur{0} - {1} of {2}",
129 "emptyMsg": "No core_notify_recur found",
133 "*prop": "colModel[]",
134 "dataIndex": "person_id_name",
137 "xtype": "ColumnModel",
138 "|renderer": "function(v,x,r) { \n return String.format('{0} <a href=\"mailto:{1}\">{1}</a>', v,r.data.person_id_email); \n}",
142 "xtype": "ColumnModel",
145 "dataIndex": "dtstart",
146 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
148 "*prop": "colModel[]"
151 "xtype": "ColumnModel",
154 "dataIndex": "dtend",
155 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
157 "*prop": "colModel[]"
160 "*prop": "colModel[]",
161 "dataIndex": "last_applied_dt",
162 "header": "Last Notification created",
164 "xtype": "ColumnModel",
165 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
169 "*prop": "colModel[]",
173 "xtype": "ColumnModel",
174 "|renderer": "function(v) { return String.format('{0}', v); }",
178 "*prop": "colModel[]",
182 "xtype": "ColumnModel",
183 "|renderer": "function(v) { return String.format('{0}', v); }",
187 "*prop": "colModel[]",
188 "dataIndex": "freq_day",
189 "header": "Freq day",
191 "xtype": "ColumnModel",
192 "|renderer": "function(v) { return String.format('{0}', v); }",
196 "xtype": "ColumnModel",
197 "header": "Freq hour",
199 "dataIndex": "freq_hour",
200 "|renderer": "function(v) { return String.format('{0}', v); }",
202 "*prop": "colModel[]"
205 "*prop": "colModel[]",
209 "xtype": "ColumnModel",
210 "|renderer": "function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }",
214 "*prop": "colModel[]",
215 "dataIndex": "method",
218 "xtype": "ColumnModel",
219 "|renderer": "function(v) { return String.format('{0}', v); }",