3 "name": "Pman.Tab.XtupleCurrency",
4 "parent": "Pman.Tab.XtupleAccountsTab",
5 "title": "Pman.Tab.XtupleCurrency",
6 "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleCurrency.bjs",
11 "title": "Currency / Rates",
12 "xtype": "NestedLayoutPanel",
17 "xtype": "BorderLayout",
24 "xtype": "LayoutRegion",
29 "xtype": "LayoutRegion",
34 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
40 "tableName": "curr_symbol",
41 "title": "curr_symbol",
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"
51 "autoExpandColumn": "curr_name",
58 "afterselectionchange": "function (_self)\n{\n _this.rgrid.footer.onClick('first');\n}"
62 "xtype": "RowSelectionModel",
66 "*prop": "dataSource",
69 "|sortInfo": "{ field : 'curr_name', direction: 'ASC' }",
76 "|url": "baseURL + '/Roo/curr_symbol.php'",
83 "totalProperty": "total",
84 "xtype": "JsonReader",
85 "|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]",
93 "displayMsg": "{0} - {1} of {2}",
94 "emptyMsg": "Nothing found",
96 "xtype": "PagingToolbar",
106 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
108 "cls": "x-btn-text-icon",
111 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
112 "|xns": "Roo.Toolbar"
115 "|xns": "Roo.Toolbar",
120 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
122 "cls": "x-btn-text-icon",
123 "text": "Get this months rates",
125 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
126 "|xns": "Roo.Toolbar"
131 "*prop": "colModel[]",
132 "dataIndex": "curr_name",
135 "xtype": "ColumnModel",
136 "|renderer": "function(v,x,r) { \n\n return String.format(r.data.curr_base*1 ? '<span style=\"color:red\">{0}</span>' : '{0}', v); \n \n}",
140 "*prop": "colModel[]",
141 "dataIndex": "curr_symbol",
144 "xtype": "ColumnModel",
145 "|renderer": "function(v,x,r) { \n\n return String.format(r.data.curr_base*1 ? '<span style=\"color:red\">{0}</span>' : '{0}', v); \n \n}",
149 "*prop": "colModel[]",
150 "dataIndex": "curr_abbr",
153 "xtype": "ColumnModel",
154 "|renderer": "function(v,x,r) { \n\n return String.format(r.data.curr_base*1 ? '<span style=\"color:red\">{0}</span>' : '{0}', v); \n \n}",
163 "|activate": "function() {\n _this.rpanel = this;\n if (_this.rgrid) {\n _this.rgrid.footer.onClick('first');\n }\n}"
166 "fitContainer": true,
169 "tableName": "curr_rate",
170 "title": "curr_rate",
171 "xtype": "GridPanel",
176 "|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}",
177 "|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"
180 "autoExpandColumn": "curr_rate",
187 "beforeload": "function (_self, options)\n{\n var s = _this.grid.selModel.getSelected();\n if (!s) { \n this.removeAll();\n return false;\n }\n options.params.curr_id = s.data.curr_id;\n options.params._with_base_symbol = 1;\n}"
189 "*prop": "dataSource",
192 "|sortInfo": "{ field : 'curr_effective', direction: 'DESC' }",
197 "xtype": "HttpProxy",
199 "|url": "baseURL + '/Roo/curr_rate.php'",
204 "xtype": "JsonReader",
205 "totalProperty": "total",
209 "|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]"
215 "xtype": "PagingToolbar",
218 "displayMsg": "Displaying curr_rate{0} - {1} of {2}",
219 "emptyMsg": "No curr_rate found",
223 "*prop": "colModel[]",
224 "dataIndex": "curr_effective",
227 "xtype": "ColumnModel",
228 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
232 "*prop": "colModel[]",
233 "dataIndex": "curr_expires",
236 "xtype": "ColumnModel",
237 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
241 "*prop": "colModel[]",
243 "dataIndex": "curr_rate",
246 "xtype": "ColumnModel",
247 "|renderer": "function(v) { return String.format('{0}', v); }",
251 "*prop": "colModel[]",
253 "dataIndex": "curr_rate1",
256 "xtype": "ColumnModel",
257 "|renderer": "function(v,x,r) {\n\n return String.format('{1}1 = {2}{0}', \n Roo.util.Format.number(r.data.curr_rate,2),\n r.data.base_curr_symbol,\n r.data.curr_id_curr_symbol\n ); \n \n}",
261 "*prop": "colModel[]",
263 "dataIndex": "curr_rate2",
266 "xtype": "ColumnModel",
267 "|renderer": "function(v,x,r) { \n return String.format('{2}1 = {1}{0}', \n Roo.util.Format.number(1.0/r.data.curr_rate,2),\n r.data.base_curr_symbol,\n r.data.curr_id_curr_symbol\n ); \n}",