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"
56 "*prop": "dataSource",
59 "|sortInfo": "{ field : 'curr_name', direction: 'ASC' }",
66 "|url": "baseURL + '/Roo/curr_symbol.php'",
71 "xtype": "JsonReader",
72 "totalProperty": "total",
76 "|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]"
82 "xtype": "PagingToolbar",
85 "displayMsg": "Displaying curr_symbol{0} - {1} of {2}",
86 "emptyMsg": "No curr_symbol found",
95 "|xns": "Roo.Toolbar",
101 "cls": "x-btn-text-icon",
102 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
104 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
106 "|xns": "Roo.Toolbar"
111 "*prop": "colModel[]",
112 "dataIndex": "curr_name",
115 "xtype": "ColumnModel",
116 "|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}",
120 "*prop": "colModel[]",
121 "dataIndex": "curr_symbol",
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_abbr",
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}",
143 "|activate": "function() {\n _this.rpanel = this;\n if (_this.rgrid) {\n _this.rgrid.footer.onClick('first');\n }\n}"
146 "fitContainer": true,
149 "tableName": "curr_rate",
150 "title": "curr_rate",
151 "xtype": "GridPanel",
156 "|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}",
157 "|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"
160 "autoExpandColumn": "curr_rate",
167 "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}"
169 "*prop": "dataSource",
172 "|sortInfo": "{ field : '', direction: 'ASC' }",
177 "xtype": "HttpProxy",
179 "|url": "baseURL + '/Roo/curr_rate.php'",
184 "xtype": "JsonReader",
185 "totalProperty": "total",
189 "|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]"
195 "xtype": "PagingToolbar",
198 "displayMsg": "Displaying curr_rate{0} - {1} of {2}",
199 "emptyMsg": "No curr_rate found",
208 "|xns": "Roo.Toolbar",
214 "cls": "x-btn-text-icon",
215 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
217 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
219 "|xns": "Roo.Toolbar"
224 "*prop": "colModel[]",
225 "dataIndex": "curr_effective",
228 "xtype": "ColumnModel",
229 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
233 "*prop": "colModel[]",
234 "dataIndex": "curr_expires",
237 "xtype": "ColumnModel",
238 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
242 "*prop": "colModel[]",
244 "dataIndex": "curr_rate",
247 "xtype": "ColumnModel",
248 "|renderer": "function(v) { return String.format('{0}', v); }",