3 "name": "Pman.Dialog.AdminEventLog",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminEventLog.bjs",
10 "xtype": "LayoutDialog",
19 "tableName": "Events",
23 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
29 "autoExpandColumn": "person_name",
32 "|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}",
33 "|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"
38 "*prop": "dataSource",
41 "|sortInfo": "{ field : 'person_name', direction: 'ASC' }",
48 "|url": "baseURL + '/Roo/Events.php'",
53 "xtype": "JsonReader",
54 "totalProperty": "total",
58 "|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]"
64 "xtype": "PagingToolbar",
67 "displayMsg": "Displaying Events{0} - {1} of {2}",
68 "emptyMsg": "No Events found",
79 "cls": "x-btn-text-icon",
80 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
82 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
89 "cls": "x-btn-text-icon",
90 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
92 "|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"
98 "cls": "x-btn-text-icon",
99 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
102 "|click": "function()\n{\n Pman.genericDelete(_this, 'Events'); \n}\n "
104 "|xns": "Roo.Toolbar"
109 "xtype": "ColumnModel",
113 "|renderer": "function(v) { return String.format('{0}', v); }",
115 "*prop": "colModel[]"
118 "xtype": "ColumnModel",
119 "header": "Person name",
121 "dataIndex": "person_name",
122 "|renderer": "function(v) { return String.format('{0}', v); }",
124 "*prop": "colModel[]"
127 "xtype": "ColumnModel",
128 "header": "Event when",
130 "dataIndex": "event_when",
131 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
133 "*prop": "colModel[]"
136 "xtype": "ColumnModel",
139 "dataIndex": "action",
140 "|renderer": "function(v) { return String.format('{0}', v); }",
142 "*prop": "colModel[]"
145 "xtype": "ColumnModel",
148 "dataIndex": "ipaddr",
149 "|renderer": "function(v) { return String.format('{0}', v); }",
151 "*prop": "colModel[]"
154 "xtype": "ColumnModel",
157 "dataIndex": "on_id",
158 "|renderer": "function(v) { return String.format('{0}', v); }",
160 "*prop": "colModel[]"
163 "xtype": "ColumnModel",
164 "header": "On table",
166 "dataIndex": "on_table",
167 "|renderer": "function(v) { return String.format('{0}', v); }",
169 "*prop": "colModel[]"
172 "xtype": "ColumnModel",
175 "dataIndex": "person_id",
176 "|renderer": "function(v) { return String.format('{0}', v); }",
178 "*prop": "colModel[]"
181 "xtype": "ColumnModel",
184 "dataIndex": "remarks",
185 "|renderer": "function(v) { return String.format('{0}', v); }",
187 "*prop": "colModel[]"
190 "xtype": "ColumnModel",
191 "header": "Person table",
193 "dataIndex": "person_table",
194 "|renderer": "function(v) { return String.format('{0}', v); }",
196 "*prop": "colModel[]"