2 "name" : "Pman.Tab.AdminLogDrill",
3 "parent" : "Pman.Tab.AdminLogs",
4 "title" : "Pman.Tab.AdminLogDrill",
5 "path" : "/home/johns/gitlive/web.coba/Pman/Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Tab.AdminLogDrill.bjs",
9 "7a11042f53957727d8667732d7de1102" : "Ipaddr",
10 "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
11 "87f9f735a1d36793ceaecd4e47124b63" : "Events",
12 "490aa6e856ccf208a054389e47ce0d06" : "Id",
13 "739cea2b85156183f917f2ccaa10a50c" : "#ID",
14 "591933c26da312455c63b6bc1ec046bc" : "(function() { var d = new Date();d = d.add(Date.MONTH, 1) ; return d.format('Y-m-01'); })()",
15 "d9578744f1d4b13d40a51fbb8b9d6ea5" : "Person name",
16 "e1edab2a061a49e21790204249b1aee9" : "(function() { var d = new Date(); return d.format('Y-m-01'); })()",
17 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
18 "51c45b795d5d18a3e4e0c37e8b20a141" : "Table",
19 "6be4aa550791c310e098cd6c234af7d8" : "Event when",
20 "679308a758de538c5f39c4c6cdba6593" : "Select Affects",
21 "c112bb3542e98308d12d5ecb10a67abc" : "Changes",
22 "a254c25adc7d10d7e9c4889484f875a5" : "Detail",
23 "7205d42d6d975c911bc1147259d78935" : "Displaying Events{0} - {1} of {2}",
24 "39b9e051f9fe75e65c7a330bb00499d4" : "Date Range",
25 "a8929eb5c1553d3f70497f862d25d0ce" : "Select Action",
26 "004bf6c9a40003140292e97330236c53" : "Action",
27 "f971b3a2cc583b475332380649a4fa05" : "Daily summary",
28 "0668a37e3eb3480f0444f8da7bc446ba" : "Event Drilldown",
29 "b5fe0746885b906c8ed9b7cc06023c35" : "#Affected",
30 "90e4ac2e5a22e53df63b6b186d8727ba" : "No Events found"
36 "title" : "Event Drilldown",
37 "xtype" : "NestedLayoutPanel",
46 "text" : "Date Range",
48 "$ xns" : "Roo.Toolbar"
52 "render" : "function (_self)\n{\n _this.dateFrom = _self;\n}",
53 "change" : "function (_self, newValue, oldValue)\n{\n _this.dategrid.ds.load({});\n}"
56 "| value" : "(function() { var d = new Date(); return d.format('Y-m-01'); })()",
57 "xtype" : "DateField",
62 "render" : "function (_self)\n{\n _this.dateTo = _self;\n}",
63 "change" : "function (_self, newValue, oldValue)\n{\n _this.dategrid.ds.load({});\n}"
66 "xtype" : "DateField",
67 "| value" : "(function() { var d = new Date();d = d.add(Date.MONTH, 1) ; return d.format('Y-m-01'); })()",
72 "|render" : "function (_self)\n{\n _this.actionSel = _self;\n}",
73 "|select" : "function (combo, record, index)\n{\n _this.dategrid.ds.load({});\n}"
76 "triggerAction" : "all",
77 "forceSelection" : true,
78 "selectOnFocus" : true,
80 "displayField" : "action",
81 "emptyText" : "Select Action",
83 "valueField" : "action",
91 "qtip" : "Select Action",
92 "queryParam" : "query[action]",
93 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{action}</b> </div>",
94 "loadingText" : "Searching...",
98 "|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}"
102 "$ sortInfo" : "{ field : 'action' , direction : 'ASC' }",
103 "$ xns" : "Roo.data",
107 "$ url" : "baseURL + '/Roo/Events.php'",
109 "xtype" : "HttpProxy",
111 "$ xns" : "Roo.data",
117 "xtype" : "JsonReader",
118 "$ xns" : "Roo.data",
119 "$ 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]",
121 "totalProperty" : "total"
129 "|render" : "function (_self)\n{\n _this.affectSel = _self;\n}",
130 "|select" : "function (combo, record, index)\n{\n _this.dategrid.ds.load({});\n}"
133 "triggerAction" : "all",
134 "forceSelection" : true,
135 "selectOnFocus" : true,
137 "displayField" : "on_table",
138 "emptyText" : "Select Affects",
140 "valueField" : "action",
141 "xtype" : "ComboBox",
146 "$ xns" : "Roo.form",
148 "qtip" : "Select Action",
149 "queryParam" : "query[on_table]",
150 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
151 "loadingText" : "Searching...",
155 "|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}"
159 "$ sortInfo" : "{ field : 'on_table' , direction : 'ASC' }",
160 "$ xns" : "Roo.data",
164 "$ url" : "baseURL + '/Roo/Events.php'",
166 "xtype" : "HttpProxy",
168 "$ xns" : "Roo.data",
174 "xtype" : "JsonReader",
175 "$ xns" : "Roo.data",
176 "$ 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]",
178 "totalProperty" : "total"
187 "xtype" : "BorderLayout",
192 "xtype" : "LayoutRegion",
199 "xtype" : "LayoutRegion",
204 "xtype" : "LayoutRegion",
205 "tabPosition" : "top",
213 "|activate" : "function() {\n _this.datepanel = this;\n if (_this.dategrid) {\n _this.dategrid.ds.load({});\n }\n}"
216 "background" : false,
219 "xtype" : "GridPanel",
220 "fitContainer" : true,
222 "tableName" : "Events",
226 "|render" : "function() \n{\n _this.dategrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.ds.load({});\n }\n}",
227 "rowclick" : "function (_self, rowIndex, e)\n{\n _this.tablegrid.footer.onClick('first');\n}"
229 "autoExpandColumn" : "person_name",
232 "$ xns" : "Roo.grid",
237 "beforeload" : "function (_self, o)\n{\n \n \n if (! _this.dateFrom) {\n return;\n }\n\n try {\n _this.tablegrid.ds.removeAll();\n _this.panel.layout.getRegion('east').getActivePanel().grid.ds.removeAll();\n \n } catch (e) {\n // do nothing..\n }\n o.params = o.params || {};\n \n var act = _this.actionSel ? _this.actionSel.getValue() : '';\n if (act.length) {\n o.params.action = act;\n }\n var tbl = _this.affectSel ? _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 o.params['query[person_sum]'] = 1;\n o.params._columns = 'person_id,person_id_name,person_id_email,qty,uqty';\n o.params.limit = 999;\n \n}"
241 "$ sortInfo" : "{ field : 'person_id_name', direction: 'ASC' }",
242 "$ xns" : "Roo.data",
243 "* prop" : "dataSource",
246 "$ url" : "baseURL + '/Roo/Events.php'",
248 "xtype" : "HttpProxy",
249 "$ xns" : "Roo.data",
255 "xtype" : "JsonReader",
256 "$ xns" : "Roo.data",
257 "$ 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 "totalProperty" : "total"
264 "xtype" : "ColumnModel",
266 "header" : "Person name",
268 "$ renderer" : "function(v,x,r) {\n return String.format('{0} <<a href=\"mailto:{1}\">{1}</a>>', v, r.data.person_id_email); \n }",
269 "$ xns" : "Roo.grid",
270 "* prop" : "colModel[]",
271 "dataIndex" : "person_id_name"
274 "xtype" : "ColumnModel",
276 "header" : "#Affected",
278 "$ renderer" : "function(v) { return String.format('{0}', v); }",
279 "$ xns" : "Roo.grid",
280 "* prop" : "colModel[]",
284 "xtype" : "ColumnModel",
286 "header" : "Changes",
288 "$ renderer" : "function(v) { return String.format('{0}', v); }",
289 "$ xns" : "Roo.grid",
290 "* prop" : "colModel[]",
299 "|activate" : "function() {\n _this.tablepanel = this;\n if (_this.tablegrid) {\n _this.tablegrid.footer.onClick('first');\n }\n}"
302 "background" : false,
305 "xtype" : "GridPanel",
306 "fitContainer" : true,
308 "tableName" : "Events",
312 "|render" : "function() \n{\n _this.tablegrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.tablepanel.active) {\n this.footer.onClick('first');\n }\n}",
313 "rowclick" : "function (_self, rowIndex, e)\n{\n \n _this.panel.layout.getRegion('east').getActivePanel().grid.footer.onClick('first');\n}"
315 "autoExpandColumn" : "person_name",
318 "$ xns" : "Roo.grid",
323 "beforeload" : "function (_self, o)\n{\n if (! _this.dategrid) {\n return;\n }\n try {\n _this.panel.layout.getRegion('east').getActivePanel().grid.ds.removeAll();\n \n } catch (e) {\n // do nothing..\n }\n \n var s = _this.dategrid.selModel.getSelected();\n if (!s) {\n _this.tablegrid.view.el.mask(\"Select a person\");\n return false;\n }\n _this.tablegrid.view.el.unmask();\n \n o.params = o.params || {};\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 \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 o.params.person_id = s.data.person_id;\n o.params['query[table_sum]'] = 1;\n o.params._columns = 'on_table,qty,uqty';\n\n \n}"
327 "$ sortInfo" : "{ field : 'on_table', direction: 'ASC' }",
328 "$ xns" : "Roo.data",
329 "* prop" : "dataSource",
332 "$ url" : "baseURL + '/Roo/Events.php'",
334 "xtype" : "HttpProxy",
335 "$ xns" : "Roo.data",
341 "xtype" : "JsonReader",
342 "$ xns" : "Roo.data",
343 "$ 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]",
345 "totalProperty" : "total"
351 "xtype" : "PagingToolbar",
352 "emptyMsg" : "No Events found",
354 "displayInfo" : true,
355 "displayMsg" : "Displaying Events{0} - {1} of {2}",
359 "xtype" : "ColumnModel",
363 "$ renderer" : "function(v) { \n if (!v.length) {\n return \"Login / Logout / Errors\";\n }\n return String.format('{0}', v); \n}",
364 "$ xns" : "Roo.grid",
365 "* prop" : "colModel[]",
366 "dataIndex" : "on_table"
369 "xtype" : "ColumnModel",
371 "header" : "#Affected",
373 "$ renderer" : "function(v) { return String.format('{0}', v); }",
374 "$ xns" : "Roo.grid",
375 "* prop" : "colModel[]",
379 "xtype" : "ColumnModel",
381 "header" : "Changes",
383 "$ renderer" : "function(v) { return String.format('{0}', v); }",
384 "$ xns" : "Roo.grid",
385 "* prop" : "colModel[]",
394 "|activate" : "function() {\n _this.detailpanel = this;\n if (_this.detailgrid) {\n _this.detailgrid.footer.onClick('first');\n }\n}"
400 "xtype" : "GridPanel",
401 "fitContainer" : true,
403 "tableName" : "Events",
407 "|render" : "function() \n{\n _this.detailgrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.detailpanel.active) {\n this.footer.onClick('first');\n }\n}"
409 "autoExpandColumn" : "person_name",
412 "$ xns" : "Roo.grid",
417 "beforeload" : "function (_self, o)\n{\n if (! _this.dategrid) {\n return false;\n }\n \n o.params = o.params || {};\n \n var s = _this.dategrid.selModel.getSelected();\n if (!s) {\n _this.detailgrid.view.el.mask(\"Select a person\");\n return false;\n }\n \n o.params.person_id = s.data.person_id; \n \n var s = _this.tablegrid.selModel.getSelected();\n if (!s) {\n _this.detailgrid.view.el.mask(\"Select a table\");\n return false;\n }\n o.params.on_table = s.data.on_table; \n \n _this.detailgrid.view.el.unmask();\n \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 \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 //o.params['query[table_d]'] = 1;\n //o.params._columns = 'on_table,qty,uqty';\n\n \n}"
421 "$ sortInfo" : "{ field : 'event_when', direction: 'DESC' }",
422 "$ xns" : "Roo.data",
423 "* prop" : "dataSource",
426 "$ url" : "baseURL + '/Roo/Events.php'",
428 "xtype" : "HttpProxy",
429 "$ xns" : "Roo.data",
435 "xtype" : "JsonReader",
436 "$ xns" : "Roo.data",
437 "$ 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]",
439 "totalProperty" : "total"
445 "xtype" : "PagingToolbar",
446 "emptyMsg" : "No Events found",
448 "displayInfo" : true,
449 "displayMsg" : "Displaying Events{0} - {1} of {2}",
453 "xtype" : "ColumnModel",
456 "$ renderer" : "function(v) { return String.format('{0}', v); }",
457 "$ xns" : "Roo.grid",
458 "* prop" : "colModel[]",
462 "xtype" : "ColumnModel",
464 "header" : "Event when",
465 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
466 "$ xns" : "Roo.grid",
467 "* prop" : "colModel[]",
468 "dataIndex" : "event_when"
471 "xtype" : "ColumnModel",
474 "$ renderer" : "function(v) { return String.format('{0}', v); }",
475 "$ xns" : "Roo.grid",
476 "* prop" : "colModel[]",
477 "dataIndex" : "action"
480 "xtype" : "ColumnModel",
483 "$ renderer" : "function(v) { return String.format('{0}', v); }",
484 "$ xns" : "Roo.grid",
485 "* prop" : "colModel[]",
486 "dataIndex" : "ipaddr"
489 "xtype" : "ColumnModel",
492 "$ renderer" : "function(v) { return String.format('{0}', v); }",
493 "$ xns" : "Roo.grid",
494 "* prop" : "colModel[]",
495 "dataIndex" : "on_id"
498 "xtype" : "ColumnModel",
500 "header" : "Remarks",
501 "$ renderer" : "function(v) { return String.format('{0}', v); }",
502 "$ xns" : "Roo.grid",
503 "* prop" : "colModel[]",
504 "dataIndex" : "remarks"
512 "|activate" : "function() {\n _this.daypanel = this;\n if (_this.daygrid) {\n _this.daygrid.footer.onClick('first');\n }\n}"
517 "title" : "Daily summary",
518 "xtype" : "GridPanel",
519 "fitContainer" : true,
521 "tableName" : "Events",
525 "|render" : "function() \n{\n _this.daygrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.daypanel.active) {\n this.footer.onClick('first');\n }\n}"
527 "autoExpandColumn" : "person_name",
530 "$ xns" : "Roo.grid",
535 "beforeload" : "function (_self, o)\n{\n if (! _this.dategrid) {\n return false;\n }\n \n o.params = o.params || {};\n \n var s = _this.dategrid.selModel.getSelected();\n if (!s) {\n _this.detailgrid.view.el.mask(\"Select a person\");\n return false;\n }\n \n o.params.person_id = s.data.person_id; \n \n var s = _this.tablegrid.selModel.getSelected();\n if (!s) {\n _this.detailgrid.view.el.mask(\"Select a table\");\n return false;\n }\n o.params.on_table = s.data.on_table; \n \n _this.detailgrid.view.el.unmask();\n \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 \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 o.params['query[day_sum]'] = 1;\n o.params._columns = 'on_day,qty,uqty';\n\n \n}"
539 "$ sortInfo" : "{ field : 'on_day', direction: 'ASC' }",
540 "$ xns" : "Roo.data",
541 "* prop" : "dataSource",
544 "$ url" : "baseURL + '/Roo/Events.php'",
546 "xtype" : "HttpProxy",
547 "$ xns" : "Roo.data",
553 "xtype" : "JsonReader",
554 "$ xns" : "Roo.data",
555 "$ 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]",
557 "totalProperty" : "total"
563 "xtype" : "PagingToolbar",
564 "emptyMsg" : "No Events found",
566 "displayInfo" : true,
567 "displayMsg" : "Displaying Events{0} - {1} of {2}",
571 "xtype" : "ColumnModel",
573 "header" : "Event when",
575 "$ renderer" : "function(v) { return String.format('{0}', v ); }",
576 "$ xns" : "Roo.grid",
577 "* prop" : "colModel[]",
578 "dataIndex" : "on_day"
581 "xtype" : "ColumnModel",
583 "header" : "#Affected",
585 "$ renderer" : "function(v) { return String.format('{0}', v); }",
586 "$ xns" : "Roo.grid",
587 "* prop" : "colModel[]",
591 "xtype" : "ColumnModel",
593 "header" : "Changes",
595 "$ renderer" : "function(v) { return String.format('{0}', v); }",
596 "$ xns" : "Roo.grid",
597 "* prop" : "colModel[]",