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');
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',
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,x,r) {
215 return String.format('{0} <a href="mailto:{1}">{1}</a>', v,r,data.person_id.email);
219 xtype: 'ColumnModel',
223 dataIndex : 'dtstart',
224 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
227 xtype: 'ColumnModel',
232 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
235 xtype: 'ColumnModel',
237 dataIndex : 'last_applied_dt',
238 header : 'Last Notification created',
240 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
243 xtype: 'ColumnModel',
248 renderer : function(v) { return String.format('{0}', v); }
251 xtype: 'ColumnModel',
256 renderer : function(v) { return String.format('{0}', v); }
259 xtype: 'ColumnModel',
263 dataIndex : 'freq_day',
264 renderer : function(v) { return String.format('{0}', v); }
267 xtype: 'ColumnModel',
269 header : 'Freq hour',
271 dataIndex : 'freq_hour',
272 renderer : function(v) { return String.format('{0}', v); }
275 xtype: 'ColumnModel',
280 renderer : function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }
283 xtype: 'ColumnModel',
287 dataIndex : 'method',
288 renderer : function(v) { return String.format('{0}', v); }