Pman.Tab.AdminCompanies.bjs
[Pman.Admin] / Pman.Tab.AdminLogEvents.bjs
1 {
2     "id": "roo-file-55",
3     "name": "Pman.Tab.AdminLogEvents",
4     "parent": "Pman.Tab.AdminLogs",
5     "title": "Admin - Logs - Events",
6     "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminLogEvents.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
11             },
12             "background": true,
13             "fitContainer": true,
14             "fitToframe": true,
15             "region": "center",
16             "tableName": "Events",
17             "title": "Events",
18             "xtype": "GridPanel",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "*prop": "grid",
23                     "xtype": "Grid",
24                     "autoExpandColumn": "remarks",
25                     "loadMask": true,
26                     "listeners": {
27                         "|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}"
28                     },
29                     "|xns": "Roo.grid",
30                     "items": [
31                         {
32                             "listeners": {
33                                 "|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}"
34                             },
35                             "*prop": "dataSource",
36                             "remoteSort": true,
37                             "xtype": "Store",
38                             "|reader": "Pman.Readers.Events",
39                             "|sortInfo": "{ field: 'event_when', direction: 'DESC'}",
40                             "|xns": "Roo.data",
41                             "items": [
42                                 {
43                                     "|xns": "Roo.data",
44                                     "xtype": "JsonReader",
45                                     "totalProperty": "total",
46                                     "root": "data",
47                                     "*prop": "reader",
48                                     "id": "id",
49                                     "|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]"
50                                 },
51                                 {
52                                     "*prop": "proxy",
53                                     "xtype": "HttpProxy",
54                                     "method": "GET",
55                                     "|url": "baseURL + '/Roo/Events.php'",
56                                     "listeners": {},
57                                     "|xns": "Roo.data"
58                                 }
59                             ]
60                         },
61                         {
62                             "*prop": "footer",
63                             "xtype": "PagingToolbar",
64                             "pageSize": 25,
65                             "displayInfo": true,
66                             "displayMsg": "Displaying Events  {0} - {1} of {2}",
67                             "emptyMsg": "No Events found",
68                             "|xns": "Roo"
69                         },
70                         {
71                             "*prop": "toolbar",
72                             "xtype": "Toolbar",
73                             "listeners": {},
74                             "|xns": "Roo",
75                             "items": [
76                                 {
77                                     "xtype": "TextItem",
78                                     "|xns": "Roo.Toolbar",
79                                     "text": "Show",
80                                     "listeners": {}
81                                 },
82                                 {
83                                     "listeners": {
84                                         "|select": "function (combo, record, index)\n{\n  _this.grid.footer.onClick('first');\n  \n}",
85                                         "|render": "function (_self)\n{\n  _this.personSel = _self;\n}"
86                                     },
87                                     "allowBlank": true,
88                                     "displayField": "name",
89                                     "editable": true,
90                                     "emptyText": "Select Person ",
91                                     "fieldLabel": "Person ",
92                                     "forceSelection": true,
93                                     "listWidth": 400,
94                                     "loadingText": "Searching...",
95                                     "minChars": 2,
96                                     "name": "person_id_name",
97                                     "pageSize": 20,
98                                     "qtip": "Select Person ",
99                                     "queryParam": "query[name]",
100                                     "selectOnFocus": true,
101                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> &lt;{email}&gt; </div>",
102                                     "triggerAction": "all",
103                                     "typeAhead": true,
104                                     "valueField": "id",
105                                     "width": 150,
106                                     "xtype": "ComboBox",
107                                     "|xns": "Roo.form",
108                                     "items": [
109                                         {
110                                             "listeners": {
111                                                 "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    o.company_id = Pman.Login.authUser.company_id;\n}"
112                                             },
113                                             "*prop": "store",
114                                             "|sortInfo": "{ field : 'name' , direction : 'ASC' }",
115                                             "xtype": "Store",
116                                             "|xns": "Roo.data",
117                                             "items": [
118                                                 {
119                                                     "*prop": "proxy",
120                                                     "xtype": "HttpProxy",
121                                                     "|url": "baseURL + '/Roo/Person.php'",
122                                                     "method": "GET",
123                                                     "|xns": "Roo.data"
124                                                 },
125                                                 {
126                                                     "*prop": "reader",
127                                                     "id": "id",
128                                                     "root": "data",
129                                                     "totalProperty": "total",
130                                                     "xtype": "JsonReader",
131                                                     "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'lang',\n        'type': 'string'\n    },\n    {\n        'name': 'no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'deleted_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'office_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_tel',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_isOwner',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_logo_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_background_color',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_comptype',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_main_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_updated_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_dispatch_port',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_province',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_country',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_team_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_file_location',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_open_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_open_by',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_close_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_agency_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_deleted_dt',\n        'type': 'date'\n    }\n]",
132                                                     "|xns": "Roo.data"
133                                                 }
134                                             ]
135                                         }
136                                     ]
137                                 },
138                                 {
139                                     "listeners": {
140                                         "|select": "function (combo, record, index)\n{\n  _this.grid.footer.onClick('first');\n}",
141                                         "|render": "function (_self)\n{\n  _this.actionSel = _self;\n}"
142                                     },
143                                     "allowBlank": true,
144                                     "displayField": "action",
145                                     "editable": false,
146                                     "emptyText": "Select Action",
147                                     "forceSelection": true,
148                                     "listWidth": 300,
149                                     "loadingText": "Searching...",
150                                     "minChars": 2,
151                                     "name": "action",
152                                     "pageSize": 20,
153                                     "qtip": "Select Action",
154                                     "queryParam": "query[action]",
155                                     "selectOnFocus": true,
156                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{action}</b> </div>",
157                                     "triggerAction": "all",
158                                     "typeAhead": true,
159                                     "valueField": "action",
160                                     "width": 150,
161                                     "xtype": "ComboBox",
162                                     "|xns": "Roo.form",
163                                     "items": [
164                                         {
165                                             "listeners": {
166                                                 "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    // staff can see all logs, other companies can only see their own.\n    if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n        o.params.company_id = Pman.Login.authUser.company_id;\n    }\n    o.params._distinct = 'action';\n    o.params._columns ='action';\n}"
167                                             },
168                                             "*prop": "store",
169                                             "|sortInfo": "{ field : 'action' , direction : 'ASC' }",
170                                             "xtype": "Store",
171                                             "|xns": "Roo.data",
172                                             "items": [
173                                                 {
174                                                     "*prop": "proxy",
175                                                     "method": "GET",
176                                                     "xtype": "HttpProxy",
177                                                     "|url": "baseURL + '/Roo/Events.php'",
178                                                     "|xns": "Roo.data"
179                                                 },
180                                                 {
181                                                     "|xns": "Roo.data",
182                                                     "xtype": "JsonReader",
183                                                     "totalProperty": "total",
184                                                     "root": "data",
185                                                     "*prop": "reader",
186                                                     "id": "id",
187                                                     "|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]"
188                                                 }
189                                             ]
190                                         }
191                                     ]
192                                 },
193                                 {
194                                     "listeners": {
195                                         "|select": "function (combo, record, index)\n{\n  _this.grid.footer.onClick('first');\n}",
196                                         "|render": "function (_self)\n{\n  _this.affectSel = _self;\n}"
197                                     },
198                                     "allowBlank": true,
199                                     "displayField": "on_table",
200                                     "editable": false,
201                                     "emptyText": "Select Affects",
202                                     "forceSelection": true,
203                                     "listWidth": 300,
204                                     "loadingText": "Searching...",
205                                     "minChars": 2,
206                                     "name": "on_table",
207                                     "pageSize": 20,
208                                     "qtip": "Select Action",
209                                     "queryParam": "query[on_table]",
210                                     "selectOnFocus": true,
211                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
212                                     "triggerAction": "all",
213                                     "typeAhead": true,
214                                     "valueField": "action",
215                                     "width": 150,
216                                     "xtype": "ComboBox",
217                                     "|xns": "Roo.form",
218                                     "items": [
219                                         {
220                                             "listeners": {
221                                                 "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    // staff can see all logs, other companies can only see their own.\n    if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n        o.params.company_id = Pman.Login.authUser.company_id;\n    }\n    o.params._distinct = 'on_table';\n    o.params._columns ='on_table';\n}"
222                                             },
223                                             "*prop": "store",
224                                             "xtype": "Store",
225                                             "|sortInfo": "{ field : 'on_table' , direction : 'ASC' }",
226                                             "|xns": "Roo.data",
227                                             "items": [
228                                                 {
229                                                     "*prop": "proxy",
230                                                     "method": "GET",
231                                                     "xtype": "HttpProxy",
232                                                     "|url": "baseURL + '/Roo/Events.php'",
233                                                     "|xns": "Roo.data"
234                                                 },
235                                                 {
236                                                     "|xns": "Roo.data",
237                                                     "xtype": "JsonReader",
238                                                     "totalProperty": "total",
239                                                     "root": "data",
240                                                     "*prop": "reader",
241                                                     "id": "id",
242                                                     "|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]"
243                                                 }
244                                             ]
245                                         }
246                                     ]
247                                 },
248                                 {
249                                     "listeners": {
250                                         "click": "function (_self, e)\n{\n \n    var params = {\n        'sort' : 'event_when',\n        'dir' : 'DESC',\n        'start' : 0,\n        'limit' : 400,\n        person_id : _this.personSel.getValue(), \n        'csvTitles[0]' : 'When',   'csvCols[0]' : 'event_when', \n        'csvTitles[1]' : 'Staff',   'csvCols[1]' : 'person_name', \n        'csvTitles[2]' : 'Action',   'csvCols[2]' : 'action', \n        'csvTitles[3]' : 'Remarks',   'csvCols[3]' : 'remarks'\n        \n    }\n        \n    \n    var act = _this.actionSel.getValue();\n    if (act.length) {\n        params.action = act;\n    }\n    \n\n    new Pman.download({\n        url : baseURL + '/Roo/Events.php',\n        params : params,\n        newWindow: true\n        \n    });\n}"
251                                     },
252                                     "text": "Download",
253                                     "xtype": "Button",
254                                     "|xns": "Roo.Toolbar"
255                                 }
256                             ]
257                         },
258                         {
259                             "xtype": "ColumnModel",
260                             "header": "When",
261                             "width": 100,
262                             "dataIndex": "event_when",
263                             "|renderer": "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }",
264                             "listeners": {},
265                             "|xns": "Roo.grid",
266                             "*prop": "colModel[]"
267                         },
268                         {
269                             "*prop": "colModel[]",
270                             "dataIndex": "id",
271                             "header": "#id",
272                             "width": 100,
273                             "xtype": "ColumnModel",
274                             "|xns": "Roo.grid",
275                             "listeners": {}
276                         },
277                         {
278                             "*prop": "colModel[]",
279                             "dataIndex": "person_name",
280                             "header": "Staff",
281                             "width": 150,
282                             "xtype": "ColumnModel",
283                             "|renderer": "function(v,x,r) { \n    return String.format('{0} &lt;<a href=\"mailto:{1}\">{1}</a>&gt;', v, r.data.person_id_email); \n}",
284                             "|xns": "Roo.grid"
285                         },
286                         {
287                             "xtype": "ColumnModel",
288                             "header": "Action",
289                             "width": 100,
290                             "dataIndex": "action",
291                             "|renderer": "function(v) { return String.format('{0}', v); }",
292                             "|xns": "Roo.grid",
293                             "*prop": "colModel[]"
294                         },
295                         {
296                             "xtype": "ColumnModel",
297                             "header": "IP",
298                             "width": 100,
299                             "dataIndex": "ipaddr",
300                             "|renderer": "function(v) { return String.format('{0}', v); }",
301                             "listeners": {},
302                             "|xns": "Roo.grid",
303                             "*prop": "colModel[]"
304                         },
305                         {
306                             "xtype": "ColumnModel",
307                             "header": "Affected",
308                             "width": 100,
309                             "dataIndex": "on_id",
310                             "|renderer": "function(v, x, r) {                             return v ? String.format('{0}({1})', r.data.on_table, v)  : '';                         }",
311                             "listeners": {},
312                             "|xns": "Roo.grid",
313                             "*prop": "colModel[]"
314                         },
315                         {
316                             "xtype": "ColumnModel",
317                             "header": "Remarks",
318                             "width": 300,
319                             "dataIndex": "remarks",
320                             "|renderer": "function(v) { return String.format('{0}', v); }",
321                             "listeners": {},
322                             "|xns": "Roo.grid",
323                             "*prop": "colModel[]"
324                         }
325                     ]
326                 }
327             ]
328         }
329     ],
330     "permname": "",
331     "modOrder": "001"
332 }