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 sortInfo : { field : 'person_id_name', direction: 'ASC' },
69 url : baseURL + '/Roo/core_notify_recur.php'
74 totalProperty : 'total',
97 'name': 'max_applied_dt',
102 'name': 'updated_dt',
104 'dateFormat': 'Y-m-d'
107 'name': 'last_applied_dt',
109 'dateFormat': 'Y-m-d'
136 'name': 'last_event_id',
147 xtype: 'PagingToolbar',
151 displayMsg : "Displaying core_notify_recur{0} - {1} of {2}",
152 emptyMsg : "No core_notify_recur found"
156 xtype: 'ColumnModel',
158 dataIndex : 'person_id_name',
161 renderer : function(v,x,r) {
162 return String.format('{0} <a href="mailto:{1}">{1}</a>', v,r.data.person_id_email);
166 xtype: 'ColumnModel',
170 dataIndex : 'dtstart',
171 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
174 xtype: 'ColumnModel',
179 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
182 xtype: 'ColumnModel',
184 dataIndex : 'last_applied_dt',
185 header : 'Last Notification created',
187 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
190 xtype: 'ColumnModel',
195 renderer : function(v) { return String.format('{0}', v); }
198 xtype: 'ColumnModel',
203 renderer : function(v) { return String.format('{0}', v); }
206 xtype: 'ColumnModel',
208 dataIndex : 'freq_day',
211 renderer : function(v) { return String.format('{0}', v); }
214 xtype: 'ColumnModel',
216 header : 'Freq hour',
218 dataIndex : 'freq_hour',
219 renderer : function(v) { return String.format('{0}', v); }
222 xtype: 'ColumnModel',
227 renderer : function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }
230 xtype: 'ColumnModel',
232 dataIndex : 'method',
235 renderer : function(v) { return String.format('{0}', v); }