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');
32 tableName : 'core_notify',
33 title : "Current 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), function() {
50 _this.grid.footer.onClick('first');
54 autoExpandColumn : 'person_id_name',
60 beforeload : function (_self, options)
62 if (!_this.toggleBtn.pressed) {
63 options.params['event_id'] = 0;
68 sortInfo : { field : 'act_when', direction: 'DESC' },
73 url : baseURL + '/Roo/core_notify.php'
78 totalProperty : 'total',
110 'dateFormat': 'Y-m-d'
117 'name': 'person_id_id',
121 'name': 'person_id_office_id',
125 'name': 'person_id_name',
129 'name': 'person_id_phone',
133 'name': 'person_id_fax',
137 'name': 'person_id_email',
141 'name': 'person_id_company_id',
145 'name': 'person_id_role',
149 'name': 'person_id_active',
153 'name': 'person_id_remarks',
157 'name': 'person_id_passwd',
161 'name': 'person_id_owner_id',
165 'name': 'person_id_lang',
169 'name': 'person_id_no_reset_sent',
173 'name': 'person_id_action_type',
177 'name': 'person_id_project_id',
181 'name': 'person_id_deleted_by',
185 'name': 'person_id_deleted_dt',
189 'name': 'event_id_id',
193 'name': 'event_id_person_name',
197 'name': 'event_id_event_when',
201 'name': 'event_id_action',
205 'name': 'event_id_ipaddr',
209 'name': 'event_id_on_id',
213 'name': 'event_id_on_table',
217 'name': 'event_id_person_id',
221 'name': 'event_id_remarks',
228 xtype: 'PagingToolbar',
232 displayMsg : "Displaying core_notify{0} - {1} of {2}",
233 emptyMsg : "No core_notify found"
243 render : function (_self)
245 _this.toggleBtn = _self;
247 toggle : function (_self, pressed)
249 this.setText(pressed ? "Hide Completed" : "Show Completed");
250 _this.grid.footer.onClick('first');
254 text : "Show Completed"
260 xtype: 'ColumnModel',
262 dataIndex : 'act_when',
266 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }
269 xtype: 'ColumnModel',
275 renderer : function(v,x,r) {
276 if (r.data.event_id *1 == 0) {
279 return String.format('{0}', v ? v.format('d/M/Y') : '');
283 xtype: 'ColumnModel',
285 dataIndex : 'ontable',
288 renderer : function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }
291 xtype: 'ColumnModel',
293 dataIndex : 'person_id_name',
294 header : 'Who to notify',
296 renderer : function(v,x,r) {
297 return String.format('{0} <u><{1}<</u>', v, r.data.person_id_email);
301 xtype: 'ColumnModel',
306 renderer : function(v) { return String.format('{0}', v); }
309 xtype: 'ColumnModel',
311 dataIndex : 'event_id_remarks',
314 renderer : function(v) { return String.format('{0}', v); }