Pman.Tab.BAdminLogEvents.bjs
[Pman.BAdmin] / Pman.Tab.BAdminLogEvents.bjs
1 {
2  "name" : "Pman.Tab.BAdminLogEvents",
3  "parent" : "Pman.Tab.BAdminLogs",
4  "title" : "Pman.Tab.BAdminLogEvents",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminLogEvents.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "90275c90e270853fee34db3b87d24d7c" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
10   "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
11   "87f9f735a1d36793ceaecd4e47124b63" : "Events",
12   "87557f11575c0ad78e4e28abedc13b6e" : "End",
13   "1b7f7d24575cdbfadb83b9587fa1bf97" : "#id",
14   "098f6bcd4621d373cade4e832627b4f6" : "test",
15   "10927a67903afd162cc29267d434a2bb" : "select action",
16   "c759559b750d502a5be8dceae85ed841" : "select affected",
17   "fc6f97505d89fe9277965c126744647a" : "No Companies found",
18   "06bff0cfe47afca536033ab51f4e2cdc" : "Log View",
19   "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
20   "a3ec0cd6d6acd83df3e2095c5edcf8b5" : "Log Grid",
21   "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
22   "340c2ee497b85d5954b01c64de7f44f6" : "Select Person",
23   "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When",
24   "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person",
25   "004bf6c9a40003140292e97330236c53" : "Action",
26   "a6122a65eaa676f700ae68d393054a37" : "Start",
27   "31c03fdb82204f0ac1fe916b2c713c8c" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
28   "2c92a9a6a5dbf570825e62eabcdecd8d" : "Affected"
29  },
30  "items" : [
31   {
32    "listeners" : {
33     "activate" : "function (_self)\n{\n    if(!document.getElementsByClassName('event-south-pane')) {\n        return;\n    }\n    \n    document.getElementsByClassName('event-south-pane')[0].classList.remove('disable-pane');\n    \n    if(\n        appDisabled.indexOf('Core.SuperAdmin') * 1 != -1\n    ) {\n        document.getElementsByClassName('event-south-pane')[0].classList.add('disable-pane');\n    }\n    \n}"
34    },
35    "xtype" : "Nest",
36    "$ xns" : "Roo.bootstrap.panel",
37    "String title" : "Events",
38    "items" : [
39     {
40      "xtype" : "Border",
41      "$ xns" : "Roo.bootstrap.layout",
42      "* prop" : "layout",
43      "items" : [
44       {
45        "String tabPosition" : "top",
46        "xtype" : "Region",
47        "Boolean hideTabs" : true,
48        "$ xns" : "Roo.bootstrap.layout",
49        "* prop" : "center"
50       },
51       {
52        "String tabPosition" : "top",
53        "xtype" : "Region",
54        "Boolean hideTabs" : true,
55        "Number height" : 150,
56        "string cls" : "event-south-pane",
57        "$ xns" : "Roo.bootstrap.layout",
58        "Boolean autoScroll" : true,
59        "* prop" : "south",
60        "Boolean split" : true
61       },
62       {
63        "listeners" : {
64         "render" : "function (_self)\n{\n  _this.viewPanel = _self;\n}"
65        },
66        "xtype" : "Content",
67        "Boolean fitToFrame" : true,
68        "$ xns" : "Roo.bootstrap.panel",
69        "String region" : "south",
70        "String title" : "Log View"
71       },
72       {
73        "listeners" : {
74         "activate" : "function (_self)\n{\n    \n    if (_this.table) {\n        \n        _this.table.footer.onClick('first');\n        \n    }\n    \n}",
75         "render" : "function (_self)\n{\n    _this.grid = _self;\n}"
76        },
77        "xtype" : "Grid",
78        "Boolean fitToFrame" : true,
79        "$ xns" : "Roo.bootstrap.panel",
80        "String region" : "center",
81        "String title" : "Log Grid",
82        "Boolean closable" : false,
83        "items" : [
84         {
85          "xtype" : "NavSimplebar",
86          "$ xns" : "Roo.bootstrap",
87          "* prop" : "toolbar",
88          "items" : [
89           {
90            "xtype" : "NavGroup",
91            "$ xns" : "Roo.bootstrap",
92            "items" : [
93             {
94              "xtype" : "NavItem",
95              "$ xns" : "Roo.bootstrap",
96              "items" : [
97               {
98                "xtype" : "Element",
99                "$ xns" : "Roo.bootstrap",
100                "items" : [
101                 {
102                  "String cls" : "roo-toolbar",
103                  "xtype" : "Row",
104                  "$ xns" : "Roo.bootstrap",
105                  "items" : [
106                   {
107                    "Number md" : 12,
108                    "xtype" : "Column",
109                    "$ xns" : "Roo.bootstrap",
110                    "items" : [
111                     {
112                      "listeners" : {
113                       "render" : "function (_self)\n{\n    this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();\n}"
114                      },
115                      "String cls" : "roo-toolbar-label",
116                      "xtype" : "FieldLabel",
117                      "$ xns" : "Roo.bootstrap",
118                      "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
119                      "String style" : "float: left; line-height: 34px; width: 80px;"
120                     },
121                     {
122                      "listeners" : {
123                       "render" : "function (_self)\n{\n    _this.personSel = this;\n    \n}",
124                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
125                      },
126                      "Boolean allowBlank" : true,
127                      "String loadingText" : "test",
128                      "String valueField" : "id",
129                      "Boolean typeAhead" : true,
130                      "Boolean removable" : true,
131                      "xtype" : "ComboBox",
132                      "Boolean editable" : false,
133                      "String triggerAction" : "all",
134                      "Boolean alwaysQuery" : false,
135                      "string placeholder" : "Select Person",
136                      "$ xns" : "Roo.bootstrap",
137                      "String style" : "float: left; width: 300px;",
138                      "Boolean multiple" : false,
139                      "String displayField" : "name",
140                      "Boolean forceSelection" : true,
141                      "items" : [
142                       {
143                        "listeners" : {
144                         "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n        o.params.limit = 9999;\n}"
145                        },
146                        "$ Object sortInfo" : "{field : 'name' , direction : 'ASC'}",
147                        "xtype" : "Store",
148                        "boolean remoteSort" : true,
149                        "$ xns" : "Roo.data",
150                        "* prop" : "store",
151                        "items" : [
152                         {
153                          "xtype" : "HttpProxy",
154                          "$ xns" : "Roo.data",
155                          "String method" : "GET",
156                          "* prop" : "proxy",
157                          "$ String url" : "baseURL+'/Roo/Core_person'"
158                         },
159                         {
160                          "$ Array 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]",
161                          "xtype" : "JsonReader",
162                          "$ xns" : "Roo.data",
163                          "* prop" : "reader"
164                         }
165                        ]
166                       }
167                      ]
168                     },
169                     {
170                      "listeners" : {
171                       "render" : "function (_self)\n{\n    _this.actionSel = this;\n    \n    this.show();\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.hide();\n    }\n    \n}",
172                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
173                      },
174                      "Boolean allowBlank" : true,
175                      "String valueField" : "id",
176                      "Boolean typeAhead" : true,
177                      "Boolean removable" : true,
178                      "xtype" : "ComboBox",
179                      "Boolean editable" : false,
180                      "String triggerAction" : "all",
181                      "Boolean alwaysQuery" : false,
182                      "string placeholder" : "select action",
183                      "$ xns" : "Roo.bootstrap",
184                      "String style" : "float: left; width: 300px; margin-left: 15px;",
185                      "Boolean multiple" : false,
186                      "String displayField" : "action",
187                      "Boolean forceSelection" : true,
188                      "items" : [
189                       {
190                        "listeners" : {
191                         "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    \n    /*\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    */\n    o.params.limit = 9999;\n    o.params._distinct = 'action';\n    \n    o.params._columns ='action';\n}"
192                        },
193                        "$ Object sortInfo" : "{ field : 'action' , direction : 'ASC' }",
194                        "xtype" : "Store",
195                        "boolean remoteSort" : true,
196                        "$ xns" : "Roo.data",
197                        "* prop" : "store",
198                        "items" : [
199                         {
200                          "xtype" : "HttpProxy",
201                          "$ xns" : "Roo.data",
202                          "String method" : "GET",
203                          "* prop" : "proxy",
204                          "$ String url" : "baseURL + '/Roo/Events'"
205                         },
206                         {
207                          "$ Array 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]",
208                          "xtype" : "JsonReader",
209                          "$ xns" : "Roo.data",
210                          "* prop" : "reader"
211                         }
212                        ]
213                       }
214                      ]
215                     },
216                     {
217                      "listeners" : {
218                       "render" : "function (_self)\n{\n    _this.affectSel = this;\n    \n    this.show();\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.hide();\n    }\n    \n}",
219                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
220                      },
221                      "Boolean allowBlank" : true,
222                      "String valueField" : "id",
223                      "Boolean typeAhead" : true,
224                      "Boolean removable" : true,
225                      "xtype" : "ComboBox",
226                      "Boolean editable" : false,
227                      "String triggerAction" : "all",
228                      "Boolean alwaysQuery" : false,
229                      "string placeholder" : "select affected",
230                      "$ xns" : "Roo.bootstrap",
231                      "String style" : "float: left; width: 300px; margin-left: 15px;",
232                      "Boolean multiple" : false,
233                      "String displayField" : "on_table",
234                      "Boolean forceSelection" : true,
235                      "items" : [
236                       {
237                        "listeners" : {
238                         "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    \n    /*\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    */\n        o.params.limit = 9999;\n    o.params._distinct = 'on_table';\n    \n    o.params._columns ='on_table';\n}"
239                        },
240                        "Object sortInfo" : "{ field : 'on_table' , direction : 'ASC' }",
241                        "xtype" : "Store",
242                        "boolean remoteSort" : true,
243                        "$ xns" : "Roo.data",
244                        "* prop" : "store",
245                        "items" : [
246                         {
247                          "xtype" : "HttpProxy",
248                          "$ xns" : "Roo.data",
249                          "String method" : "GET",
250                          "* prop" : "proxy",
251                          "$ String url" : "baseURL + '/Roo/Events'"
252                         },
253                         {
254                          "$ Array 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]",
255                          "xtype" : "JsonReader",
256                          "$ xns" : "Roo.data",
257                          "* prop" : "reader"
258                         }
259                        ]
260                       }
261                      ]
262                     },
263                     {
264                      "listeners" : {
265                       "render" : "function (_self)\n{\n    this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();\n}"
266                      },
267                      "String cls" : "roo-toolbar-label",
268                      "xtype" : "FieldLabel",
269                      "$ xns" : "Roo.bootstrap",
270                      "String html" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
271                      "String style" : "float: left; line-height: 34px; width: 125px; margin-left: 15px;"
272                     },
273                     {
274                      "listeners" : {
275                       "render" : "function (_self)\n{\n    _this.dateFrom = _self;\n}",
276                       "change" : "function (_self, newValue, oldValue)\n{\n      _this.table.footer.onClick('first');\n}"
277                      },
278                      "xtype" : "DateField",
279                      "string placeholder" : "Start",
280                      "$ xns" : "Roo.bootstrap",
281                      "String style" : "float:left; width: 150px;"
282                     },
283                     {
284                      "listeners" : {
285                       "render" : "function (_self)\n{\n    _this.dateTo = _self;\n}",
286                       "change" : "function (_self, newValue, oldValue)\n{\n    _this.table.footer.onClick('first');\n}"
287                      },
288                      "xtype" : "DateField",
289                      "string placeholder" : "End",
290                      "$ xns" : "Roo.bootstrap",
291                      "String style" : "float:left; width: 150px; margin-left: 15px;"
292                     }
293                    ]
294                   }
295                  ]
296                 }
297                ]
298               }
299              ]
300             }
301            ]
302           }
303          ]
304         },
305         {
306          "listeners" : {
307           "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n/*\n    if (!_this.dialog) {\n        return;\n    }\n    _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n        if (_this.table) {\n            _this.table.footer.onClick('first');\n        }\n    });\n*/\n}",
308           "render" : "function (_self)\n{\n    \n    _this.table = _self;\n    \n}"
309          },
310          "String cls" : "table-fixed",
311          "boolean hover" : true,
312          "boolean striped" : false,
313          "xtype" : "Table",
314          "boolean responsive" : true,
315          "Boolean rowSelection" : true,
316          "$ xns" : "Roo.bootstrap",
317          "Boolean loadMask" : true,
318          "* prop" : "grid",
319          "items" : [
320           {
321            "listeners" : {
322             "beforeload" : "function (_self, o)\n{\n    if (!Pman.buildCompleted) {\n        return false;\n    }\n    \n    o.params = o.params || {};\n    \n    o.params.person_id = _this.personSel.getValue();\n    \n    var act = _this.actionSel.getValue();\n    \n    if (act.length) {\n        \n        o.params.action = act;\n        \n    }\n    var tbl = _this.affectSel.getValue();\n    \n    if (tbl.length) {\n    \n        o.params.on_table = tbl;\n        \n    }\n    \n    var f = _this.dateFrom.getValue().split(\"/\");\n    \n    var df_string = f[2]+\"-\"+f[0]+\"-\"+f[1];\n    \n    var df = new Date(Date.parse(f));\n    \n    var t = _this.dateTo.getValue().split(\"/\");\n        \n    var dt_string = t[2]+\"-\"+t[0]+\"-\"+t[1];\n    \n    var dt = new Date(Date.parse(t));\n    \n    if (\n        _this.dateFrom.format && \n        \n        _this.dateTo.format &&\n        \n        (dt > df)\n    ) {\n        o.params['query[from]'] = df_string;\n        \n        o.params['query[to]'] = dt_string;\n        \n    }\n    \n}",
323             "load" : "function (_self, records, options)\n{\n    //Roo.log(records);\n}"
324            },
325            "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
326            "boolean hover" : true,
327            "boolean striped" : true,
328            "xtype" : "Store",
329            "Boolean rowSelection" : true,
330            "boolean remoteSort" : true,
331            "$ xns" : "Roo.data",
332            "Boolean loadMask" : true,
333            "* prop" : "store",
334            "items" : [
335             {
336              "$ Array 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]",
337              "xtype" : "JsonReader",
338              "String root" : "data",
339              "$ xns" : "Roo.data",
340              "String id" : "id",
341              "* prop" : "reader",
342              "String totalProperty" : "total"
343             },
344             {
345              "listeners" : {
346               "load" : "function (This, o, arg)\n{\n    //_this.table.footer.onClick('first');\n}"
347              },
348              "xtype" : "HttpProxy",
349              "$ xns" : "Roo.data",
350              "String method" : "GET",
351              "* prop" : "proxy",
352              "$ String url" : "baseURL + '/Roo/Events'"
353             }
354            ]
355           },
356           {
357            "listeners" : {
358             "afterselectionchange" : "function (_self)\n{\n    \n    if (!this.getSelected()) {\n        \n        _this.viewPanel.setContent(\"Nothing Selected\");\n        \n        return;\n        \n    }\n    \n    var id = this.getSelected().data.id;\n    \n    _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n    \n}"
359            },
360            "Boolean singleSelect" : true,
361            "xtype" : "RowSelectionModel",
362            "$ xns" : "Roo.bootstrap.Table",
363            "* prop" : "sm"
364           },
365           {
366            "listeners" : {
367             "render" : "function (_self)\n{\n    _this.footer = _self;\n}"
368            },
369            "Number pageSize" : 25,
370            "Boolean displayInfo" : false,
371            "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
372            "xtype" : "PagingToolbar",
373            "String emptyMsg" : "No Companies found",
374            "$ xns" : "Roo.bootstrap",
375            "* prop" : "footer",
376            "string name" : "footer"
377           },
378           {
379            "String header" : "When",
380            "Number md" : 2,
381            "String dataIndex" : "event_when",
382            "xtype" : "ColumnModel",
383            "Number xs" : 2,
384            "$ xns" : "Roo.grid",
385            "$ renderer" : "function(v) { return v ? v.dateFormat('Y/m/d H:i') : ''; }",
386            "Boolean sortable" : true,
387            "* prop" : "cm[]",
388            "Number sm" : 2
389           },
390           {
391            "String header" : "#id",
392            "Number md" : 1,
393            "String dataIndex" : "id",
394            "xtype" : "ColumnModel",
395            "Number xs" : 1,
396            "$ xns" : "Roo.grid",
397            "$ renderer" : "function(v) { return String.format('{0}', v); }",
398            "Boolean sortable" : true,
399            "* prop" : "cm[]",
400            "Number sm" : 1
401           },
402           {
403            "String header" : "Person",
404            "Number md" : 2,
405            "String dataIndex" : "person_id_name",
406            "xtype" : "ColumnModel",
407            "Number xs" : 2,
408            "$ xns" : "Roo.grid",
409            "$ renderer" : "function(v) { return String.format('{0}', v); }",
410            "Boolean sortable" : true,
411            "* prop" : "cm[]",
412            "Number sm" : 2
413           },
414           {
415            "String header" : "Action",
416            "Number md" : 1,
417            "String dataIndex" : "action",
418            "xtype" : "ColumnModel",
419            "Number xs" : 1,
420            "$ xns" : "Roo.grid",
421            "$ renderer" : "function(v) { return String.format('{0}', v); }",
422            "* prop" : "cm[]",
423            "Number sm" : 1
424           },
425           {
426            "String header" : "IP",
427            "Number md" : 1,
428            "String dataIndex" : "ipaddr",
429            "xtype" : "ColumnModel",
430            "Number xs" : 1,
431            "$ xns" : "Roo.grid",
432            "$ renderer" : "function(v) { return String.format('{0}', v); }",
433            "* prop" : "cm[]",
434            "Number sm" : 1
435           },
436           {
437            "String header" : "Affected",
438            "Number md" : 1,
439            "String dataIndex" : "on_table",
440            "xtype" : "ColumnModel",
441            "Number xs" : 1,
442            "$ xns" : "Roo.grid",
443            "$ renderer" : "function(v, x, r) {\n    \n    return v ? String.format('{0}({1})', v,  r.data.on_id)  : '';\n    \n}",
444            "* prop" : "cm[]",
445            "Number sm" : 1
446           },
447           {
448            "String header" : "Remarks",
449            "Number md" : 4,
450            "String dataIndex" : "remarks",
451            "xtype" : "ColumnModel",
452            "Number xs" : 4,
453            "$ xns" : "Roo.grid",
454            "$ renderer" : "function(v) { return String.format('{0}', v); }",
455            "* prop" : "cm[]",
456            "Number sm" : 4
457           }
458          ]
459         }
460        ]
461       }
462      ]
463     }
464    ]
465   }
466  ]
467 }