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',
34 show : function (_self)
36 _this.grid.onClick('first');
40 title : "Event history",
47 activate : function() {
50 _this.grid.footer.onClick('first');
67 //_this.dialog = Pman.Dialog.FILL_IN
68 if (_this.panel.active) {
69 this.footer.onClick('first');
72 rowdblclick : function (_self, rowIndex, e)
74 if (!_this.dialog) return;
75 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
76 _this.grid.footer.onClick('first');
80 autoExpandColumn : 'remarks',
86 beforeload : function (_self,o )
88 if (!_this.data || !_this.data.on_id) {
91 o.params.on_table = _this.data.on_table;
92 o.params.on_id = _this.data.on_id;
94 if (typeof(_this.data.person_table) != 'undefined') {
95 o.params.person_table =_this.data.person_table;
100 sortInfo : { field : 'event_when', direction: 'DESC' },
105 url : baseURL + '/Roo/Events.php'
110 totalProperty : 'total',
119 'name': 'person_name',
123 'name': 'event_when',
125 'dateFormat': 'Y-m-d'
152 'name': 'person_table',
156 'name': 'person_id_id',
160 'name': 'person_id_office_id',
164 'name': 'person_id_name',
168 'name': 'person_id_phone',
172 'name': 'person_id_fax',
176 'name': 'person_id_email',
180 'name': 'person_id_company_id',
184 'name': 'person_id_role',
188 'name': 'person_id_active',
192 'name': 'person_id_remarks',
196 'name': 'person_id_passwd',
200 'name': 'person_id_owner_id',
204 'name': 'person_id_lang',
208 'name': 'person_id_no_reset_sent',
212 'name': 'person_id_action_type',
216 'name': 'person_id_project_id',
220 'name': 'person_id_deleted_by',
224 'name': 'person_id_deleted_dt',
228 'name': 'person_id_firstname',
232 'name': 'person_id_lastname',
239 xtype: 'PagingToolbar',
243 displayMsg : "Displaying Events{0} - {1} of {2}",
244 emptyMsg : "No Events found"
248 xtype: 'ColumnModel',
250 header : 'Event when',
252 dataIndex : 'event_when',
253 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
256 xtype: 'ColumnModel',
258 dataIndex : 'person_id_name',
259 header : 'Person name',
261 renderer : function(v) { return String.format('{0}', v); }
264 xtype: 'ColumnModel',
266 dataIndex : 'action',
269 renderer : function(v) { return String.format('{0}', v); }
272 xtype: 'ColumnModel',
274 dataIndex : 'ipaddr',
277 renderer : function(v) { return String.format('{0}', v); }
280 xtype: 'ColumnModel',
284 dataIndex : 'remarks',
285 renderer : function(v) { return String.format('{0}', v); }
292 xtype: 'LayoutRegion',
300 click : function (_self, e)