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',
45 activate : function() {
48 _this.grid.footer.onClick('first');
55 autoExpandColumn : 'person_name',
61 //_this.dialog = Pman.Dialog.FILL_IN
62 if (_this.panel.active) {
63 this.footer.onClick('first');
66 rowdblclick : function (_self, rowIndex, e)
68 if (!_this.dialog) return;
69 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
70 _this.grid.footer.onClick('first');
78 sortInfo : { field : 'person_name', direction: 'ASC' },
83 url : baseURL + '/Roo/Events.php'
88 totalProperty : 'total',
97 'name': 'person_name',
101 'name': 'event_when',
103 'dateFormat': 'Y-m-d'
130 'name': 'person_table',
134 'name': 'person_id_id',
138 'name': 'person_id_office_id',
142 'name': 'person_id_name',
146 'name': 'person_id_phone',
150 'name': 'person_id_fax',
154 'name': 'person_id_email',
158 'name': 'person_id_company_id',
162 'name': 'person_id_role',
166 'name': 'person_id_active',
170 'name': 'person_id_remarks',
174 'name': 'person_id_passwd',
178 'name': 'person_id_owner_id',
182 'name': 'person_id_lang',
186 'name': 'person_id_no_reset_sent',
190 'name': 'person_id_action_type',
194 'name': 'person_id_project_id',
198 'name': 'person_id_deleted_by',
202 'name': 'person_id_deleted_dt',
206 'name': 'person_id_firstname',
210 'name': 'person_id_lastname',
217 xtype: 'PagingToolbar',
221 displayMsg : "Displaying Events{0} - {1} of {2}",
222 emptyMsg : "No Events found"
232 cls : 'x-btn-text-icon',
233 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
237 if (!_this.dialog) return;
238 _this.dialog.show( { id : 0 } , function() {
239 _this.grid.footer.onClick('first');
248 cls : 'x-btn-text-icon',
249 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
253 var s = _this.grid.getSelectionModel().getSelections();
254 if (!s.length || (s.length > 1)) {
255 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
258 if (!_this.dialog) return;
259 _this.dialog.show(s[0].data, function() {
260 _this.grid.footer.onClick('first');
270 cls : 'x-btn-text-icon',
271 icon : rootURL + '/Pman/templates/images/trash.gif',
275 Pman.genericDelete(_this, 'Events');
283 xtype: 'ColumnModel',
288 renderer : function(v) { return String.format('{0}', v); }
291 xtype: 'ColumnModel',
293 header : 'Person name',
295 dataIndex : 'person_name',
296 renderer : function(v) { return String.format('{0}', v); }
299 xtype: 'ColumnModel',
301 header : 'Event when',
303 dataIndex : 'event_when',
304 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
307 xtype: 'ColumnModel',
311 dataIndex : 'action',
312 renderer : function(v) { return String.format('{0}', v); }
315 xtype: 'ColumnModel',
319 dataIndex : 'ipaddr',
320 renderer : function(v) { return String.format('{0}', v); }
323 xtype: 'ColumnModel',
328 renderer : function(v) { return String.format('{0}', v); }
331 xtype: 'ColumnModel',
335 dataIndex : 'on_table',
336 renderer : function(v) { return String.format('{0}', v); }
339 xtype: 'ColumnModel',
343 dataIndex : 'person_id',
344 renderer : function(v) { return String.format('{0}', v); }
347 xtype: 'ColumnModel',
351 dataIndex : 'remarks',
352 renderer : function(v) { return String.format('{0}', v); }
355 xtype: 'ColumnModel',
357 header : 'Person table',
359 dataIndex : 'person_table',
360 renderer : function(v) { return String.format('{0}', v); }