3 "name": "Pman.Dialog.AdminEventLog",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminEventLog.bjs",
10 "xtype": "LayoutDialog",
18 "tableName": "Events",
22 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
28 "autoExpandColumn": "person_name",
31 "|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}",
32 "|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"
37 "*prop": "dataSource",
40 "|sortInfo": "{ field : 'person_name', direction: 'ASC' }",
47 "|url": "baseURL + '/Roo/Events.php'",
52 "xtype": "JsonReader",
53 "totalProperty": "total",
57 "|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]"
63 "xtype": "PagingToolbar",
66 "displayMsg": "Displaying Events{0} - {1} of {2}",
67 "emptyMsg": "No Events found",
78 "cls": "x-btn-text-icon",
79 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
81 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
88 "cls": "x-btn-text-icon",
89 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
91 "|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"
97 "cls": "x-btn-text-icon",
98 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
101 "|click": "function()\n{\n Pman.genericDelete(_this, 'Events'); \n}\n "
103 "|xns": "Roo.Toolbar"
108 "xtype": "ColumnModel",
112 "|renderer": "function(v) { return String.format('{0}', v); }",
114 "*prop": "colModel[]"
117 "xtype": "ColumnModel",
118 "header": "Person name",
120 "dataIndex": "person_name",
121 "|renderer": "function(v) { return String.format('{0}', v); }",
123 "*prop": "colModel[]"
126 "xtype": "ColumnModel",
127 "header": "Event when",
129 "dataIndex": "event_when",
130 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
132 "*prop": "colModel[]"
135 "xtype": "ColumnModel",
138 "dataIndex": "action",
139 "|renderer": "function(v) { return String.format('{0}', v); }",
141 "*prop": "colModel[]"
144 "xtype": "ColumnModel",
147 "dataIndex": "ipaddr",
148 "|renderer": "function(v) { return String.format('{0}', v); }",
150 "*prop": "colModel[]"
153 "xtype": "ColumnModel",
156 "dataIndex": "on_id",
157 "|renderer": "function(v) { return String.format('{0}', v); }",
159 "*prop": "colModel[]"
162 "xtype": "ColumnModel",
163 "header": "On table",
165 "dataIndex": "on_table",
166 "|renderer": "function(v) { return String.format('{0}', v); }",
168 "*prop": "colModel[]"
171 "xtype": "ColumnModel",
174 "dataIndex": "person_id",
175 "|renderer": "function(v) { return String.format('{0}', v); }",
177 "*prop": "colModel[]"
180 "xtype": "ColumnModel",
183 "dataIndex": "remarks",
184 "|renderer": "function(v) { return String.format('{0}', v); }",
186 "*prop": "colModel[]"
189 "xtype": "ColumnModel",
190 "header": "Person table",
192 "dataIndex": "person_table",
193 "|renderer": "function(v) { return String.format('{0}', v); }",
195 "*prop": "colModel[]"