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": 800,
10             "width": 500,
11             "xtype": "LayoutDialog",
12             "|xns": "Roo",
13             "items": [
14                 {
15                     "|xns": "Roo",
16                     "xtype": "Button",
17                     "*prop": "buttons[]"
18                 },
19                 {
20                     "|xns": "Roo",
21                     "xtype": "LayoutRegion",
22                     "*prop": "center"
23                 },
24                 {
25                     "listeners": {
26                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
27                     },
28                     "background": false,
29                     "fitContainer": true,
30                     "fitToframe": true,
31                     "region": "center",
32                     "tableName": "Events",
33                     "title": "Events",
34                     "xtype": "GridPanel",
35                     "|xns": "Roo",
36                     "items": [
37                         {
38                             "listeners": {
39                                 "|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}",
40                                 "|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"
41                             },
42                             "*prop": "grid",
43                             "autoExpandColumn": "remarks",
44                             "loadMask": true,
45                             "xtype": "Grid",
46                             "|xns": "Roo.grid",
47                             "items": [
48                                 {
49                                     "listeners": {
50                                         "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}"
51                                     },
52                                     "*prop": "dataSource",
53                                     "remoteSort": true,
54                                     "xtype": "Store",
55                                     "|sortInfo": "{ field : 'person_name', direction: 'ASC' }",
56                                     "|xns": "Roo.data",
57                                     "items": [
58                                         {
59                                             "*prop": "proxy",
60                                             "xtype": "HttpProxy",
61                                             "method": "GET",
62                                             "|url": "baseURL + '/Roo/Events.php'",
63                                             "|xns": "Roo.data"
64                                         },
65                                         {
66                                             "|xns": "Roo.data",
67                                             "xtype": "JsonReader",
68                                             "totalProperty": "total",
69                                             "root": "data",
70                                             "*prop": "reader",
71                                             "id": "id",
72                                             "|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]"
73                                         }
74                                     ]
75                                 },
76                                 {
77                                     "*prop": "footer",
78                                     "xtype": "PagingToolbar",
79                                     "pageSize": 25,
80                                     "displayInfo": true,
81                                     "displayMsg": "Displaying Events{0} - {1} of {2}",
82                                     "emptyMsg": "No Events found",
83                                     "|xns": "Roo"
84                                 },
85                                 {
86                                     "xtype": "ColumnModel",
87                                     "header": "Event when",
88                                     "width": 75,
89                                     "dataIndex": "event_when",
90                                     "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
91                                     "|xns": "Roo.grid",
92                                     "*prop": "colModel[]"
93                                 },
94                                 {
95                                     "*prop": "colModel[]",
96                                     "dataIndex": "person_id_name",
97                                     "header": "Person name",
98                                     "width": 100,
99                                     "xtype": "ColumnModel",
100                                     "|renderer": "function(v) { return String.format('{0}', v); }",
101                                     "|xns": "Roo.grid"
102                                 },
103                                 {
104                                     "*prop": "colModel[]",
105                                     "dataIndex": "action",
106                                     "header": "Action",
107                                     "width": 80,
108                                     "xtype": "ColumnModel",
109                                     "|renderer": "function(v) { return String.format('{0}', v); }",
110                                     "|xns": "Roo.grid"
111                                 },
112                                 {
113                                     "*prop": "colModel[]",
114                                     "dataIndex": "ipaddr",
115                                     "header": "Ipaddr",
116                                     "width": 80,
117                                     "xtype": "ColumnModel",
118                                     "|renderer": "function(v) { return String.format('{0}', v); }",
119                                     "|xns": "Roo.grid"
120                                 },
121                                 {
122                                     "xtype": "ColumnModel",
123                                     "header": "Remarks",
124                                     "width": 200,
125                                     "dataIndex": "remarks",
126                                     "|renderer": "function(v) { return String.format('{0}', v); }",
127                                     "|xns": "Roo.grid",
128                                     "*prop": "colModel[]"
129                                 }
130                             ]
131                         }
132                     ]
133                 }
134             ]
135         }
136     ],
137     "permname": "",
138     "modOrder": "001"
139 }