1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.AdminNotifyRecur = new Roo.XComponent({
6 part : ["Admin","NotifyRecur"],
7 order : '800-Pman.Tab.AdminNotifyRecur',
9 parent : 'Pman.Tab.AdminWatchNotify',
10 name : "Pman.Tab.AdminNotifyRecur",
21 activate : function() {
24 _this.grid.footer.onClick('first');
32 tableName : 'core_notify_recur',
33 title : "Recurrent Notifications",
41 //_this.dialog = Pman.Dialog.FILL_IN
42 if (_this.panel.active) {
43 this.footer.onClick('first');
46 rowdblclick : function (_self, rowIndex, e)
48 if (!_this.dialog) return;
49 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
50 _this.grid.footer.onClick('first');
54 autoExpandColumn : 'person_id_name',
64 select : function (combo, record, index)
66 (function() { _this.grid.footer.onClick('first'); }).defer(100);
68 render : function (_self)
70 _this.personCombo = _self;
74 displayField : 'person_id_name',
76 emptyText : "Select person",
77 forceSelection : true,
80 loadingText : "Searching...",
84 qtip : "Select core_notify",
85 queryParam : 'query[person_id_name]',
87 tpl : '<div class="x-grid-cell-text x-btn button"><b>{person_id_name}</b> {person_id_email}</div>',
88 triggerAction : 'all',
89 valueField : 'person_id',
95 beforeload : function (_self, o){
96 o.params = o.params || {};
97 o.params._distinct='person_id';
98 o.params._columns='person_id,person_id_name,person_id_email';
99 o.params['!person_id_name'] = '';
105 sortInfo : { direction : 'ASC', field: 'person_id_name' },
110 url : baseURL + '/Roo/core_notify_recur.php'
117 totalProperty : 'total',
118 fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}]
128 sortInfo : { field : 'person_id_name', direction: 'ASC' },
133 url : baseURL + '/Roo/core_notify_recur.php'
138 totalProperty : 'total',
153 'dateFormat': 'Y-m-d'
158 'dateFormat': 'Y-m-d'
161 'name': 'max_applied_dt',
163 'dateFormat': 'Y-m-d'
166 'name': 'updated_dt',
168 'dateFormat': 'Y-m-d'
171 'name': 'last_applied_dt',
173 'dateFormat': 'Y-m-d'
200 'name': 'last_event_id',
211 xtype: 'PagingToolbar',
215 displayMsg : "Displaying core_notify_recur{0} - {1} of {2}",
216 emptyMsg : "No core_notify_recur found"
220 xtype: 'ColumnModel',
222 dataIndex : 'person_id_name',
225 renderer : function(v,x,r) {
226 return String.format('{0} <a href="mailto:{1}">{1}</a>', v,r.data.person_id_email);
230 xtype: 'ColumnModel',
234 dataIndex : 'dtstart',
235 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
238 xtype: 'ColumnModel',
243 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
246 xtype: 'ColumnModel',
248 dataIndex : 'last_applied_dt',
249 header : 'Last Notification created',
251 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
254 xtype: 'ColumnModel',
259 renderer : function(v) { return String.format('{0}', v); }
262 xtype: 'ColumnModel',
267 renderer : function(v) { return String.format('{0}', v); }
270 xtype: 'ColumnModel',
272 dataIndex : 'freq_day',
275 renderer : function(v) { return String.format('{0}', v); }
278 xtype: 'ColumnModel',
280 header : 'Freq hour',
282 dataIndex : 'freq_hour',
283 renderer : function(v) { return String.format('{0}', v); }
286 xtype: 'ColumnModel',
291 renderer : function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }
294 xtype: 'ColumnModel',
296 dataIndex : 'method',
299 renderer : function(v) { return String.format('{0}', v); }