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 header : 'Curr base',
144 dataIndex : 'curr_base',
145 renderer : function(v) { return String.format('{0}', v); }
148 xtype: 'ColumnModel',
150 header : 'Curr name',
152 dataIndex : 'curr_name',
153 renderer : function(v) { return String.format('{0}', v); }
156 xtype: 'ColumnModel',
158 header : 'Curr symbol',
160 dataIndex : 'curr_symbol',
161 renderer : function(v) { return String.format('{0}', v); }
164 xtype: 'ColumnModel',
166 header : 'Curr abbr',
168 dataIndex : 'curr_abbr',
169 renderer : function(v) { return String.format('{0}', v); }
178 activate : function() {
181 _this.rgrid.footer.onClick('first');
189 tableName : 'curr_rate',
198 //_this.dialog = Pman.Dialog.FILL_IN
199 if (_this.rpanel.active) {
200 this.footer.onClick('first');
203 rowdblclick : function (_self, rowIndex, e)
205 if (!_this.dialog) return;
206 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
207 _this.grid.footer.onClick('first');
211 autoExpandColumn : '',
217 sortInfo : { field : '', direction: 'ASC' },
222 url : baseURL + '/Roo/curr_rate.php'
227 totalProperty : 'total',
232 'name': 'curr_rate_id',
248 'name': 'curr_effective',
250 'dateFormat': 'Y-m-d'
253 'name': 'curr_expires',
255 'dateFormat': 'Y-m-d'
261 xtype: 'PagingToolbar',
265 displayMsg : "Displaying curr_rate{0} - {1} of {2}",
266 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',