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