1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.AdminEventLog = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
44 activate : function() {
47 _this.grid.footer.onClick('first');
54 autoExpandColumn : 'person_name',
60 //_this.dialog = Pman.Dialog.FILL_IN
61 if (_this.panel.active) {
62 this.footer.onClick('first');
65 rowdblclick : function (_self, rowIndex, e)
67 if (!_this.dialog) return;
68 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
69 _this.grid.footer.onClick('first');
77 sortInfo : { field : 'person_name', direction: 'ASC' },
82 url : baseURL + '/Roo/Events.php'
87 totalProperty : 'total',
96 'name': 'person_name',
100 'name': 'event_when',
102 'dateFormat': 'Y-m-d'
129 'name': 'person_table',
133 'name': 'person_id_id',
137 'name': 'person_id_office_id',
141 'name': 'person_id_name',
145 'name': 'person_id_phone',
149 'name': 'person_id_fax',
153 'name': 'person_id_email',
157 'name': 'person_id_company_id',
161 'name': 'person_id_role',
165 'name': 'person_id_active',
169 'name': 'person_id_remarks',
173 'name': 'person_id_passwd',
177 'name': 'person_id_owner_id',
181 'name': 'person_id_lang',
185 'name': 'person_id_no_reset_sent',
189 'name': 'person_id_action_type',
193 'name': 'person_id_project_id',
197 'name': 'person_id_deleted_by',
201 'name': 'person_id_deleted_dt',
205 'name': 'person_id_firstname',
209 'name': 'person_id_lastname',
216 xtype: 'PagingToolbar',
220 displayMsg : "Displaying Events{0} - {1} of {2}",
221 emptyMsg : "No Events found"
231 cls : 'x-btn-text-icon',
232 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
236 if (!_this.dialog) return;
237 _this.dialog.show( { id : 0 } , function() {
238 _this.grid.footer.onClick('first');
247 cls : 'x-btn-text-icon',
248 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
252 var s = _this.grid.getSelectionModel().getSelections();
253 if (!s.length || (s.length > 1)) {
254 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
257 if (!_this.dialog) return;
258 _this.dialog.show(s[0].data, function() {
259 _this.grid.footer.onClick('first');
269 cls : 'x-btn-text-icon',
270 icon : rootURL + '/Pman/templates/images/trash.gif',
274 Pman.genericDelete(_this, 'Events');
282 xtype: 'ColumnModel',
287 renderer : function(v) { return String.format('{0}', v); }
290 xtype: 'ColumnModel',
292 header : 'Person name',
294 dataIndex : 'person_name',
295 renderer : function(v) { return String.format('{0}', v); }
298 xtype: 'ColumnModel',
300 header : 'Event when',
302 dataIndex : 'event_when',
303 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
306 xtype: 'ColumnModel',
310 dataIndex : 'action',
311 renderer : function(v) { return String.format('{0}', v); }
314 xtype: 'ColumnModel',
318 dataIndex : 'ipaddr',
319 renderer : function(v) { return String.format('{0}', v); }
322 xtype: 'ColumnModel',
327 renderer : function(v) { return String.format('{0}', v); }
330 xtype: 'ColumnModel',
334 dataIndex : 'on_table',
335 renderer : function(v) { return String.format('{0}', v); }
338 xtype: 'ColumnModel',
342 dataIndex : 'person_id',
343 renderer : function(v) { return String.format('{0}', v); }
346 xtype: 'ColumnModel',
350 dataIndex : 'remarks',
351 renderer : function(v) { return String.format('{0}', v); }
354 xtype: 'ColumnModel',
356 header : 'Person table',
358 dataIndex : 'person_table',
359 renderer : function(v) { return String.format('{0}', v); }