1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Tab');
7 Pman.Tab.AdminNotifyRecur = new Roo.XComponent({
10 '04df30d61712300fd31c24e2c7c8f9bc' :"Select core_notify",
11 'be3c26f9baf09972ddc410c5c7c63403' :"Displaying core_notify_recur{0} - {1} of {2}",
12 '808e3eefe289c698ec4def4a54ac36af' :"Last Notification created",
13 '13a831874352b548ac7b5e63a860aa1b' :"Tz",
14 'c348b06d2667edd048ded3c1b1878cc1' :"Recurrent Notifications",
15 'c956c97343a45cca5d492e70c56daa8e' :"Select person",
16 '25af45209313b11d55424103567a1347' :"Dtend",
17 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
18 'effad6ff1d36887ce57d05300912bf61' :"No core_notify_recur found",
19 '83b9a425d6b152330823ab8357f441ae' :"Dtstart",
20 'ac2c474467a60fa4e2c88158a6d2abf9' :"Freq day",
21 '40bed7cf9b3d4bb3a3d7a7e3eb18c5eb' :"Person",
22 '6ffde0d71e2b678e619e4a642d0b22a6' :"Freq hour",
23 '4c3880bb027f159e801041b1021e88e8' :"Method",
24 'd8d80ec41fc8cca7569ac2d2937bd97b' :"Affects",
25 '84307c751e4541f54714472e3df742dd' :"Freq"
28 part : ["Admin", "NotifyRecur" ],
29 order : '800-Pman.Tab.AdminNotifyRecur',
31 parent : 'Pman.Tab.AdminWatchNotify',
32 name : "Pman.Tab.AdminNotifyRecur",
44 tableName : 'core_notify_recur',
45 title : _this._strings['c348b06d2667edd048ded3c1b1878cc1'] /* Recurrent Notifications */,
50 activate : function() {
53 _this.grid.footer.onClick('first');
58 autoExpandColumn : 'person_id_name',
67 //_this.dialog = Pman.Dialog.FILL_IN
68 if (_this.panel.active) {
69 this.footer.onClick('first');
72 rowdblclick : function (_self, rowIndex, e)
74 if (!_this.dialog) { return; }
75 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
76 _this.grid.footer.onClick('first');
82 displayMsg : _this._strings['be3c26f9baf09972ddc410c5c7c63403'] /* Displaying core_notify_recur{0} - {1} of {2} */,
83 emptyMsg : _this._strings['effad6ff1d36887ce57d05300912bf61'] /* No core_notify_recur found */,
87 xtype : 'PagingToolbar'
96 displayField : 'person_id_name',
98 emptyText : _this._strings['c956c97343a45cca5d492e70c56daa8e'] /* Select person */,
99 forceSelection : true,
102 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
106 qtip : _this._strings['04df30d61712300fd31c24e2c7c8f9bc'] /* Select core_notify */,
107 queryParam : 'query[person_id_name]',
108 selectOnFocus : true,
109 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>',
110 triggerAction : 'all',
111 valueField : 'person_id',
117 render : function (_self)
119 _this.personCombo = _self;
121 select : function (combo, record, index)
123 (function() { _this.grid.footer.onClick('first'); }).defer(100);
128 sortInfo : { direction : 'ASC', field: 'person_id_name' },
133 beforeload : function (_self, o){
134 o.params = o.params || {};
135 o.params._distinct='person_id';
136 o.params._columns='person_id,person_id_name,person_id_email';
137 o.params['!person_id_name'] = '';
144 url : baseURL + '/Roo/core_notify_recur.php',
150 fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}],
153 totalProperty : 'total',
164 sortInfo : { field : 'person_id_name', direction: 'ASC' },
169 beforeload : function (_self, options)
171 if (!_this.personCombo) {
174 var p = _this.personCombo.getValue();
176 options.params.person_id = p;
182 url : baseURL + '/Roo/core_notify_recur.php',
200 'dateFormat': 'Y-m-d'
205 'dateFormat': 'Y-m-d'
208 'name': 'max_applied_dt',
210 'dateFormat': 'Y-m-d'
213 'name': 'updated_dt',
215 'dateFormat': 'Y-m-d'
218 'name': 'last_applied_dt',
220 'dateFormat': 'Y-m-d'
247 'name': 'last_event_id',
257 totalProperty : 'total',
265 dataIndex : 'person_id_name',
266 header : _this._strings['40bed7cf9b3d4bb3a3d7a7e3eb18c5eb'] /* Person */,
267 renderer : function(v,x,r) {
268 return String.format('{0} <a href="mailto:{1}">{1}</a>', v,r.data.person_id_email);
273 xtype : 'ColumnModel'
276 dataIndex : 'dtstart',
277 header : _this._strings['83b9a425d6b152330823ab8357f441ae'] /* Dtstart */,
278 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
282 xtype : 'ColumnModel'
286 header : _this._strings['25af45209313b11d55424103567a1347'] /* Dtend */,
287 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
291 xtype : 'ColumnModel'
294 dataIndex : 'last_applied_dt',
295 header : _this._strings['808e3eefe289c698ec4def4a54ac36af'] /* Last Notification created */,
296 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
300 xtype : 'ColumnModel'
304 header : _this._strings['13a831874352b548ac7b5e63a860aa1b'] /* Tz */,
305 renderer : function(v) { return String.format('{0}', v); },
309 xtype : 'ColumnModel'
313 header : _this._strings['84307c751e4541f54714472e3df742dd'] /* Freq */,
314 renderer : function(v) { return String.format('{0}', v); },
318 xtype : 'ColumnModel'
321 dataIndex : 'freq_day',
322 header : _this._strings['ac2c474467a60fa4e2c88158a6d2abf9'] /* Freq day */,
323 renderer : function(v) { return String.format('{0}', v); },
327 xtype : 'ColumnModel'
330 dataIndex : 'freq_hour',
331 header : _this._strings['6ffde0d71e2b678e619e4a642d0b22a6'] /* Freq hour */,
332 renderer : function(v) { return String.format('{0}', v); },
336 xtype : 'ColumnModel'
340 header : _this._strings['d8d80ec41fc8cca7569ac2d2937bd97b'] /* Affects */,
341 renderer : function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); },
345 xtype : 'ColumnModel'
348 dataIndex : 'method',
349 header : _this._strings['4c3880bb027f159e801041b1021e88e8'] /* Method */,
350 renderer : function(v) { return String.format('{0}', v); },
354 xtype : 'ColumnModel'