Pman.Dialog.AdminEventLog.bjs
[Pman.Admin] / Pman.Dialog.AdminEventLog.bjs
1 {
2     "id": "roo-file-545",
3     "name": "Pman.Dialog.AdminEventLog",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminEventLog.bjs",
7     "items": [
8         {
9             "height": 500,
10             "title": "Event history",
11             "width": 800,
12             "xtype": "LayoutDialog",
13             "|xns": "Roo",
14             "items": [
15                 {
16                     "|xns": "Roo",
17                     "xtype": "LayoutRegion",
18                     "*prop": "center"
19                 },
20                 {
21                     "listeners": {
22                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
23                     },
24                     "background": false,
25                     "fitContainer": true,
26                     "fitToframe": true,
27                     "region": "center",
28                     "tableName": "Events",
29                     "title": "Events",
30                     "xtype": "GridPanel",
31                     "|xns": "Roo",
32                     "items": [
33                         {
34                             "listeners": {
35                                 "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
36                                 "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
37                             },
38                             "*prop": "grid",
39                             "autoExpandColumn": "remarks",
40                             "loadMask": true,
41                             "xtype": "Grid",
42                             "|xns": "Roo.grid",
43                             "items": [
44                                 {
45                                     "listeners": {
46                                         "beforeload": "function (_self,o )\n{\n    if (!_this.data || !_this.data.on_id) {\n        return false;\n    }\n    o.params.on_table = _this.data.on_table;\n    o.params.on_id = _this.data.on_id;\n}"
47                                     },
48                                     "*prop": "dataSource",
49                                     "remoteSort": true,
50                                     "xtype": "Store",
51                                     "|sortInfo": "{ field : 'person_name', direction: 'ASC' }",
52                                     "|xns": "Roo.data",
53                                     "items": [
54                                         {
55                                             "*prop": "proxy",
56                                             "xtype": "HttpProxy",
57                                             "method": "GET",
58                                             "|url": "baseURL + '/Roo/Events.php'",
59                                             "|xns": "Roo.data"
60                                         },
61                                         {
62                                             "|xns": "Roo.data",
63                                             "xtype": "JsonReader",
64                                             "totalProperty": "total",
65                                             "root": "data",
66                                             "*prop": "reader",
67                                             "id": "id",
68                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_name',\n        'type': 'string'\n    },\n    {\n        'name': 'event_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'action',\n        'type': 'string'\n    },\n    {\n        'name': 'ipaddr',\n        'type': 'string'\n    },\n    {\n        'name': 'on_id',\n        'type': 'int'\n    },\n    {\n        'name': 'on_table',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_table',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'person_id_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname',\n        'type': 'string'\n    }\n]"
69                                         }
70                                     ]
71                                 },
72                                 {
73                                     "*prop": "footer",
74                                     "xtype": "PagingToolbar",
75                                     "pageSize": 25,
76                                     "displayInfo": true,
77                                     "displayMsg": "Displaying Events{0} - {1} of {2}",
78                                     "emptyMsg": "No Events found",
79                                     "|xns": "Roo"
80                                 },
81                                 {
82                                     "xtype": "ColumnModel",
83                                     "header": "Event when",
84                                     "width": 75,
85                                     "dataIndex": "event_when",
86                                     "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
87                                     "|xns": "Roo.grid",
88                                     "*prop": "colModel[]"
89                                 },
90                                 {
91                                     "*prop": "colModel[]",
92                                     "dataIndex": "person_id_name",
93                                     "header": "Person name",
94                                     "width": 100,
95                                     "xtype": "ColumnModel",
96                                     "|renderer": "function(v) { return String.format('{0}', v); }",
97                                     "|xns": "Roo.grid"
98                                 },
99                                 {
100                                     "*prop": "colModel[]",
101                                     "dataIndex": "action",
102                                     "header": "Action",
103                                     "width": 80,
104                                     "xtype": "ColumnModel",
105                                     "|renderer": "function(v) { return String.format('{0}', v); }",
106                                     "|xns": "Roo.grid"
107                                 },
108                                 {
109                                     "*prop": "colModel[]",
110                                     "dataIndex": "ipaddr",
111                                     "header": "Ipaddr",
112                                     "width": 80,
113                                     "xtype": "ColumnModel",
114                                     "|renderer": "function(v) { return String.format('{0}', v); }",
115                                     "|xns": "Roo.grid"
116                                 },
117                                 {
118                                     "xtype": "ColumnModel",
119                                     "header": "Remarks",
120                                     "width": 200,
121                                     "dataIndex": "remarks",
122                                     "|renderer": "function(v) { return String.format('{0}', v); }",
123                                     "|xns": "Roo.grid",
124                                     "*prop": "colModel[]"
125                                 }
126                             ]
127                         }
128                     ]
129                 },
130                 {
131                     "listeners": {
132                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
133                     },
134                     "*prop": "buttons[]",
135                     "text": "Close",
136                     "xtype": "Button",
137                     "|xns": "Roo"
138                 }
139             ]
140         }
141     ],
142     "permname": "",
143     "modOrder": "001"
144 }