1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.AdminNotify = new Roo.XComponent({
6 part : ["Admin","Notify"],
7 order : '001-Pman.Tab.AdminNotify',
9 parent : 'Pman.Tab.AdminWatchNotify',
10 name : "Pman.Tab.AdminNotify",
21 activate : function() {
24 _this.grid.footer.onClick('first');
33 tableName : 'core_notify',
34 title : "Current Notifications",
42 //_this.dialog = Pman.Dialog.FILL_IN
43 if (_this.panel.active) {
44 this.footer.onClick('first');
47 rowdblclick : function (_self, rowIndex, e)
49 if (!_this.dialog) return;
50 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
51 _this.grid.footer.onClick('first');
55 autoExpandColumn : 'person_id_name',
61 beforeload : function (_self, options)
63 if (!_this.toggleBtn.pressed) {
64 options.params['event_id'] = 0;
69 sortInfo : { field : 'act_when', direction: 'DESC' },
74 url : baseURL + '/Roo/core_notify.php'
79 totalProperty : 'total',
111 'dateFormat': 'Y-m-d'
118 'name': 'person_id_id',
122 'name': 'person_id_office_id',
126 'name': 'person_id_name',
130 'name': 'person_id_phone',
134 'name': 'person_id_fax',
138 'name': 'person_id_email',
142 'name': 'person_id_company_id',
146 'name': 'person_id_role',
150 'name': 'person_id_active',
154 'name': 'person_id_remarks',
158 'name': 'person_id_passwd',
162 'name': 'person_id_owner_id',
166 'name': 'person_id_lang',
170 'name': 'person_id_no_reset_sent',
174 'name': 'person_id_action_type',
178 'name': 'person_id_project_id',
182 'name': 'person_id_deleted_by',
186 'name': 'person_id_deleted_dt',
190 'name': 'event_id_id',
194 'name': 'event_id_person_name',
198 'name': 'event_id_event_when',
202 'name': 'event_id_action',
206 'name': 'event_id_ipaddr',
210 'name': 'event_id_on_id',
214 'name': 'event_id_on_table',
218 'name': 'event_id_person_id',
222 'name': 'event_id_remarks',
229 xtype: 'PagingToolbar',
233 displayMsg : "Displaying core_notify{0} - {1} of {2}",
234 emptyMsg : "No core_notify found"
245 emptyText : "Select core_notify",
246 forceSelection : true,
248 loadingText : "Searching...",
251 qtip : "Select core_notify",
252 selectOnFocus : true,
253 triggerAction : 'all',
256 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
258 fieldLabel : 'core_notify',
267 sortInfo : { direction : 'ASC', field: 'id' },
269 beforeload : function (_self, o){
270 o.params = o.params || {};
278 url : baseURL + '/Roo/core_notify.php'
285 totalProperty : 'total',
286 fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}]
298 render : function (_self)
300 _this.toggleBtn = _self;
302 toggle : function (_self, pressed)
304 this.setText(pressed ? "Hide Completed" : "Show Completed");
305 _this.grid.footer.onClick('first');
309 text : "Show Completed"
315 xtype: 'ColumnModel',
321 renderer : function(v) { return String.format('{0}', v ); }
324 xtype: 'ColumnModel',
326 dataIndex : 'evtype',
330 renderer : function(v) { return String.format('{0}', v ); }
333 xtype: 'ColumnModel',
335 dataIndex : 'act_when',
339 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }
342 xtype: 'ColumnModel',
348 renderer : function(v,x,r) {
349 if (r.data.event_id *1 == 0) {
352 return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');
356 xtype: 'ColumnModel',
358 dataIndex : 'ontable',
361 renderer : function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }
364 xtype: 'ColumnModel',
366 dataIndex : 'person_id_name',
367 header : 'Who to notify',
369 renderer : function(v,x,r) {
370 return String.format('{0} <u><{1}></u>', v, r.data.person_id_email);
374 xtype: 'ColumnModel',
379 renderer : function(v) { return String.format('{0}', v); }
382 xtype: 'ColumnModel',
384 dataIndex : 'event_id_remarks',
387 renderer : function(v) { return String.format('{0}', v); }