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"
120 cls : 'x-btn-text-icon',
121 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
125 if (!_this.dialog) return;
126 _this.dialog.show( { id : 0 } , function() {
127 _this.grid.footer.onClick('first');
136 xtype: 'ColumnModel',
140 dataIndex : 'curr_id',
141 renderer : function(v) { return String.format('{0}', v); }
144 xtype: 'ColumnModel',
146 header : 'Curr base',
148 dataIndex : 'curr_base',
149 renderer : function(v) { return String.format('{0}', v); }
152 xtype: 'ColumnModel',
154 header : 'Curr name',
156 dataIndex : 'curr_name',
157 renderer : function(v) { return String.format('{0}', v); }
160 xtype: 'ColumnModel',
162 header : 'Curr symbol',
164 dataIndex : 'curr_symbol',
165 renderer : function(v) { return String.format('{0}', v); }
168 xtype: 'ColumnModel',
170 header : 'Curr abbr',
172 dataIndex : 'curr_abbr',
173 renderer : function(v) { return String.format('{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 sortInfo : { field : '', direction: 'ASC' },
226 url : baseURL + '/Roo/curr_rate.php'
231 totalProperty : 'total',
236 'name': 'curr_rate_id',
252 'name': 'curr_effective',
254 'dateFormat': 'Y-m-d'
257 'name': 'curr_expires',
259 'dateFormat': 'Y-m-d'
265 xtype: 'PagingToolbar',
269 displayMsg : "Displaying curr_rate{0} - {1} of {2}",
270 emptyMsg : "No curr_rate found"
280 cls : 'x-btn-text-icon',
281 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
285 if (!_this.dialog) return;
286 _this.dialog.show( { id : 0 } , function() {
287 _this.grid.footer.onClick('first');
296 xtype: 'ColumnModel',
298 header : 'Curr rate',
300 dataIndex : 'curr_rate_id',
301 renderer : function(v) { return String.format('{0}', v); }
304 xtype: 'ColumnModel',
308 dataIndex : 'curr_id',
309 renderer : function(v) { return String.format('{0}', v); }
312 xtype: 'ColumnModel',
316 dataIndex : 'curr_id',
317 renderer : function(v) { return String.format('{0}', v); }
320 xtype: 'ColumnModel',
322 header : 'Curr rate',
324 dataIndex : 'curr_rate',
325 renderer : function(v) { return String.format('{0}', v); }
328 xtype: 'ColumnModel',
330 header : 'Curr effective',
332 dataIndex : 'curr_effective',
333 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
336 xtype: 'ColumnModel',
338 header : 'Curr expires',
340 dataIndex : 'curr_expires',
341 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
348 xtype: 'LayoutRegion',
353 xtype: 'LayoutRegion',