3 "name": "Pman.Dialog.AdminEventLog",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminEventLog.bjs",
11 "xtype": "LayoutDialog",
20 "tableName": "Events",
24 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
30 "autoExpandColumn": "person_name",
33 "|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}",
34 "|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"
39 "*prop": "dataSource",
42 "|sortInfo": "{ field : 'person_name', direction: 'ASC' }",
49 "|url": "baseURL + '/Roo/Events.php'",
54 "xtype": "JsonReader",
55 "totalProperty": "total",
59 "|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]"
65 "xtype": "PagingToolbar",
68 "displayMsg": "Displaying Events{0} - {1} of {2}",
69 "emptyMsg": "No Events found",
80 "cls": "x-btn-text-icon",
81 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
83 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
90 "cls": "x-btn-text-icon",
91 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
93 "|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"
99 "cls": "x-btn-text-icon",
100 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
103 "|click": "function()\n{\n Pman.genericDelete(_this, 'Events'); \n}\n "
105 "|xns": "Roo.Toolbar"
110 "xtype": "ColumnModel",
114 "|renderer": "function(v) { return String.format('{0}', v); }",
116 "*prop": "colModel[]"
119 "xtype": "ColumnModel",
120 "header": "Person name",
122 "dataIndex": "person_name",
123 "|renderer": "function(v) { return String.format('{0}', v); }",
125 "*prop": "colModel[]"
128 "xtype": "ColumnModel",
129 "header": "Event when",
131 "dataIndex": "event_when",
132 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
134 "*prop": "colModel[]"
137 "xtype": "ColumnModel",
140 "dataIndex": "action",
141 "|renderer": "function(v) { return String.format('{0}', v); }",
143 "*prop": "colModel[]"
146 "xtype": "ColumnModel",
149 "dataIndex": "ipaddr",
150 "|renderer": "function(v) { return String.format('{0}', v); }",
152 "*prop": "colModel[]"
155 "xtype": "ColumnModel",
158 "dataIndex": "on_id",
159 "|renderer": "function(v) { return String.format('{0}', v); }",
161 "*prop": "colModel[]"
164 "xtype": "ColumnModel",
165 "header": "On table",
167 "dataIndex": "on_table",
168 "|renderer": "function(v) { return String.format('{0}', v); }",
170 "*prop": "colModel[]"
173 "xtype": "ColumnModel",
176 "dataIndex": "person_id",
177 "|renderer": "function(v) { return String.format('{0}', v); }",
179 "*prop": "colModel[]"
182 "xtype": "ColumnModel",
185 "dataIndex": "remarks",
186 "|renderer": "function(v) { return String.format('{0}', v); }",
188 "*prop": "colModel[]"
191 "xtype": "ColumnModel",
192 "header": "Person table",
194 "dataIndex": "person_table",
195 "|renderer": "function(v) { return String.format('{0}', v); }",
197 "*prop": "colModel[]"