Pman.Tab.XtupleCurrency.bjs
[Pman.Xtuple] / Pman.Tab.XtupleCurrency.bjs
1 {
2     "id": "roo-file-529",
3     "name": "Pman.Tab.XtupleCurrency",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleCurrency.bjs",
7     "items": [
8         {
9             "|xns": "Roo",
10             "xtype": "NestedLayoutPanel",
11             "items": [
12                 {
13                     "|xns": "Roo",
14                     "xtype": "BorderLayout",
15                     "*prop": "layout",
16                     "items": [
17                         {
18                             "*prop": "west",
19                             "width": 200,
20                             "xtype": "LayoutRegion",
21                             "|xns": "Roo"
22                         },
23                         {
24                             "|xns": "Roo",
25                             "xtype": "LayoutRegion",
26                             "*prop": "center"
27                         },
28                         {
29                             "listeners": {
30                                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
31                             },
32                             "background": false,
33                             "fitContainer": true,
34                             "fitToframe": true,
35                             "region": "west",
36                             "tableName": "curr_symbol",
37                             "title": "curr_symbol",
38                             "xtype": "GridPanel",
39                             "|xns": "Roo",
40                             "items": [
41                                 {
42                                     "*prop": "grid",
43                                     "xtype": "Grid",
44                                     "autoExpandColumn": "curr_name",
45                                     "loadMask": true,
46                                     "listeners": {
47                                         "|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}",
48                                         "|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"
49                                     },
50                                     "|xns": "Roo.grid",
51                                     "items": [
52                                         {
53                                             "*prop": "dataSource",
54                                             "xtype": "Store",
55                                             "remoteSort": true,
56                                             "|sortInfo": "{ field : 'curr_name', direction: 'ASC' }",
57                                             "|xns": "Roo.data",
58                                             "items": [
59                                                 {
60                                                     "*prop": "proxy",
61                                                     "xtype": "HttpProxy",
62                                                     "method": "GET",
63                                                     "|url": "baseURL + '/Roo/curr_symbol.php'",
64                                                     "|xns": "Roo.data"
65                                                 },
66                                                 {
67                                                     "|xns": "Roo.data",
68                                                     "xtype": "JsonReader",
69                                                     "totalProperty": "total",
70                                                     "root": "data",
71                                                     "*prop": "reader",
72                                                     "id": "id",
73                                                     "|fields": "[\n    {\n        'name': 'curr_id',\n        'type': 'int'\n    },\n    {\n        'name': 'curr_base',\n        'type': 'int'\n    },\n    {\n        'name': 'curr_name',\n        'type': 'string'\n    },\n    {\n        'name': 'curr_symbol',\n        'type': 'string'\n    },\n    {\n        'name': 'curr_abbr',\n        'type': 'string'\n    }\n]"
74                                                 }
75                                             ]
76                                         },
77                                         {
78                                             "*prop": "footer",
79                                             "xtype": "PagingToolbar",
80                                             "pageSize": 25,
81                                             "displayInfo": true,
82                                             "displayMsg": "Displaying curr_symbol{0} - {1} of {2}",
83                                             "emptyMsg": "No curr_symbol found",
84                                             "|xns": "Roo"
85                                         },
86                                         {
87                                             "*prop": "toolbar",
88                                             "xtype": "Toolbar",
89                                             "|xns": "Roo",
90                                             "items": [
91                                                 {
92                                                     "|xns": "Roo.Toolbar",
93                                                     "xtype": "Fill"
94                                                 },
95                                                 {
96                                                     "text": "Add",
97                                                     "xtype": "Button",
98                                                     "cls": "x-btn-text-icon",
99                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
100                                                     "listeners": {
101                                                         "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
102                                                     },
103                                                     "|xns": "Roo.Toolbar"
104                                                 }
105                                             ]
106                                         },
107                                         {
108                                             "xtype": "ColumnModel",
109                                             "header": "Curr base",
110                                             "width": 75,
111                                             "dataIndex": "curr_base",
112                                             "|renderer": "function(v) { return String.format('{0}', v); }",
113                                             "|xns": "Roo.grid",
114                                             "*prop": "colModel[]"
115                                         },
116                                         {
117                                             "xtype": "ColumnModel",
118                                             "header": "Curr name",
119                                             "width": 200,
120                                             "dataIndex": "curr_name",
121                                             "|renderer": "function(v) { return String.format('{0}', v); }",
122                                             "|xns": "Roo.grid",
123                                             "*prop": "colModel[]"
124                                         },
125                                         {
126                                             "xtype": "ColumnModel",
127                                             "header": "Curr symbol",
128                                             "width": 200,
129                                             "dataIndex": "curr_symbol",
130                                             "|renderer": "function(v) { return String.format('{0}', v); }",
131                                             "|xns": "Roo.grid",
132                                             "*prop": "colModel[]"
133                                         },
134                                         {
135                                             "xtype": "ColumnModel",
136                                             "header": "Curr abbr",
137                                             "width": 200,
138                                             "dataIndex": "curr_abbr",
139                                             "|renderer": "function(v) { return String.format('{0}', v); }",
140                                             "|xns": "Roo.grid",
141                                             "*prop": "colModel[]"
142                                         }
143                                     ]
144                                 }
145                             ]
146                         },
147                         {
148                             "listeners": {
149                                 "|activate": "function() {\n    _this.rpanel = this;\n    if (_this.rgrid) {\n        _this.rgrid.footer.onClick('first');\n    }\n}"
150                             },
151                             "background": false,
152                             "fitContainer": true,
153                             "fitToframe": true,
154                             "region": "center",
155                             "tableName": "curr_rate",
156                             "title": "curr_rate",
157                             "xtype": "GridPanel",
158                             "|xns": "Roo",
159                             "items": [
160                                 {
161                                     "listeners": {
162                                         "|render": "function() \n{\n    _this.rgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.rpanel.active) {\n       this.footer.onClick('first');\n    }\n}",
163                                         "|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"
164                                     },
165                                     "*prop": "grid",
166                                     "autoExpandColumn": "",
167                                     "loadMask": true,
168                                     "xtype": "Grid",
169                                     "|xns": "Roo.grid",
170                                     "items": [
171                                         {
172                                             "*prop": "dataSource",
173                                             "xtype": "Store",
174                                             "remoteSort": true,
175                                             "|sortInfo": "{ field : '', direction: 'ASC' }",
176                                             "|xns": "Roo.data",
177                                             "items": [
178                                                 {
179                                                     "*prop": "proxy",
180                                                     "xtype": "HttpProxy",
181                                                     "method": "GET",
182                                                     "|url": "baseURL + '/Roo/curr_rate.php'",
183                                                     "|xns": "Roo.data"
184                                                 },
185                                                 {
186                                                     "|xns": "Roo.data",
187                                                     "xtype": "JsonReader",
188                                                     "totalProperty": "total",
189                                                     "root": "data",
190                                                     "*prop": "reader",
191                                                     "id": "id",
192                                                     "|fields": "[\n    {\n        'name': 'curr_rate_id',\n        'type': 'int'\n    },\n    {\n        'name': 'curr_id',\n        'type': 'int'\n    },\n    {\n        'name': 'curr_id',\n        'type': 'int'\n    },\n    {\n        'name': 'curr_rate',\n        'type': 'float'\n    },\n    {\n        'name': 'curr_effective',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'curr_expires',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    }\n]"
193                                                 }
194                                             ]
195                                         },
196                                         {
197                                             "*prop": "footer",
198                                             "xtype": "PagingToolbar",
199                                             "pageSize": 25,
200                                             "displayInfo": true,
201                                             "displayMsg": "Displaying curr_rate{0} - {1} of {2}",
202                                             "emptyMsg": "No curr_rate found",
203                                             "|xns": "Roo"
204                                         },
205                                         {
206                                             "*prop": "toolbar",
207                                             "xtype": "Toolbar",
208                                             "|xns": "Roo",
209                                             "items": [
210                                                 {
211                                                     "|xns": "Roo.Toolbar",
212                                                     "xtype": "Fill"
213                                                 },
214                                                 {
215                                                     "text": "Add",
216                                                     "xtype": "Button",
217                                                     "cls": "x-btn-text-icon",
218                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
219                                                     "listeners": {
220                                                         "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
221                                                     },
222                                                     "|xns": "Roo.Toolbar"
223                                                 }
224                                             ]
225                                         },
226                                         {
227                                             "xtype": "ColumnModel",
228                                             "header": "Curr rate",
229                                             "width": 75,
230                                             "dataIndex": "curr_rate_id",
231                                             "|renderer": "function(v) { return String.format('{0}', v); }",
232                                             "|xns": "Roo.grid",
233                                             "*prop": "colModel[]"
234                                         },
235                                         {
236                                             "xtype": "ColumnModel",
237                                             "header": "Curr",
238                                             "width": 75,
239                                             "dataIndex": "curr_id",
240                                             "|renderer": "function(v) { return String.format('{0}', v); }",
241                                             "|xns": "Roo.grid",
242                                             "*prop": "colModel[]"
243                                         },
244                                         {
245                                             "xtype": "ColumnModel",
246                                             "header": "Curr",
247                                             "width": 75,
248                                             "dataIndex": "curr_id",
249                                             "|renderer": "function(v) { return String.format('{0}', v); }",
250                                             "|xns": "Roo.grid",
251                                             "*prop": "colModel[]"
252                                         },
253                                         {
254                                             "xtype": "ColumnModel",
255                                             "header": "Curr rate",
256                                             "width": 75,
257                                             "dataIndex": "curr_rate",
258                                             "|renderer": "function(v) { return String.format('{0}', v); }",
259                                             "|xns": "Roo.grid",
260                                             "*prop": "colModel[]"
261                                         },
262                                         {
263                                             "xtype": "ColumnModel",
264                                             "header": "Curr effective",
265                                             "width": 75,
266                                             "dataIndex": "curr_effective",
267                                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
268                                             "|xns": "Roo.grid",
269                                             "*prop": "colModel[]"
270                                         },
271                                         {
272                                             "xtype": "ColumnModel",
273                                             "header": "Curr expires",
274                                             "width": 75,
275                                             "dataIndex": "curr_expires",
276                                             "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
277                                             "|xns": "Roo.grid",
278                                             "*prop": "colModel[]"
279                                         }
280                                     ]
281                                 }
282                             ]
283                         }
284                     ]
285                 }
286             ]
287         }
288     ],
289     "permname": "",
290     "modOrder": "001"
291 }