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',
46 activate : function() {
49 _this.grid.footer.onClick('first');
56 autoExpandColumn : 'person_name',
62 //_this.dialog = Pman.Dialog.FILL_IN
63 if (_this.panel.active) {
64 this.footer.onClick('first');
67 rowdblclick : function (_self, rowIndex, e)
69 if (!_this.dialog) return;
70 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
71 _this.grid.footer.onClick('first');
79 sortInfo : { field : 'person_name', direction: 'ASC' },
84 url : baseURL + '/Roo/Events.php'
89 totalProperty : 'total',
98 'name': 'person_name',
102 'name': 'event_when',
104 'dateFormat': 'Y-m-d'
131 'name': 'person_table',
135 'name': 'person_id_id',
139 'name': 'person_id_office_id',
143 'name': 'person_id_name',
147 'name': 'person_id_phone',
151 'name': 'person_id_fax',
155 'name': 'person_id_email',
159 'name': 'person_id_company_id',
163 'name': 'person_id_role',
167 'name': 'person_id_active',
171 'name': 'person_id_remarks',
175 'name': 'person_id_passwd',
179 'name': 'person_id_owner_id',
183 'name': 'person_id_lang',
187 'name': 'person_id_no_reset_sent',
191 'name': 'person_id_action_type',
195 'name': 'person_id_project_id',
199 'name': 'person_id_deleted_by',
203 'name': 'person_id_deleted_dt',
207 'name': 'person_id_firstname',
211 'name': 'person_id_lastname',
218 xtype: 'PagingToolbar',
222 displayMsg : "Displaying Events{0} - {1} of {2}",
223 emptyMsg : "No Events found"
233 cls : 'x-btn-text-icon',
234 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
238 if (!_this.dialog) return;
239 _this.dialog.show( { id : 0 } , function() {
240 _this.grid.footer.onClick('first');
249 cls : 'x-btn-text-icon',
250 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
254 var s = _this.grid.getSelectionModel().getSelections();
255 if (!s.length || (s.length > 1)) {
256 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
259 if (!_this.dialog) return;
260 _this.dialog.show(s[0].data, function() {
261 _this.grid.footer.onClick('first');
271 cls : 'x-btn-text-icon',
272 icon : rootURL + '/Pman/templates/images/trash.gif',
276 Pman.genericDelete(_this, 'Events');
284 xtype: 'ColumnModel',
289 renderer : function(v) { return String.format('{0}', v); }
292 xtype: 'ColumnModel',
294 header : 'Person name',
296 dataIndex : 'person_name',
297 renderer : function(v) { return String.format('{0}', v); }
300 xtype: 'ColumnModel',
302 header : 'Event when',
304 dataIndex : 'event_when',
305 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
308 xtype: 'ColumnModel',
312 dataIndex : 'action',
313 renderer : function(v) { return String.format('{0}', v); }
316 xtype: 'ColumnModel',
320 dataIndex : 'ipaddr',
321 renderer : function(v) { return String.format('{0}', v); }
324 xtype: 'ColumnModel',
329 renderer : function(v) { return String.format('{0}', v); }
332 xtype: 'ColumnModel',
336 dataIndex : 'on_table',
337 renderer : function(v) { return String.format('{0}', v); }
340 xtype: 'ColumnModel',
344 dataIndex : 'person_id',
345 renderer : function(v) { return String.format('{0}', v); }
348 xtype: 'ColumnModel',
352 dataIndex : 'remarks',
353 renderer : function(v) { return String.format('{0}', v); }
356 xtype: 'ColumnModel',
358 header : 'Person table',
360 dataIndex : 'person_table',
361 renderer : function(v) { return String.format('{0}', v); }
368 xtype: 'LayoutRegion',