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