{ "id": "roo-file-55", "name": "Pman.Tab.AdminLogEvents", "parent": "Pman.Tab.AdminLogs", "title": "Admin - Logs - Events", "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminLogEvents.bjs", "items": [ { "listeners": { "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, "background": true, "fitContainer": true, "fitToframe": true, "region": "center", "tableName": "Events", "title": "Events", "xtype": "GridPanel", "|xns": "Roo", "items": [ { "*prop": "grid", "xtype": "Grid", "autoExpandColumn": "remarks", "loadMask": true, "listeners": { "|render": "function() { \n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}" }, "|xns": "Roo.grid", "items": [ { "listeners": { "|beforeload": "function (_self, o)\n{\n if (! _this.personSel) {\n return;\n }\n o.params = o.params || {};\n o.params.person_id = _this.personSel.getValue();\n var act = _this.actionSel.getValue();\n if (act.length) {\n o.params.action = act;\n }\n act = _this.affectSel.getValue();\n if (act.length) {\n o.params.on_table = act;\n }\n \n}" }, "*prop": "dataSource", "remoteSort": true, "xtype": "Store", "|reader": "Pman.Readers.Events", "|sortInfo": "{ field: 'event_when', direction: 'DESC'}", "|xns": "Roo.data", "items": [ { "|xns": "Roo.data", "xtype": "JsonReader", "totalProperty": "total", "root": "data", "*prop": "reader", "id": "id", "|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]" }, { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|url": "baseURL + '/Roo/Events.php'", "listeners": {}, "|xns": "Roo.data" } ] }, { "*prop": "footer", "xtype": "PagingToolbar", "pageSize": 25, "displayInfo": true, "displayMsg": "Displaying Events {0} - {1} of {2}", "emptyMsg": "No Events found", "|xns": "Roo" }, { "*prop": "toolbar", "xtype": "Toolbar", "listeners": {}, "|xns": "Roo", "items": [ { "xtype": "TextItem", "|xns": "Roo.Toolbar", "text": "Show", "listeners": {} }, { "listeners": { "|select": "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n \n}", "|render": "function (_self)\n{\n _this.personSel = _self;\n}" }, "allowBlank": true, "displayField": "name", "editable": true, "emptyText": "Select Person ", "fieldLabel": "Person ", "forceSelection": true, "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "person_id_name", "pageSize": 20, "qtip": "Select Person ", "queryParam": "query[name]", "selectOnFocus": true, "tpl": "