1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtupleCurrency = new Roo.XComponent({
6 part : ["Xtuple","Currency"],
7 order : '001-Pman.Tab.XtupleCurrency',
10 name : "unnamed module",
18 xtype: 'NestedLayoutPanel',
21 xtype: 'BorderLayout',
28 activate : function() {
31 _this.grid.footer.onClick('first');
39 tableName : 'curr_symbol',
40 title : "curr_symbol",
44 autoExpandColumn : 'curr_name',
50 //_this.dialog = Pman.Dialog.FILL_IN
51 if (_this.panel.active) {
52 this.footer.onClick('first');
55 rowdblclick : function (_self, rowIndex, e)
57 if (!_this.dialog) return;
58 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
59 _this.grid.footer.onClick('first');
67 sortInfo : { field : 'curr_name', direction: 'ASC' },
72 url : baseURL + '/Roo/curr_symbol.php'
77 totalProperty : 'total',
94 'name': 'curr_symbol',
105 xtype: 'PagingToolbar',
109 displayMsg : "Displaying curr_symbol{0} - {1} of {2}",
110 emptyMsg : "No curr_symbol found"
124 cls : 'x-btn-text-icon',
125 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
129 if (!_this.dialog) return;
130 _this.dialog.show( { id : 0 } , function() {
131 _this.grid.footer.onClick('first');
140 xtype: 'ColumnModel',
142 dataIndex : 'curr_name',
145 renderer : function(v,x,r) {
147 return String.format(r.data.curr_base*1 ? '<span style="color:red">{0}</span>' : '{0}', v);
152 xtype: 'ColumnModel',
154 dataIndex : 'curr_symbol',
157 renderer : function(v,x,r) {
159 return String.format(r.data.curr_base*1 ? '<span style="color:red">{0}</span>' : '{0}', v);
164 xtype: 'ColumnModel',
166 dataIndex : 'curr_abbr',
169 renderer : function(v,x,r) {
171 return String.format(r.data.curr_base*1 ? '<span style="color:red">{0}</span>' : '{0}', v);
182 activate : function() {
185 _this.rgrid.footer.onClick('first');
193 tableName : 'curr_rate',
202 //_this.dialog = Pman.Dialog.FILL_IN
203 if (_this.rpanel.active) {
204 this.footer.onClick('first');
207 rowdblclick : function (_self, rowIndex, e)
209 if (!_this.dialog) return;
210 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
211 _this.grid.footer.onClick('first');
215 autoExpandColumn : '',
221 beforeload : function (_self, options)
223 var s = _this.grid.selModel.getSelected();
228 options.parms.curr_id = s.data.curr_id;
232 sortInfo : { field : '', direction: 'ASC' },
237 url : baseURL + '/Roo/curr_rate.php'
242 totalProperty : 'total',
247 'name': 'curr_rate_id',
263 'name': 'curr_effective',
265 'dateFormat': 'Y-m-d'
268 'name': 'curr_expires',
270 'dateFormat': 'Y-m-d'
276 xtype: 'PagingToolbar',
280 displayMsg : "Displaying curr_rate{0} - {1} of {2}",
281 emptyMsg : "No curr_rate found"
295 cls : 'x-btn-text-icon',
296 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
300 if (!_this.dialog) return;
301 _this.dialog.show( { id : 0 } , function() {
302 _this.grid.footer.onClick('first');
311 xtype: 'ColumnModel',
313 header : 'Curr rate',
315 dataIndex : 'curr_rate',
316 renderer : function(v) { return String.format('{0}', v); }
319 xtype: 'ColumnModel',
321 header : 'Curr effective',
323 dataIndex : 'curr_effective',
324 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
327 xtype: 'ColumnModel',
329 header : 'Curr expires',
331 dataIndex : 'curr_expires',
332 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
335 xtype: 'ColumnModel',
337 header : 'Curr rate',
339 dataIndex : 'curr_rate',
340 renderer : function(v) { return String.format('{0}', v); }
347 xtype: 'LayoutRegion',
353 xtype: 'LayoutRegion',