1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 // register the module first
8 Pman.on('beforeload', function()
11 part : ["Admin","Notify"],
12 modKey : '001-Pman.Tab.AdminNotify',
13 module : Pman.Tab.AdminNotify,
16 name : "unnamed module",
22 Pman.Tab.AdminNotify = new Roo.util.Observable({
28 add : function(parentLayout, region)
32 this.parentLayout = parentLayout;
34 this.panel = parentLayout.addxtype({
38 activate : function() {
41 _this.grid.footer.onClick('first');
49 tableName : 'core_notify',
50 title : "Notifications",
58 //_this.dialog = Pman.Dialog.FILL_IN
59 if (_this.panel.active) {
60 this.footer.onClick('first');
63 rowdblclick : function (_self, rowIndex, e)
65 if (!_this.dialog) return;
66 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
67 _this.grid.footer.onClick('first');
71 autoExpandColumn : 'person_id_name',
77 sortInfo : { field : 'act_when', direction: 'ASC' },
82 url : baseURL + '/Roo/core_notify.php'
87 totalProperty : 'total',
119 'dateFormat': 'Y-m-d'
126 'name': 'person_id_id',
130 'name': 'person_id_office_id',
134 'name': 'person_id_name',
138 'name': 'person_id_phone',
142 'name': 'person_id_fax',
146 'name': 'person_id_email',
150 'name': 'person_id_company_id',
154 'name': 'person_id_role',
158 'name': 'person_id_active',
162 'name': 'person_id_remarks',
166 'name': 'person_id_passwd',
170 'name': 'person_id_owner_id',
174 'name': 'person_id_lang',
178 'name': 'person_id_no_reset_sent',
182 'name': 'person_id_action_type',
186 'name': 'person_id_project_id',
190 'name': 'person_id_deleted_by',
194 'name': 'person_id_deleted_dt',
198 'name': 'event_id_id',
202 'name': 'event_id_person_name',
206 'name': 'event_id_event_when',
210 'name': 'event_id_action',
214 'name': 'event_id_ipaddr',
218 'name': 'event_id_on_id',
222 'name': 'event_id_on_table',
226 'name': 'event_id_person_id',
230 'name': 'event_id_remarks',
237 xtype: 'PagingToolbar',
241 displayMsg : "Displaying core_notify{0} - {1} of {2}",
242 emptyMsg : "No core_notify found"
252 text : "Show Completed"
258 xtype: 'ColumnModel',
260 dataIndex : 'act_when',
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 ? v.format('d/M/Y') : ''); }
274 xtype: 'ColumnModel',
276 dataIndex : 'ontable',
279 renderer : function(v,x,r) { return String.format('{0}:{1}', v,r.data.onid); }
282 xtype: 'ColumnModel',
284 dataIndex : 'person_id_name',
285 header : 'Who to notify',
287 renderer : function(v,x,r) {
288 return String.format('{0} <u><{1}<</u>', v, r.data.email);
292 xtype: 'ColumnModel',
297 renderer : function(v) { return String.format('{0}', v); }
300 xtype: 'ColumnModel',
302 dataIndex : 'event_id_remarks',
305 renderer : function(v) { return String.format('{0}', v); }
310 this.layout = this.panel.layout;