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                             "*prop": "dataSource",
34                             "remoteSort": true,
35                             "xtype": "Store",
36                             "|sortInfo": "{ field : 'person_id_name', direction: 'ASC' }",
37                             "|xns": "Roo.data",
38                             "items": [
39                                 {
40                                     "*prop": "proxy",
41                                     "xtype": "HttpProxy",
42                                     "method": "GET",
43                                     "|url": "baseURL + '/Roo/core_notify_recur.php'",
44                                     "|xns": "Roo.data"
45                                 },
46                                 {
47                                     "|xns": "Roo.data",
48                                     "xtype": "JsonReader",
49                                     "totalProperty": "total",
50                                     "root": "data",
51                                     "*prop": "reader",
52                                     "id": "id",
53                                     "|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]"
54                                 }
55                             ]
56                         },
57                         {
58                             "*prop": "footer",
59                             "xtype": "PagingToolbar",
60                             "pageSize": 25,
61                             "displayInfo": true,
62                             "displayMsg": "Displaying core_notify_recur{0} - {1} of {2}",
63                             "emptyMsg": "No core_notify_recur found",
64                             "|xns": "Roo"
65                         },
66                         {
67                             "*prop": "colModel[]",
68                             "dataIndex": "person_id_name",
69                             "header": "Person",
70                             "width": 75,
71                             "xtype": "ColumnModel",
72                             "|renderer": "function(v,x,r) { \n    return String.format('{0} <a href=\"mailto:{1}\">{1}</a>', v,r.data.person_id_email); \n}",
73                             "|xns": "Roo.grid"
74                         },
75                         {
76                             "xtype": "ColumnModel",
77                             "header": "Dtstart",
78                             "width": 75,
79                             "dataIndex": "dtstart",
80                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
81                             "|xns": "Roo.grid",
82                             "*prop": "colModel[]"
83                         },
84                         {
85                             "xtype": "ColumnModel",
86                             "header": "Dtend",
87                             "width": 75,
88                             "dataIndex": "dtend",
89                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
90                             "|xns": "Roo.grid",
91                             "*prop": "colModel[]"
92                         },
93                         {
94                             "*prop": "colModel[]",
95                             "dataIndex": "last_applied_dt",
96                             "header": "Last Notification created",
97                             "width": 75,
98                             "xtype": "ColumnModel",
99                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
100                             "|xns": "Roo.grid"
101                         },
102                         {
103                             "*prop": "colModel[]",
104                             "dataIndex": "tz",
105                             "header": "Tz",
106                             "width": 50,
107                             "xtype": "ColumnModel",
108                             "|renderer": "function(v) { return String.format('{0}', v); }",
109                             "|xns": "Roo.grid"
110                         },
111                         {
112                             "*prop": "colModel[]",
113                             "dataIndex": "freq",
114                             "header": "Freq",
115                             "width": 100,
116                             "xtype": "ColumnModel",
117                             "|renderer": "function(v) { return String.format('{0}', v); }",
118                             "|xns": "Roo.grid"
119                         },
120                         {
121                             "*prop": "colModel[]",
122                             "dataIndex": "freq_day",
123                             "header": "Freq day",
124                             "width": 100,
125                             "xtype": "ColumnModel",
126                             "|renderer": "function(v) { return String.format('{0}', v); }",
127                             "|xns": "Roo.grid"
128                         },
129                         {
130                             "xtype": "ColumnModel",
131                             "header": "Freq hour",
132                             "width": 200,
133                             "dataIndex": "freq_hour",
134                             "|renderer": "function(v) { return String.format('{0}', v); }",
135                             "|xns": "Roo.grid",
136                             "*prop": "colModel[]"
137                         },
138                         {
139                             "*prop": "colModel[]",
140                             "dataIndex": "onid",
141                             "header": "Affects",
142                             "width": 75,
143                             "xtype": "ColumnModel",
144                             "|renderer": "function(v,x,r) { return String.format('{1}:{0}', v,r.data.ontable); }",
145                             "|xns": "Roo.grid"
146                         },
147                         {
148                             "*prop": "colModel[]",
149                             "dataIndex": "method",
150                             "header": "Method",
151                             "width": 75,
152                             "xtype": "ColumnModel",
153                             "|renderer": "function(v) { return String.format('{0}', v); }",
154                             "|xns": "Roo.grid"
155                         }
156                     ]
157                 }
158             ]
159         }
160     ],
161     "permname": "",
162     "modOrder": "800"
163 }