2 "name" : "Pman.Tab.AdminLogEvents",
3 "parent" : "Pman.Tab.AdminLogs",
4 "title" : "Admin - Logs - Events",
5 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminLogEvents.bjs",
6 "permname" : "Admin.Logs",
9 "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
10 "2ea72778ebaacc973260c88837dd7a2f" : "Displaying Events {0} - {1} of {2}",
11 "87f9f735a1d36793ceaecd4e47124b63" : "Events",
12 "1b7f7d24575cdbfadb83b9587fa1bf97" : "#id",
13 "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
14 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
15 "01bd6a16732dfa2b760dc8566c58afae" : "Download to Excel",
16 "498f79c4c5bbde77f1bceb6c86fd0f6d" : "Show",
17 "037fd50b0e85bb65995ca7125d06c7cd" : "Select Person Table",
18 "42cf593b947cd3d591fa132742486f89" : "Person ",
19 "fd7535ce3979bb8547e2c01689db0767" : "Select Person ",
20 "679308a758de538c5f39c4c6cdba6593" : "Select Affects",
21 "a8929eb5c1553d3f70497f862d25d0ce" : "Select Action",
22 "39b9e051f9fe75e65c7a330bb00499d4" : "Date Range",
23 "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When",
24 "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person",
25 "004bf6c9a40003140292e97330236c53" : "Action",
26 "90e4ac2e5a22e53df63b6b186d8727ba" : "No Events found",
27 "2c92a9a6a5dbf570825e62eabcdecd8d" : "Affected"
32 "xtype" : "NestedLayoutPanel",
37 "xtype" : "BorderLayout",
42 "xtype" : "LayoutRegion",
48 "xtype" : "LayoutRegion",
56 "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
60 "xtype" : "ContentPanel",
65 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
71 "xtype" : "GridPanel",
72 "fitContainer" : true,
74 "tableName" : "Events",
78 "render" : "function () \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
80 "autoExpandColumn" : "remarks",
88 "afterselectionchange" : "function (_self)\n{\n // load detail log in _this.viewPanel;\n if (!this.getSelected()) {\n this.viewPanel.setContent(\"Nothing Selected\");\n return;\n }\n var id = this.getSelected().data.id;\n _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n \n}"
90 "xtype" : "RowSelectionModel",
91 "singleSelect" : true,
97 "|beforeload" : "function (_self, o)\n{\n if (!Pman.buildCompleted) {\n return false;\n }\n \n \n if (! _this.personSel) {\n return false;\n }\n o.params = o.params || {};\n o.params.person_id = _this.personSel.getValue();\n o.params.person_table = _this.tableSel.getValue();\n var act = _this.actionSel.getValue();\n if (act.length) {\n o.params.action = act;\n }\n var tbl = _this.affectSel.getValue();\n if (tbl.length) {\n o.params.on_table = tbl;\n }\n act = _this.dateFrom.getValue();\n if (act.format) {\n o.params['query[from]'] = act.format('Y-m-d');\n }\n act = _this.dateTo.getValue();\n if (act.format) {\n o.params['query[to]'] = act.format('Y-m-d');\n }\n \n \n /*\n act = _this.groupedCombo.getValue();\n o.params['query[grouped]'] = act;\n if (o.params['query[grouped]'] == 'gr') {\n \n if (!tbl.length) {\n Roo.MessageBox.alert(\"Error\", \"Select a table to group results on\");\n return false;\n }\n// o.params['_columns'] = \n o.params['_distinct'] = 'on_id';\n \n \n }\n \n */\n\n \n}"
101 "$ sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
102 "$ xns" : "Roo.data",
103 "* prop" : "dataSource",
108 "xtype" : "JsonReader",
109 "$ xns" : "Roo.data",
110 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]",
112 "totalProperty" : "total"
115 "$ url" : "baseURL + '/Roo/Events.php'",
117 "xtype" : "HttpProxy",
118 "$ xns" : "Roo.data",
125 "xtype" : "PagingToolbar",
126 "emptyMsg" : "No Events found",
128 "displayInfo" : true,
129 "displayMsg" : "Displaying Events {0} - {1} of {2}",
134 "click" : "function (_self, e)\n{\n \n var params = {\n 'sort' : 'event_when',\n 'dir' : 'DESC',\n 'start' : 0,\n 'limit' : 900,\n person_id : _this.personSel.getValue(), \n 'csvTitles[0]' : 'When', 'csvCols[0]' : 'event_when', \n 'csvTitles[1]' : 'Staff', 'csvCols[1]' : 'person_id_name', \n 'csvTitles[2]' : 'Action', 'csvCols[2]' : 'action', \n 'csvTitles[3]' : 'Record ID', 'csvCols[3]' : 'on_id' ,\n 'csvTitles[4]' : 'Record Type', 'csvCols[4]' : 'on_table',\n 'csvTitles[5]' : 'Remarks', 'csvCols[5]' : 'remarks' \n }\n \n params.person_id = _this.personSel.getValue();\n var act = _this.actionSel.getValue();\n if (act.length) {\n params.action = act;\n }\n var tbl = _this.affectSel.getValue();\n if (tbl.length) {\n params.on_table = tbl;\n }\n act = _this.dateFrom.getValue();\n if (act.format) {\n params['query[from]'] = act.format('Y-m-d');\n }\n act = _this.dateTo.getValue();\n if (act.format) {\n params['query[to]'] = act.format('Y-m-d');\n }\n params.limit = 9999;\n \n\n new Pman.download({\n url : baseURL + '/Roo/Events.php',\n params : params ,\n newWindow: true\n \n });\n}"
136 "text" : "Download to Excel",
138 "$ xns" : "Roo.Toolbar"
145 "* prop" : "toolbar",
149 "xtype" : "TextItem",
150 "$ xns" : "Roo.Toolbar"
154 "|render" : "function (_self)\n{\n _this.tableSel = _self;\n \n if(\n typeof(uiConfig) == 'undefined' || \n typeof(uiConfig.events_person_table) == 'undefined' || \n !uiConfig.events_person_table.length\n ){\n this.hide();\n }\n \n}",
155 "|select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}"
158 "triggerAction" : "all",
159 "forceSelection" : true,
160 "selectOnFocus" : true,
162 "displayField" : "value",
163 "emptyText" : "Select Person Table",
165 "valueField" : "value",
166 "xtype" : "ComboBox",
169 "Boolean alwaysQuery" : true,
172 "$ xns" : "Roo.form",
173 "name" : "person_table",
174 "qtip" : "Select Person Table",
175 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{value}</b> </div>",
176 "loadingText" : "Searching...",
179 "| data" : "(function() { \n\n if(typeof(uiConfig) == 'undefined' || typeof(uiConfig.events_person_table) == 'undefined' || !uiConfig.events_person_table.length){\n\n return []; \n }\n\n return uiConfig.events_person_table;\n \n})()",
180 "xtype" : "SimpleStore",
181 "$ fields" : "[ 'value' ]",
182 "$ xns" : "Roo.data",
190 "|render" : "function (_self)\n{\n _this.personSel = _self;\n}",
191 "|select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n \n}"
194 "triggerAction" : "all",
195 "fieldLabel" : "Person ",
196 "forceSelection" : true,
197 "selectOnFocus" : true,
199 "displayField" : "name",
200 "emptyText" : "Select Person ",
203 "xtype" : "ComboBox",
208 "$ xns" : "Roo.form",
209 "name" : "person_id_name",
210 "qtip" : "Select Person ",
211 "queryParam" : "query[name]",
212 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> ({company_id_name}) <{email}> </div>",
213 "loadingText" : "Searching...",
217 "|beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n o.params.company_id = Pman.Login.authUser.company_id;\n}"
221 "$ sortInfo" : "{ field : 'name' , direction : 'ASC' }",
222 "$ xns" : "Roo.data",
226 "$ url" : "baseURL + '/Roo/Person.php'",
227 "xtype" : "HttpProxy",
229 "$ xns" : "Roo.data",
235 "xtype" : "JsonReader",
236 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'office_id',\n 'type': 'int'\n },\n {\n 'name': 'name',\n 'type': 'string'\n },\n {\n 'name': 'phone',\n 'type': 'string'\n },\n {\n 'name': 'fax',\n 'type': 'string'\n },\n {\n 'name': 'email',\n 'type': 'string'\n },\n {\n 'name': 'company_id',\n 'type': 'int'\n },\n {\n 'name': 'role',\n 'type': 'string'\n },\n {\n 'name': 'active',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'passwd',\n 'type': 'string'\n },\n {\n 'name': 'owner_id',\n 'type': 'int'\n },\n {\n 'name': 'lang',\n 'type': 'string'\n },\n {\n 'name': 'no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'action_type',\n 'type': 'string'\n },\n {\n 'name': 'project_id',\n 'type': 'int'\n },\n {\n 'name': 'deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'deleted_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'office_id_id',\n 'type': 'int'\n },\n {\n 'name': 'office_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'office_id_name',\n 'type': 'string'\n },\n {\n 'name': 'office_id_address',\n 'type': 'string'\n },\n {\n 'name': 'office_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'office_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'office_id_email',\n 'type': 'string'\n },\n {\n 'name': 'office_id_role',\n 'type': 'string'\n },\n {\n 'name': 'company_id_code',\n 'type': 'string'\n },\n {\n 'name': 'company_id_name',\n 'type': 'string'\n },\n {\n 'name': 'company_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'company_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_address',\n 'type': 'string'\n },\n {\n 'name': 'company_id_tel',\n 'type': 'string'\n },\n {\n 'name': 'company_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'company_id_email',\n 'type': 'string'\n },\n {\n 'name': 'company_id_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_isOwner',\n 'type': 'int'\n },\n {\n 'name': 'company_id_logo_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_background_color',\n 'type': 'string'\n },\n {\n 'name': 'company_id_comptype',\n 'type': 'string'\n },\n {\n 'name': 'company_id_url',\n 'type': 'string'\n },\n {\n 'name': 'company_id_main_office_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_created_by',\n 'type': 'int'\n },\n {\n 'name': 'company_id_created_dt',\n 'type': 'date'\n },\n {\n 'name': 'company_id_updated_by',\n 'type': 'int'\n },\n {\n 'name': 'company_id_updated_dt',\n 'type': 'date'\n },\n {\n 'name': 'company_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'company_id_dispatch_port',\n 'type': 'string'\n },\n {\n 'name': 'company_id_province',\n 'type': 'string'\n },\n {\n 'name': 'company_id_country',\n 'type': 'string'\n },\n {\n 'name': 'project_id_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_name',\n 'type': 'string'\n },\n {\n 'name': 'project_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'project_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_code',\n 'type': 'string'\n },\n {\n 'name': 'project_id_active',\n 'type': 'int'\n },\n {\n 'name': 'project_id_type',\n 'type': 'string'\n },\n {\n 'name': 'project_id_client_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_team_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_file_location',\n 'type': 'string'\n },\n {\n 'name': 'project_id_open_date',\n 'type': 'date'\n },\n {\n 'name': 'project_id_open_by',\n 'type': 'int'\n },\n {\n 'name': 'project_id_close_date',\n 'type': 'date'\n },\n {\n 'name': 'project_id_countries',\n 'type': 'string'\n },\n {\n 'name': 'project_id_languages',\n 'type': 'string'\n },\n {\n 'name': 'project_id_agency_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_name',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_email',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_role',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_active',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_deleted_dt',\n 'type': 'date'\n }\n]",
237 "$ xns" : "Roo.data",
239 "totalProperty" : "total"
247 "|render" : "function (_self)\n{\n _this.actionSel = _self;\n}",
248 "|select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}"
251 "triggerAction" : "all",
252 "forceSelection" : true,
253 "selectOnFocus" : true,
255 "displayField" : "action",
256 "emptyText" : "Select Action",
258 "valueField" : "action",
259 "xtype" : "ComboBox",
264 "$ xns" : "Roo.form",
266 "qtip" : "Select Action",
267 "queryParam" : "query[action]",
268 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{action}</b> </div>",
269 "loadingText" : "Searching...",
273 "|beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n // staff can see all logs, other companies can only see their own.\n if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n o.params._distinct = 'action';\n o.params._columns ='action';\n}"
277 "$ sortInfo" : "{ field : 'action' , direction : 'ASC' }",
278 "$ xns" : "Roo.data",
282 "$ url" : "baseURL + '/Roo/Events.php'",
283 "xtype" : "HttpProxy",
285 "$ xns" : "Roo.data",
291 "xtype" : "JsonReader",
292 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]",
293 "$ xns" : "Roo.data",
295 "totalProperty" : "total"
303 "|render" : "function (_self)\n{\n _this.affectSel = _self;\n \n if(!Pman.hasPerm('Admin.Logs_Affects', 'S')){\n this.hide();\n }\n}",
304 "|select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}"
307 "triggerAction" : "all",
308 "forceSelection" : true,
309 "selectOnFocus" : true,
311 "displayField" : "on_table",
312 "emptyText" : "Select Affects",
314 "valueField" : "action",
315 "xtype" : "ComboBox",
320 "$ xns" : "Roo.form",
322 "qtip" : "Select Action",
323 "queryParam" : "query[on_table]",
324 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
325 "loadingText" : "Searching...",
329 "|beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n // staff can see all logs, other companies can only see their own.\n if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n o.params._distinct = 'on_table';\n o.params._columns ='on_table';\n}"
333 "$ sortInfo" : "{ field : 'on_table' , direction : 'ASC' }",
334 "$ xns" : "Roo.data",
338 "$ url" : "baseURL + '/Roo/Events.php'",
339 "xtype" : "HttpProxy",
341 "$ xns" : "Roo.data",
347 "xtype" : "JsonReader",
348 "$ xns" : "Roo.data",
349 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]",
351 "totalProperty" : "total"
358 "text" : "Date Range",
359 "xtype" : "TextItem",
360 "$ xns" : "Roo.Toolbar"
364 "render" : "function (_self)\n{\n _this.dateFrom = _self;\n}",
365 "change" : "function (_self, newValue, oldValue)\n{\n _this.grid.footer.onClick('first');\n}"
368 "xtype" : "DateField",
373 "render" : "function (_self)\n{\n _this.dateTo = _self;\n}",
374 "change" : "function (_self, newValue, oldValue)\n{\n _this.grid.footer.onClick('first');\n}"
377 "xtype" : "DateField",
383 "xtype" : "ColumnModel",
386 "$ renderer" : "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }",
387 "$ xns" : "Roo.grid",
388 "* prop" : "colModel[]",
389 "dataIndex" : "event_when"
392 "xtype" : "ColumnModel",
395 "$ xns" : "Roo.grid",
396 "* prop" : "colModel[]",
400 "xtype" : "ColumnModel",
403 "$ renderer" : "function(v,x,r) { \n \n var ptable = _this.tableSel.getValue();\n \n var efield = 'person_id_email';\n var nfield = 'person_id_name'; \n \n if(\n ptable.length &&\n ptable != 'Person' &&\n typeof(r.data[ptable + '_id_email']) != 'undefined' &&\n typeof(r.data[ptable + '_id_name']) != 'undefined'\n ){\n efield = ptable + '_id_email';\n nfield = ptable + '_id_name'; \n }\n \n var email = r.data[efield]; // ? r.data.person_id_email : r.data.person_id_email;\n var name = r.data[nfield]; // ? r.data.person_id_name : r.data.person_id_name; \n return String.format('{0} <<a href=\"mailto:{1}\">{1}</a>>', \n name, email); \n\n\n}",
404 "$ xns" : "Roo.grid",
405 "* prop" : "colModel[]",
406 "dataIndex" : "person_id_name"
409 "xtype" : "ColumnModel",
412 "$ renderer" : "function(v) { return String.format('{0}', v); }",
413 "$ xns" : "Roo.grid",
414 "* prop" : "colModel[]",
415 "dataIndex" : "action"
418 "xtype" : "ColumnModel",
421 "$ renderer" : "function(v) { return String.format('{0}', v); }",
422 "$ xns" : "Roo.grid",
423 "* prop" : "colModel[]",
424 "dataIndex" : "ipaddr"
427 "xtype" : "ColumnModel",
428 "header" : "Affected",
430 "$ renderer" : "function(v, x, r) { \n return v ? String.format('{0}({1})', v, r.data.on_id) : ''; \n }",
431 "$ xns" : "Roo.grid",
432 "* prop" : "colModel[]",
433 "dataIndex" : "on_table"
436 "xtype" : "ColumnModel",
437 "header" : "Remarks",
439 "$ renderer" : "function(v) { return String.format('<span qtip=\"{1}\">{0}</span>', v, Roo.util.Format.htmlEncode(v)); }",
440 "$ xns" : "Roo.grid",
441 "* prop" : "colModel[]",
442 "dataIndex" : "remarks"