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