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 beforeload : function (_self, options)
130 if (!_this.personCombo) {
133 var p = _this.personCombo.getValue();
135 options.params.person_id = p;
140 sortInfo : { field : 'person_id_name', direction: 'ASC' },
145 url : baseURL + '/Roo/core_notify_recur.php'
150 totalProperty : 'total',
165 'dateFormat': 'Y-m-d'
170 'dateFormat': 'Y-m-d'
173 'name': 'max_applied_dt',
175 'dateFormat': 'Y-m-d'
178 'name': 'updated_dt',
180 'dateFormat': 'Y-m-d'
183 'name': 'last_applied_dt',
185 'dateFormat': 'Y-m-d'
212 'name': 'last_event_id',
223 xtype: 'PagingToolbar',
227 displayMsg : "Displaying core_notify_recur{0} - {1} of {2}",
228 emptyMsg : "No core_notify_recur found"
232 xtype: 'ColumnModel',
234 dataIndex : 'person_id_name',
237 renderer : function(v,x,r) {
238 return String.format('{0} <a href="mailto:{1}">{1}</a>', v,r.data.person_id_email);
242 xtype: 'ColumnModel',
246 dataIndex : 'dtstart',
247 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
250 xtype: 'ColumnModel',
255 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
258 xtype: 'ColumnModel',
260 dataIndex : 'last_applied_dt',
261 header : 'Last Notification created',
263 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
266 xtype: 'ColumnModel',
271 renderer : function(v) { return String.format('{0}', v); }
274 xtype: 'ColumnModel',
279 renderer : function(v) { return String.format('{0}', v); }
282 xtype: 'ColumnModel',
284 dataIndex : 'freq_day',
287 renderer : function(v) { return String.format('{0}', v); }
290 xtype: 'ColumnModel',
292 header : 'Freq hour',
294 dataIndex : 'freq_hour',
295 renderer : function(v) { return String.format('{0}', v); }
298 xtype: 'ColumnModel',
303 renderer : function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }
306 xtype: 'ColumnModel',
308 dataIndex : 'method',
311 renderer : function(v) { return String.format('{0}', v); }