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",
20 title : "core_notify_recur",
23 tableName : 'core_notify_recur',
27 activate : function() {
30 _this.grid.footer.onClick('first');
37 autoExpandColumn : 'tz',
43 //_this.dialog = Pman.Dialog.FILL_IN
44 if (_this.panel.active) {
45 this.footer.onClick('first');
48 rowdblclick : function (_self, rowIndex, e)
50 if (!_this.dialog) return;
51 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
52 _this.grid.footer.onClick('first');
60 sortInfo : { field : 'tz', direction: 'ASC' },
65 url : baseURL + '/Roo/core_notify_recur.php'
70 totalProperty : 'total',
93 'name': 'max_applied_dt',
100 'dateFormat': 'Y-m-d'
103 'name': 'last_applied_dt',
105 'dateFormat': 'Y-m-d'
132 'name': 'last_event_id',
143 xtype: 'PagingToolbar',
147 displayMsg : "Displaying core_notify_recur{0} - {1} of {2}",
148 emptyMsg : "No core_notify_recur found"
158 cls : 'x-btn-text-icon',
159 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
163 if (!_this.dialog) return;
164 _this.dialog.show( { id : 0 } , function() {
165 _this.grid.footer.onClick('first');
174 cls : 'x-btn-text-icon',
175 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
179 var s = _this.grid.getSelectionModel().getSelections();
180 if (!s.length || (s.length > 1)) {
181 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
184 if (!_this.dialog) return;
185 _this.dialog.show(s[0].data, function() {
186 _this.grid.footer.onClick('first');
196 cls : 'x-btn-text-icon',
197 icon : rootURL + '/Pman/templates/images/trash.gif',
201 Pman.genericDelete(_this, 'core_notify_recur');
209 xtype: 'ColumnModel',
211 dataIndex : 'person_id_name',
214 renderer : function(v) { return String.format('{0}', v); }
217 xtype: 'ColumnModel',
221 dataIndex : 'dtstart',
222 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
225 xtype: 'ColumnModel',
230 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
233 xtype: 'ColumnModel',
235 header : 'Max applied dt',
237 dataIndex : 'max_applied_dt',
238 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
241 xtype: 'ColumnModel',
243 header : 'Updated dt',
245 dataIndex : 'updated_dt',
246 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
249 xtype: 'ColumnModel',
251 header : 'Last applied dt',
253 dataIndex : 'last_applied_dt',
254 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
257 xtype: 'ColumnModel',
262 renderer : function(v) { return String.format('{0}', v); }
265 xtype: 'ColumnModel',
270 renderer : function(v) { return String.format('{0}', v); }
273 xtype: 'ColumnModel',
277 dataIndex : 'freq_day',
278 renderer : function(v) { return String.format('{0}', v); }
281 xtype: 'ColumnModel',
283 header : 'Freq hour',
285 dataIndex : 'freq_hour',
286 renderer : function(v) { return String.format('{0}', v); }
289 xtype: 'ColumnModel',
294 renderer : function(v) { return String.format('{0}', v); }
297 xtype: 'ColumnModel',
301 dataIndex : 'ontable',
302 renderer : function(v) { return String.format('{0}', v); }
305 xtype: 'ColumnModel',
307 header : 'Last event',
309 dataIndex : 'last_event_id',
310 renderer : function(v) { return String.format('{0}', v); }
313 xtype: 'ColumnModel',
317 dataIndex : 'method',
318 renderer : function(v) { return String.format('{0}', v); }