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",
10 "title": "Currency / Rates",
11 "xtype": "NestedLayoutPanel",
16 "xtype": "BorderLayout",
23 "xtype": "LayoutRegion",
28 "xtype": "LayoutRegion",
33 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
39 "tableName": "curr_symbol",
40 "title": "curr_symbol",
47 "autoExpandColumn": "curr_name",
50 "|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}",
51 "|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"
57 "afterselectionchange": "function (_self)\n{\n _this.rgrid.footer.onClick('first');\n}"
61 "xtype": "RowSelectionModel",
65 "*prop": "dataSource",
68 "|sortInfo": "{ field : 'curr_name', direction: 'ASC' }",
75 "|url": "baseURL + '/Roo/curr_symbol.php'",
80 "xtype": "JsonReader",
81 "totalProperty": "total",
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]"
91 "xtype": "PagingToolbar",
94 "displayMsg": "Displaying curr_symbol{0} - {1} of {2}",
95 "emptyMsg": "No curr_symbol found",
104 "|xns": "Roo.Toolbar",
110 "cls": "x-btn-text-icon",
111 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
113 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
115 "|xns": "Roo.Toolbar"
120 "*prop": "colModel[]",
121 "dataIndex": "curr_name",
124 "xtype": "ColumnModel",
125 "|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}",
129 "*prop": "colModel[]",
130 "dataIndex": "curr_symbol",
133 "xtype": "ColumnModel",
134 "|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}",
138 "*prop": "colModel[]",
139 "dataIndex": "curr_abbr",
142 "xtype": "ColumnModel",
143 "|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}",
152 "|activate": "function() {\n _this.rpanel = this;\n if (_this.rgrid) {\n _this.rgrid.footer.onClick('first');\n }\n}"
155 "fitContainer": true,
158 "tableName": "curr_rate",
159 "title": "curr_rate",
160 "xtype": "GridPanel",
165 "|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}",
166 "|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"
169 "autoExpandColumn": "curr_rate",
176 "beforeload": "function (_self, options)\n{\n var s = _this.grid.selModel.getSelected();\n if (!s) { \n this.removeAll();\n return false;\n }\n options.parms.curr_id = s.data.curr_id;\n}"
178 "*prop": "dataSource",
181 "|sortInfo": "{ field : '', direction: 'ASC' }",
186 "xtype": "HttpProxy",
188 "|url": "baseURL + '/Roo/curr_rate.php'",
193 "xtype": "JsonReader",
194 "totalProperty": "total",
198 "|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]"
204 "xtype": "PagingToolbar",
207 "displayMsg": "Displaying curr_rate{0} - {1} of {2}",
208 "emptyMsg": "No curr_rate found",
217 "|xns": "Roo.Toolbar",
223 "cls": "x-btn-text-icon",
224 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
226 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
228 "|xns": "Roo.Toolbar"
233 "*prop": "colModel[]",
234 "dataIndex": "curr_effective",
237 "xtype": "ColumnModel",
238 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
242 "*prop": "colModel[]",
243 "dataIndex": "curr_expires",
246 "xtype": "ColumnModel",
247 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
251 "*prop": "colModel[]",
253 "dataIndex": "curr_rate",
256 "xtype": "ColumnModel",
257 "|renderer": "function(v) { return String.format('{0}', v); }",