3 "name": "Pman.Dialog.AdminEventLog",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminEventLog.bjs",
11 "xtype": "LayoutDialog",
16 "xtype": "LayoutRegion",
25 "tableName": "Events",
29 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
35 "autoExpandColumn": "person_name",
38 "|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}",
39 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
44 "*prop": "dataSource",
47 "|sortInfo": "{ field : 'person_name', direction: 'ASC' }",
54 "|url": "baseURL + '/Roo/Events.php'",
59 "xtype": "JsonReader",
60 "totalProperty": "total",
64 "|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_table',\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 {\n 'name': 'person_id_firstname',\n 'type': 'string'\n },\n {\n 'name': 'person_id_lastname',\n 'type': 'string'\n }\n]"
70 "xtype": "PagingToolbar",
73 "displayMsg": "Displaying Events{0} - {1} of {2}",
74 "emptyMsg": "No Events found",
85 "cls": "x-btn-text-icon",
86 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
88 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
95 "cls": "x-btn-text-icon",
96 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
98 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
100 "|xns": "Roo.Toolbar"
104 "cls": "x-btn-text-icon",
105 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
108 "|click": "function()\n{\n Pman.genericDelete(_this, 'Events'); \n}\n "
110 "|xns": "Roo.Toolbar"
115 "xtype": "ColumnModel",
119 "|renderer": "function(v) { return String.format('{0}', v); }",
121 "*prop": "colModel[]"
124 "xtype": "ColumnModel",
125 "header": "Person name",
127 "dataIndex": "person_name",
128 "|renderer": "function(v) { return String.format('{0}', v); }",
130 "*prop": "colModel[]"
133 "xtype": "ColumnModel",
134 "header": "Event when",
136 "dataIndex": "event_when",
137 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
139 "*prop": "colModel[]"
142 "xtype": "ColumnModel",
145 "dataIndex": "action",
146 "|renderer": "function(v) { return String.format('{0}', v); }",
148 "*prop": "colModel[]"
151 "xtype": "ColumnModel",
154 "dataIndex": "ipaddr",
155 "|renderer": "function(v) { return String.format('{0}', v); }",
157 "*prop": "colModel[]"
160 "xtype": "ColumnModel",
163 "dataIndex": "on_id",
164 "|renderer": "function(v) { return String.format('{0}', v); }",
166 "*prop": "colModel[]"
169 "xtype": "ColumnModel",
170 "header": "On table",
172 "dataIndex": "on_table",
173 "|renderer": "function(v) { return String.format('{0}', v); }",
175 "*prop": "colModel[]"
178 "xtype": "ColumnModel",
181 "dataIndex": "person_id",
182 "|renderer": "function(v) { return String.format('{0}', v); }",
184 "*prop": "colModel[]"
187 "xtype": "ColumnModel",
190 "dataIndex": "remarks",
191 "|renderer": "function(v) { return String.format('{0}', v); }",
193 "*prop": "colModel[]"
196 "xtype": "ColumnModel",
197 "header": "Person table",
199 "dataIndex": "person_table",
200 "|renderer": "function(v) { return String.format('{0}', v); }",
202 "*prop": "colModel[]"