3 "name": "Pman.Tab.XtupleCurrency",
4 "parent": "Pman.Tab.XtupleAccountsTab",
5 "title": "Pman.Tab.XtupleCurrency",
6 "path": "/home/alan/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",
48 "autoExpandColumn": "curr_name",
51 "|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}",
52 "|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"
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'",
81 "xtype": "JsonReader",
82 "totalProperty": "total",
86 "|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]"
92 "xtype": "PagingToolbar",
95 "displayMsg": "Displaying curr_symbol{0} - {1} of {2}",
96 "emptyMsg": "No curr_symbol found",
105 "|xns": "Roo.Toolbar",
111 "cls": "x-btn-text-icon",
112 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
114 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
116 "|xns": "Roo.Toolbar"
121 "*prop": "colModel[]",
122 "dataIndex": "curr_name",
125 "xtype": "ColumnModel",
126 "|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}",
130 "*prop": "colModel[]",
131 "dataIndex": "curr_symbol",
134 "xtype": "ColumnModel",
135 "|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}",
139 "*prop": "colModel[]",
140 "dataIndex": "curr_abbr",
143 "xtype": "ColumnModel",
144 "|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}",
153 "|activate": "function() {\n _this.rpanel = this;\n if (_this.rgrid) {\n _this.rgrid.footer.onClick('first');\n }\n}"
156 "fitContainer": true,
159 "tableName": "curr_rate",
160 "title": "curr_rate",
161 "xtype": "GridPanel",
166 "|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}",
167 "|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"
170 "autoExpandColumn": "curr_rate",
177 "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}"
179 "*prop": "dataSource",
182 "|sortInfo": "{ field : 'curr_effective', direction: 'DESC' }",
187 "xtype": "HttpProxy",
189 "|url": "baseURL + '/Roo/curr_rate.php'",
194 "xtype": "JsonReader",
195 "totalProperty": "total",
199 "|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]"
205 "xtype": "PagingToolbar",
208 "displayMsg": "Displaying curr_rate{0} - {1} of {2}",
209 "emptyMsg": "No curr_rate found",
218 "|xns": "Roo.Toolbar",
224 "cls": "x-btn-text-icon",
225 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
227 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
229 "|xns": "Roo.Toolbar"
234 "*prop": "colModel[]",
235 "dataIndex": "curr_effective",
238 "xtype": "ColumnModel",
239 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
243 "*prop": "colModel[]",
244 "dataIndex": "curr_expires",
247 "xtype": "ColumnModel",
248 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
252 "*prop": "colModel[]",
254 "dataIndex": "curr_rate",
257 "xtype": "ColumnModel",
258 "|renderer": "function(v) { return String.format('{0}', v); }",
262 "*prop": "colModel[]",
264 "dataIndex": "curr_rate",
267 "xtype": "ColumnModel",
268 "|renderer": "function(v,x,r) {\n\n return String.format('{1}1 = {2}{0}', \n Roo.util.Format.number(v,2),\n r.data.base_curr_symbol,\n r.data.curr_id_curr_symbol\n ); \n \n}",
272 "*prop": "colModel[]",
274 "dataIndex": "curr_rate",
277 "xtype": "ColumnModel",
278 "|renderer": "function(v,x,r) { \n return String.format('{2}1 = {1}{0}', \n Roo.util.Format.number(1.0/v,2),\n r.data.base_curr_symbol,\n r.data.curr_id_curr_symbol\n ); \n}",