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        "Boolean hideTabs" : true,
47        "xtype" : "Region",
48        "$ xns" : "Roo.bootstrap.layout",
49        "* prop" : "center"
50       },
51       {
52        "String tabPosition" : "top",
53        "Boolean hideTabs" : true,
54        "xtype" : "Region",
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" : 1,
108                    "xtype" : "Column",
109                    "$ xns" : "Roo.bootstrap",
110                    "items" : [
111                     {
112                      "String cls" : "roo-toolbar-label",
113                      "xtype" : "FieldLabel",
114                      "$ xns" : "Roo.bootstrap",
115                      "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
116                      "String style" : "line-height: 34px;"
117                     }
118                    ]
119                   },
120                   {
121                    "Number md" : 2,
122                    "xtype" : "Column",
123                    "$ xns" : "Roo.bootstrap",
124                    "items" : [
125                     {
126                      "listeners" : {
127                       "render" : "function (_self)\n{\n    _this.personSel = this;\n    \n}",
128                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
129                      },
130                      "Boolean allowBlank" : true,
131                      "String loadingText" : "test",
132                      "String valueField" : "id",
133                      "Boolean typeAhead" : true,
134                      "Boolean removable" : true,
135                      "xtype" : "ComboBox",
136                      "Boolean editable" : false,
137                      "String triggerAction" : "all",
138                      "Boolean alwaysQuery" : false,
139                      "string placeholder" : "Select Person",
140                      "$ xns" : "Roo.bootstrap",
141                      "Boolean multiple" : false,
142                      "String displayField" : "name",
143                      "Boolean forceSelection" : true,
144                      "items" : [
145                       {
146                        "listeners" : {
147                         "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n        o.params.limit = 9999;\n}"
148                        },
149                        "$ Object sortInfo" : "{field : 'name' , direction : 'ASC'}",
150                        "xtype" : "Store",
151                        "boolean remoteSort" : true,
152                        "$ xns" : "Roo.data",
153                        "* prop" : "store",
154                        "items" : [
155                         {
156                          "xtype" : "HttpProxy",
157                          "$ xns" : "Roo.data",
158                          "String method" : "GET",
159                          "* prop" : "proxy",
160                          "$ String url" : "baseURL+'/Roo/Core_person'"
161                         },
162                         {
163                          "$ 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]",
164                          "xtype" : "JsonReader",
165                          "$ xns" : "Roo.data",
166                          "* prop" : "reader"
167                         }
168                        ]
169                       }
170                      ]
171                     }
172                    ]
173                   },
174                   {
175                    "listeners" : {
176                     "render" : "function (_self)\n{\n    this.show();\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.hide();\n    }\n}"
177                    },
178                    "Number md" : 2,
179                    "xtype" : "Column",
180                    "$ xns" : "Roo.bootstrap",
181                    "items" : [
182                     {
183                      "listeners" : {
184                       "render" : "function (_self)\n{\n    _this.actionSel = this;\n    \n}",
185                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
186                      },
187                      "Boolean allowBlank" : true,
188                      "String valueField" : "id",
189                      "Boolean typeAhead" : true,
190                      "Boolean removable" : true,
191                      "xtype" : "ComboBox",
192                      "Boolean editable" : false,
193                      "String triggerAction" : "all",
194                      "Boolean alwaysQuery" : false,
195                      "string placeholder" : "select action",
196                      "Number listWidth" : 300,
197                      "$ xns" : "Roo.bootstrap",
198                      "Boolean multiple" : false,
199                      "String displayField" : "action",
200                      "Boolean forceSelection" : true,
201                      "items" : [
202                       {
203                        "listeners" : {
204                         "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}"
205                        },
206                        "$ Object sortInfo" : "{ field : 'action' , direction : 'ASC' }",
207                        "xtype" : "Store",
208                        "boolean remoteSort" : true,
209                        "$ xns" : "Roo.data",
210                        "* prop" : "store",
211                        "items" : [
212                         {
213                          "xtype" : "HttpProxy",
214                          "$ xns" : "Roo.data",
215                          "String method" : "GET",
216                          "* prop" : "proxy",
217                          "$ String url" : "baseURL + '/Roo/Events'"
218                         },
219                         {
220                          "$ 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]",
221                          "xtype" : "JsonReader",
222                          "$ xns" : "Roo.data",
223                          "* prop" : "reader"
224                         }
225                        ]
226                       }
227                      ]
228                     }
229                    ]
230                   },
231                   {
232                    "listeners" : {
233                     "render" : "function (_self)\n{\n    this.show();\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.hide();\n    }\n}"
234                    },
235                    "Number md" : 2,
236                    "xtype" : "Column",
237                    "$ xns" : "Roo.bootstrap",
238                    "items" : [
239                     {
240                      "listeners" : {
241                       "render" : "function (_self)\n{\n    _this.affectSel = this;\n}",
242                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
243                      },
244                      "Boolean allowBlank" : true,
245                      "String valueField" : "id",
246                      "Boolean typeAhead" : true,
247                      "Boolean removable" : true,
248                      "xtype" : "ComboBox",
249                      "Boolean editable" : false,
250                      "String triggerAction" : "all",
251                      "Boolean alwaysQuery" : false,
252                      "string placeholder" : "select affected",
253                      "Number listWidth" : 300,
254                      "$ xns" : "Roo.bootstrap",
255                      "Boolean multiple" : false,
256                      "String displayField" : "on_table",
257                      "Boolean forceSelection" : true,
258                      "items" : [
259                       {
260                        "listeners" : {
261                         "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}"
262                        },
263                        "Object sortInfo" : "{ field : 'on_table' , direction : 'ASC' }",
264                        "xtype" : "Store",
265                        "boolean remoteSort" : true,
266                        "$ xns" : "Roo.data",
267                        "* prop" : "store",
268                        "items" : [
269                         {
270                          "xtype" : "HttpProxy",
271                          "$ xns" : "Roo.data",
272                          "String method" : "GET",
273                          "* prop" : "proxy",
274                          "$ String url" : "baseURL + '/Roo/Events'"
275                         },
276                         {
277                          "$ 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]",
278                          "xtype" : "JsonReader",
279                          "$ xns" : "Roo.data",
280                          "* prop" : "reader"
281                         }
282                        ]
283                       }
284                      ]
285                     }
286                    ]
287                   },
288                   {
289                    "Number md" : 1,
290                    "xtype" : "Column",
291                    "$ xns" : "Roo.bootstrap",
292                    "items" : [
293                     {
294                      "String cls" : "roo-toolbar-label",
295                      "xtype" : "FieldLabel",
296                      "$ xns" : "Roo.bootstrap",
297                      "String html" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
298                      "String style" : "line-height: 34px;"
299                     }
300                    ]
301                   },
302                   {
303                    "Number md" : 1,
304                    "xtype" : "Column",
305                    "$ xns" : "Roo.bootstrap",
306                    "items" : [
307                     {
308                      "listeners" : {
309                       "render" : "function (_self)\n{\n    _this.dateFrom = _self;\n}",
310                       "change" : "function (_self, newValue, oldValue)\n{\n      _this.table.footer.onClick('first');\n}"
311                      },
312                      "xtype" : "DateField",
313                      "string placeholder" : "Start",
314                      "$ xns" : "Roo.bootstrap"
315                     }
316                    ]
317                   },
318                   {
319                    "Number md" : 1,
320                    "xtype" : "Column",
321                    "$ xns" : "Roo.bootstrap",
322                    "items" : [
323                     {
324                      "listeners" : {
325                       "render" : "function (_self)\n{\n    _this.dateTo = _self;\n}",
326                       "change" : "function (_self, newValue, oldValue)\n{\n    _this.table.footer.onClick('first');\n}"
327                      },
328                      "xtype" : "DateField",
329                      "string placeholder" : "End",
330                      "$ xns" : "Roo.bootstrap"
331                     }
332                    ]
333                   }
334                  ]
335                 },
336                 {
337                  "String cls" : "roo-toolbar",
338                  "xtype" : "Row",
339                  "$ xns" : "Roo.bootstrap",
340                  "items" : [
341                   {
342                    "Number md" : 12,
343                    "xtype" : "Column",
344                    "$ xns" : "Roo.bootstrap",
345                    "items" : [
346                     {
347                      "String cls" : "roo-toolbar-label",
348                      "xtype" : "FieldLabel",
349                      "$ xns" : "Roo.bootstrap",
350                      "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
351                      "String style" : "line-height: 34px; width: 100px;"
352                     }
353                    ]
354                   }
355                  ]
356                 }
357                ]
358               }
359              ]
360             }
361            ]
362           }
363          ]
364         },
365         {
366          "listeners" : {
367           "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}",
368           "render" : "function (_self)\n{\n    \n    _this.table = _self;\n    \n}"
369          },
370          "String cls" : "table-fixed",
371          "boolean striped" : false,
372          "boolean hover" : true,
373          "xtype" : "Table",
374          "boolean responsive" : true,
375          "Boolean rowSelection" : true,
376          "$ xns" : "Roo.bootstrap",
377          "Boolean loadMask" : true,
378          "* prop" : "grid",
379          "items" : [
380           {
381            "listeners" : {
382             "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}",
383             "load" : "function (_self, records, options)\n{\n    //Roo.log(records);\n}"
384            },
385            "boolean hover" : true,
386            "boolean striped" : true,
387            "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
388            "xtype" : "Store",
389            "Boolean rowSelection" : true,
390            "boolean remoteSort" : true,
391            "$ xns" : "Roo.data",
392            "Boolean loadMask" : true,
393            "* prop" : "store",
394            "items" : [
395             {
396              "$ 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]",
397              "xtype" : "JsonReader",
398              "String root" : "data",
399              "$ xns" : "Roo.data",
400              "String id" : "id",
401              "* prop" : "reader",
402              "String totalProperty" : "total"
403             },
404             {
405              "listeners" : {
406               "load" : "function (This, o, arg)\n{\n    //_this.table.footer.onClick('first');\n}"
407              },
408              "xtype" : "HttpProxy",
409              "$ xns" : "Roo.data",
410              "String method" : "GET",
411              "* prop" : "proxy",
412              "$ String url" : "baseURL + '/Roo/Events'"
413             }
414            ]
415           },
416           {
417            "listeners" : {
418             "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}"
419            },
420            "Boolean singleSelect" : true,
421            "xtype" : "RowSelectionModel",
422            "$ xns" : "Roo.bootstrap.Table",
423            "* prop" : "sm"
424           },
425           {
426            "listeners" : {
427             "render" : "function (_self)\n{\n    _this.footer = _self;\n}"
428            },
429            "Number pageSize" : 25,
430            "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
431            "Boolean displayInfo" : false,
432            "xtype" : "PagingToolbar",
433            "String emptyMsg" : "No Companies found",
434            "$ xns" : "Roo.bootstrap",
435            "* prop" : "footer",
436            "string name" : "footer"
437           },
438           {
439            "String header" : "When",
440            "String dataIndex" : "event_when",
441            "Number md" : 2,
442            "xtype" : "ColumnModel",
443            "Number xs" : 2,
444            "$ xns" : "Roo.grid",
445            "$ renderer" : "function(v) { return v ? v.dateFormat('Y/m/d H:i') : ''; }",
446            "Boolean sortable" : true,
447            "* prop" : "cm[]",
448            "Number sm" : 2
449           },
450           {
451            "String header" : "#id",
452            "String dataIndex" : "id",
453            "Number md" : 1,
454            "xtype" : "ColumnModel",
455            "Number xs" : 1,
456            "$ xns" : "Roo.grid",
457            "$ renderer" : "function(v) { return String.format('{0}', v); }",
458            "Boolean sortable" : true,
459            "* prop" : "cm[]",
460            "Number sm" : 1
461           },
462           {
463            "String header" : "Person",
464            "String dataIndex" : "person_id_name",
465            "Number md" : 2,
466            "xtype" : "ColumnModel",
467            "Number xs" : 2,
468            "$ xns" : "Roo.grid",
469            "$ renderer" : "function(v) { return String.format('{0}', v); }",
470            "Boolean sortable" : true,
471            "* prop" : "cm[]",
472            "Number sm" : 2
473           },
474           {
475            "String header" : "Action",
476            "String dataIndex" : "action",
477            "Number md" : 1,
478            "xtype" : "ColumnModel",
479            "Number xs" : 1,
480            "$ xns" : "Roo.grid",
481            "$ renderer" : "function(v) { return String.format('{0}', v); }",
482            "* prop" : "cm[]",
483            "Number sm" : 1
484           },
485           {
486            "String header" : "IP",
487            "String dataIndex" : "ipaddr",
488            "Number md" : 1,
489            "xtype" : "ColumnModel",
490            "Number xs" : 1,
491            "$ xns" : "Roo.grid",
492            "$ renderer" : "function(v) { return String.format('{0}', v); }",
493            "* prop" : "cm[]",
494            "Number sm" : 1
495           },
496           {
497            "String header" : "Affected",
498            "String dataIndex" : "on_table",
499            "Number md" : 1,
500            "xtype" : "ColumnModel",
501            "Number xs" : 1,
502            "$ xns" : "Roo.grid",
503            "$ renderer" : "function(v, x, r) {\n    \n    return v ? String.format('{0}({1})', v,  r.data.on_id)  : '';\n    \n}",
504            "* prop" : "cm[]",
505            "Number sm" : 1
506           },
507           {
508            "String header" : "Remarks",
509            "String dataIndex" : "remarks",
510            "Number md" : 4,
511            "xtype" : "ColumnModel",
512            "Number xs" : 4,
513            "$ xns" : "Roo.grid",
514            "$ renderer" : "function(v) { return String.format('{0}', v); }",
515            "* prop" : "cm[]",
516            "Number sm" : 4
517           }
518          ]
519         }
520        ]
521       }
522      ]
523     }
524    ]
525   }
526  ]
527 }