2 "name" : "Pman.Tab.BAdminLogEvents",
3 "parent" : "Pman.Tab.BAdminLogs",
4 "title" : "Pman.Tab.BAdminLogEvents",
5 "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminLogEvents.bjs",
9 "90275c90e270853fee34db3b87d24d7c" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
10 "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
11 "87f9f735a1d36793ceaecd4e47124b63" : "Events",
12 "87557f11575c0ad78e4e28abedc13b6e" : "End",
13 "1b7f7d24575cdbfadb83b9587fa1bf97" : "#id",
14 "098f6bcd4621d373cade4e832627b4f6" : "test",
15 "10927a67903afd162cc29267d434a2bb" : "select action",
16 "c759559b750d502a5be8dceae85ed841" : "select affected",
17 "fc6f97505d89fe9277965c126744647a" : "No Companies found",
18 "06bff0cfe47afca536033ab51f4e2cdc" : "Log View",
19 "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
20 "a3ec0cd6d6acd83df3e2095c5edcf8b5" : "Log Grid",
21 "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
22 "340c2ee497b85d5954b01c64de7f44f6" : "Select Person",
23 "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When",
24 "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person",
25 "004bf6c9a40003140292e97330236c53" : "Action",
26 "a6122a65eaa676f700ae68d393054a37" : "Start",
27 "31c03fdb82204f0ac1fe916b2c713c8c" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
28 "2c92a9a6a5dbf570825e62eabcdecd8d" : "Affected"
31 "footer_displayMsg" : "155ca6a755e25c15ad7ce45e2f638f10",
32 "footer_emptyMsg" : "fc6f97505d89fe9277965c126744647a"
37 "activate" : "function (_self)\n{\n if(!document.getElementsByClassName('event-south-pane')) {\n return;\n }\n \n document.getElementsByClassName('event-south-pane')[0].classList.remove('disable-pane');\n \n if(\n appDisabled.indexOf('Core.SuperAdmin') * 1 != -1\n ) {\n document.getElementsByClassName('event-south-pane')[0].classList.add('disable-pane');\n }\n \n}"
40 "$ xns" : "Roo.bootstrap.panel",
41 "String title" : "Events",
45 "$ xns" : "Roo.bootstrap.layout",
49 "String tabPosition" : "top",
50 "Boolean hideTabs" : true,
52 "$ xns" : "Roo.bootstrap.layout",
56 "String tabPosition" : "top",
57 "Boolean hideTabs" : true,
59 "Number height" : 150,
60 "string cls" : "event-south-pane",
61 "$ xns" : "Roo.bootstrap.layout",
62 "Boolean autoScroll" : true,
64 "Boolean split" : true
68 "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
71 "Boolean fitToFrame" : true,
72 "$ xns" : "Roo.bootstrap.panel",
73 "String region" : "south",
74 "String title" : "Log View"
78 "activate" : "function (_self)\n{\n \n if (_this.table) {\n \n _this.table.footer.onClick('first');\n \n }\n \n}",
79 "render" : "function (_self)\n{\n _this.grid = _self;\n}"
82 "Boolean fitToFrame" : true,
83 "$ xns" : "Roo.bootstrap.panel",
84 "String region" : "center",
85 "String title" : "Log Grid",
86 "Boolean closable" : false,
89 "xtype" : "NavSimplebar",
90 "$ xns" : "Roo.bootstrap",
95 "$ xns" : "Roo.bootstrap",
99 "$ xns" : "Roo.bootstrap",
103 "$ xns" : "Roo.bootstrap",
106 "String cls" : "roo-toolbar",
108 "$ xns" : "Roo.bootstrap",
113 "$ xns" : "Roo.bootstrap",
117 "render" : "function (_self)\n{\n this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();\n}"
119 "String cls" : "roo-toolbar-label",
120 "xtype" : "FieldLabel",
121 "$ xns" : "Roo.bootstrap",
122 "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
123 "String style" : "float: left; line-height: 34px; width: 80px;"
127 "render" : "function (_self)\n{\n _this.personSel = this;\n \n}",
128 "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first');\n}"
130 "Boolean allowBlank" : true,
131 "String loadingText" : "test",
132 "String valueField" : "id",
133 "Boolean typeAhead" : true,
134 "Boolean removable" : true,
135 "xtype" : "ComboBox",
136 "Boolean editable" : false,
137 "String triggerAction" : "all",
138 "Boolean alwaysQuery" : false,
139 "string placeholder" : "Select Person",
140 "$ xns" : "Roo.bootstrap",
141 "String style" : "float: left; width: 300px;",
142 "Boolean multiple" : false,
143 "String displayField" : "name",
144 "Boolean forceSelection" : true,
148 "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n o.params.limit = 9999;\n}"
150 "$ Object sortInfo" : "{field : 'name' , direction : 'ASC'}",
152 "boolean remoteSort" : true,
153 "$ xns" : "Roo.data",
157 "xtype" : "HttpProxy",
158 "$ xns" : "Roo.data",
159 "String method" : "GET",
161 "$ String url" : "baseURL+'/Roo/Core_person'"
164 "$ Array 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]",
165 "xtype" : "JsonReader",
166 "$ xns" : "Roo.data",
175 "render" : "function (_self)\n{\n _this.actionSel = this;\n \n this.show();\n \n if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n this.hide();\n }\n \n}",
176 "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first');\n}"
178 "Boolean allowBlank" : true,
179 "String valueField" : "id",
180 "Boolean typeAhead" : true,
181 "Boolean removable" : true,
182 "xtype" : "ComboBox",
183 "Boolean editable" : false,
184 "String triggerAction" : "all",
185 "Boolean alwaysQuery" : false,
186 "string placeholder" : "select action",
187 "$ xns" : "Roo.bootstrap",
188 "String style" : "float: left; width: 300px; margin-left: 15px;",
189 "Boolean multiple" : false,
190 "String displayField" : "action",
191 "Boolean forceSelection" : true,
195 "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n /*\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 */\n o.params.limit = 9999;\n o.params._distinct = 'action';\n \n o.params._columns ='action';\n}"
197 "$ Object sortInfo" : "{ field : 'action' , direction : 'ASC' }",
199 "boolean remoteSort" : true,
200 "$ xns" : "Roo.data",
204 "xtype" : "HttpProxy",
205 "$ xns" : "Roo.data",
206 "String method" : "GET",
208 "$ String url" : "baseURL + '/Roo/Events'"
211 "$ Array 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]",
212 "xtype" : "JsonReader",
213 "$ xns" : "Roo.data",
222 "render" : "function (_self)\n{\n _this.affectSel = this;\n \n this.show();\n \n if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n this.hide();\n }\n \n}",
223 "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first');\n}"
225 "Boolean allowBlank" : true,
226 "String valueField" : "id",
227 "Boolean typeAhead" : true,
228 "Boolean removable" : true,
229 "xtype" : "ComboBox",
230 "Boolean editable" : false,
231 "String triggerAction" : "all",
232 "Boolean alwaysQuery" : false,
233 "string placeholder" : "select affected",
234 "$ xns" : "Roo.bootstrap",
235 "String style" : "float: left; width: 300px; margin-left: 15px;",
236 "Boolean multiple" : false,
237 "String displayField" : "on_table",
238 "Boolean forceSelection" : true,
242 "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n /*\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 */\n o.params.limit = 9999;\n o.params._distinct = 'on_table';\n \n o.params._columns ='on_table';\n}"
244 "Object sortInfo" : "{ field : 'on_table' , direction : 'ASC' }",
246 "boolean remoteSort" : true,
247 "$ xns" : "Roo.data",
251 "xtype" : "HttpProxy",
252 "$ xns" : "Roo.data",
253 "String method" : "GET",
255 "$ String url" : "baseURL + '/Roo/Events'"
258 "$ Array 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]",
259 "xtype" : "JsonReader",
260 "$ xns" : "Roo.data",
269 "render" : "function (_self)\n{\n this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();\n}"
271 "String cls" : "roo-toolbar-label",
272 "xtype" : "FieldLabel",
273 "$ xns" : "Roo.bootstrap",
274 "String html" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
275 "String style" : "float: left; line-height: 34px; width: 125px; margin-left: 15px;"
279 "render" : "function (_self)\n{\n _this.dateFrom = _self;\n}",
280 "change" : "function (_self, newValue, oldValue)\n{\n _this.table.footer.onClick('first');\n}"
282 "xtype" : "DateField",
283 "string placeholder" : "Start",
284 "$ xns" : "Roo.bootstrap",
285 "String style" : "float:left; width: 150px;"
289 "render" : "function (_self)\n{\n _this.dateTo = _self;\n}",
290 "change" : "function (_self, newValue, oldValue)\n{\n _this.table.footer.onClick('first');\n}"
292 "xtype" : "DateField",
293 "string placeholder" : "End",
294 "$ xns" : "Roo.bootstrap",
295 "String style" : "float:left; width: 150px; margin-left: 15px;"
311 "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n/*\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n });\n*/\n}",
312 "render" : "function (_self)\n{\n _this.table = _self;\n \n if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n this.colModel.setHidden(this.colModel.findColumnIndex('id'), true);\n this.colModel.setHidden(this.colModel.findColumnIndex('on_table'), true);\n this.colModel.setHidden(this.colModel.findColumnIndex('ipaddr'), true);\n this.colModel.getColumnByDataIndex('remarks').md = 7;\n this.colModel.getColumnByDataIndex('remarks').sm = 7;\n this.colModel.getColumnByDataIndex('remarks').xs = 7;\n }\n \n}"
314 "String cls" : "table-fixed",
315 "boolean striped" : false,
316 "boolean hover" : true,
318 "Boolean rowSelection" : true,
319 "$ xns" : "Roo.bootstrap",
320 "Boolean loadMask" : true,
325 "beforeload" : "function (_self, o)\n{\n if (!Pman.buildCompleted) {\n return false;\n }\n \n o.params = o.params || {};\n \n o.params.person_id = _this.personSel.getValue();\n \n var act = _this.actionSel.getValue();\n \n if (act.length) {\n \n o.params.action = act;\n \n }\n var tbl = _this.affectSel.getValue();\n \n if (tbl.length) {\n \n o.params.on_table = tbl;\n \n }\n \n var f = _this.dateFrom.getValue().split(\"/\");\n \n var df_string = f[2]+\"-\"+f[0]+\"-\"+f[1];\n \n var df = new Date(Date.parse(f));\n \n var t = _this.dateTo.getValue().split(\"/\");\n \n var dt_string = t[2]+\"-\"+t[0]+\"-\"+t[1];\n \n var dt = new Date(Date.parse(t));\n \n if (\n _this.dateFrom.format && \n \n _this.dateTo.format &&\n \n (dt > df)\n ) {\n o.params['query[from]'] = df_string;\n \n o.params['query[to]'] = dt_string;\n \n }\n \n}",
326 "load" : "function (_self, records, options)\n{\n //Roo.log(records);\n}"
328 "boolean hover" : true,
329 "boolean striped" : true,
330 "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
332 "Boolean rowSelection" : true,
333 "boolean remoteSort" : true,
334 "$ xns" : "Roo.data",
335 "Boolean loadMask" : true,
339 "$ Array 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]",
340 "xtype" : "JsonReader",
341 "String root" : "data",
342 "$ xns" : "Roo.data",
345 "String totalProperty" : "total"
349 "load" : "function (This, o, arg)\n{\n //_this.table.footer.onClick('first');\n}"
351 "xtype" : "HttpProxy",
352 "$ xns" : "Roo.data",
353 "String method" : "GET",
355 "$ String url" : "baseURL + '/Roo/Events'"
361 "afterselectionchange" : "function (_self)\n{\n \n if (!this.getSelected()) {\n \n _this.viewPanel.setContent(\"Nothing Selected\");\n \n return;\n \n }\n \n var id = this.getSelected().data.id;\n \n _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n \n}"
363 "Boolean singleSelect" : true,
364 "xtype" : "RowSelectionModel",
365 "$ xns" : "Roo.bootstrap.Table",
370 "render" : "function (_self)\n{\n _this.footer = _self;\n}"
372 "Number pageSize" : 25,
373 "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
374 "Boolean displayInfo" : false,
375 "xtype" : "PagingToolbar",
376 "String emptyMsg" : "No Companies found",
377 "$ xns" : "Roo.bootstrap",
379 "string name" : "footer"
382 "String header" : "When",
383 "String dataIndex" : "event_when",
385 "xtype" : "ColumnModel",
387 "$ xns" : "Roo.grid",
388 "$ renderer" : "function(v) { return v ? v.dateFormat('Y/m/d H:i') : ''; }",
389 "Boolean sortable" : true,
394 "String header" : "#id",
395 "String dataIndex" : "id",
397 "xtype" : "ColumnModel",
399 "$ xns" : "Roo.grid",
400 "$ renderer" : "function(v) { return String.format('{0}', v); }",
401 "Boolean sortable" : true,
406 "String header" : "Person",
407 "String dataIndex" : "person_id_name",
409 "xtype" : "ColumnModel",
411 "$ xns" : "Roo.grid",
412 "$ renderer" : "function(v) { return String.format('{0}', v); }",
413 "Boolean sortable" : true,
418 "String header" : "Action",
419 "String dataIndex" : "action",
421 "xtype" : "ColumnModel",
423 "$ xns" : "Roo.grid",
424 "$ renderer" : "function(v) \n{ \n var vv = v.charAt(0).toUpperCase() + v.slice(1).toLowerCase();\n \n return String.format('{0}', vv); \n}",
429 "String header" : "IP",
430 "String dataIndex" : "ipaddr",
432 "xtype" : "ColumnModel",
434 "$ xns" : "Roo.grid",
435 "$ renderer" : "function(v) { return String.format('{0}', v); }",
440 "String header" : "Affected",
441 "String dataIndex" : "on_table",
443 "xtype" : "ColumnModel",
445 "$ xns" : "Roo.grid",
446 "$ renderer" : "function(v, x, r) {\n \n return v ? String.format('{0}({1})', v, r.data.on_id) : '';\n \n}",
451 "String header" : "Remarks",
452 "String dataIndex" : "remarks",
454 "xtype" : "ColumnModel",
456 "$ xns" : "Roo.grid",
457 "$ renderer" : "function(v) { return String.format('{0}', v); }",