Pman.Tab.AdminNotifyRecur.bjs
[Pman.Admin] / Pman.Tab.AdminNotifyRecur.bjs
1 {
2     "id": "roo-file-256",
3     "name": "Pman.Tab.AdminNotifyRecur",
4     "parent": "Pman.Tab.AdminWatchNotify",
5     "title": "Pman.Tab.AdminNotifyRecur",
6     "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotifyRecur.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
11             },
12             "background": true,
13             "fitContainer": true,
14             "fitToframe": true,
15             "region": "center",
16             "tableName": "core_notify_recur",
17             "title": "Recurrent Notifications",
18             "xtype": "GridPanel",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "listeners": {
23                         "|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}",
24                         "|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"
25                     },
26                     "*prop": "grid",
27                     "autoExpandColumn": "person_id_name",
28                     "loadMask": true,
29                     "xtype": "Grid",
30                     "|xns": "Roo.grid",
31                     "items": [
32                         {
33                             "|xns": "Roo",
34                             "xtype": "Toolbar",
35                             "*prop": "toolbar"
36                         },
37                         {
38                             "*prop": "dataSource",
39                             "remoteSort": true,
40                             "xtype": "Store",
41                             "|sortInfo": "{ field : 'person_id_name', direction: 'ASC' }",
42                             "|xns": "Roo.data",
43                             "items": [
44                                 {
45                                     "*prop": "proxy",
46                                     "xtype": "HttpProxy",
47                                     "method": "GET",
48                                     "|url": "baseURL + '/Roo/core_notify_recur.php'",
49                                     "|xns": "Roo.data"
50                                 },
51                                 {
52                                     "|xns": "Roo.data",
53                                     "xtype": "JsonReader",
54                                     "totalProperty": "total",
55                                     "root": "data",
56                                     "*prop": "reader",
57                                     "id": "id",
58                                     "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'dtstart',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'dtend',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'max_applied_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'updated_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'last_applied_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'tz',\n        'type': 'string'\n    },\n    {\n        'name': 'freq',\n        'type': 'string'\n    },\n    {\n        'name': 'freq_day',\n        'type': 'string'\n    },\n    {\n        'name': 'freq_hour',\n        'type': 'string'\n    },\n    {\n        'name': 'onid',\n        'type': 'int'\n    },\n    {\n        'name': 'ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'last_event_id',\n        'type': 'int'\n    },\n    {\n        'name': 'method',\n        'type': 'string'\n    }\n]"
59                                 }
60                             ]
61                         },
62                         {
63                             "*prop": "footer",
64                             "xtype": "PagingToolbar",
65                             "pageSize": 25,
66                             "displayInfo": true,
67                             "displayMsg": "Displaying core_notify_recur{0} - {1} of {2}",
68                             "emptyMsg": "No core_notify_recur found",
69                             "|xns": "Roo"
70                         },
71                         {
72                             "*prop": "colModel[]",
73                             "dataIndex": "person_id_name",
74                             "header": "Person",
75                             "width": 75,
76                             "xtype": "ColumnModel",
77                             "|renderer": "function(v,x,r) { \n    return String.format('{0} <a href=\"mailto:{1}\">{1}</a>', v,r.data.person_id_email); \n}",
78                             "|xns": "Roo.grid"
79                         },
80                         {
81                             "xtype": "ColumnModel",
82                             "header": "Dtstart",
83                             "width": 75,
84                             "dataIndex": "dtstart",
85                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
86                             "|xns": "Roo.grid",
87                             "*prop": "colModel[]"
88                         },
89                         {
90                             "xtype": "ColumnModel",
91                             "header": "Dtend",
92                             "width": 75,
93                             "dataIndex": "dtend",
94                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
95                             "|xns": "Roo.grid",
96                             "*prop": "colModel[]"
97                         },
98                         {
99                             "*prop": "colModel[]",
100                             "dataIndex": "last_applied_dt",
101                             "header": "Last Notification created",
102                             "width": 75,
103                             "xtype": "ColumnModel",
104                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
105                             "|xns": "Roo.grid"
106                         },
107                         {
108                             "*prop": "colModel[]",
109                             "dataIndex": "tz",
110                             "header": "Tz",
111                             "width": 50,
112                             "xtype": "ColumnModel",
113                             "|renderer": "function(v) { return String.format('{0}', v); }",
114                             "|xns": "Roo.grid"
115                         },
116                         {
117                             "*prop": "colModel[]",
118                             "dataIndex": "freq",
119                             "header": "Freq",
120                             "width": 100,
121                             "xtype": "ColumnModel",
122                             "|renderer": "function(v) { return String.format('{0}', v); }",
123                             "|xns": "Roo.grid"
124                         },
125                         {
126                             "*prop": "colModel[]",
127                             "dataIndex": "freq_day",
128                             "header": "Freq day",
129                             "width": 100,
130                             "xtype": "ColumnModel",
131                             "|renderer": "function(v) { return String.format('{0}', v); }",
132                             "|xns": "Roo.grid"
133                         },
134                         {
135                             "xtype": "ColumnModel",
136                             "header": "Freq hour",
137                             "width": 200,
138                             "dataIndex": "freq_hour",
139                             "|renderer": "function(v) { return String.format('{0}', v); }",
140                             "|xns": "Roo.grid",
141                             "*prop": "colModel[]"
142                         },
143                         {
144                             "*prop": "colModel[]",
145                             "dataIndex": "onid",
146                             "header": "Affects",
147                             "width": 75,
148                             "xtype": "ColumnModel",
149                             "|renderer": "function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }",
150                             "|xns": "Roo.grid"
151                         },
152                         {
153                             "*prop": "colModel[]",
154                             "dataIndex": "method",
155                             "header": "Method",
156                             "width": 75,
157                             "xtype": "ColumnModel",
158                             "|renderer": "function(v) { return String.format('{0}', v); }",
159                             "|xns": "Roo.grid"
160                         }
161                     ]
162                 }
163             ]
164         }
165     ],
166     "permname": "",
167     "modOrder": "800"
168 }