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',
144 dataIndex : 'curr_id',
145 renderer : function(v) { return String.format('{0}', v); }
148 xtype: 'ColumnModel',
150 header : 'Curr base',
152 dataIndex : 'curr_base',
153 renderer : function(v) { return String.format('{0}', v); }
156 xtype: 'ColumnModel',
158 header : 'Curr name',
160 dataIndex : 'curr_name',
161 renderer : function(v) { return String.format('{0}', v); }
164 xtype: 'ColumnModel',
166 header : 'Curr symbol',
168 dataIndex : 'curr_symbol',
169 renderer : function(v) { return String.format('{0}', v); }
172 xtype: 'ColumnModel',
174 header : 'Curr abbr',
176 dataIndex : 'curr_abbr',
177 renderer : function(v) { return String.format('{0}', v); }
186 activate : function() {
189 _this.rgrid.footer.onClick('first');
197 tableName : 'curr_rate',
206 //_this.dialog = Pman.Dialog.FILL_IN
207 if (_this.rpanel.active) {
208 this.footer.onClick('first');
211 rowdblclick : function (_self, rowIndex, e)
213 if (!_this.dialog) return;
214 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
215 _this.grid.footer.onClick('first');
219 autoExpandColumn : '',
225 sortInfo : { field : '', direction: 'ASC' },
230 url : baseURL + '/Roo/curr_rate.php'
235 totalProperty : 'total',
240 'name': 'curr_rate_id',
256 'name': 'curr_effective',
258 'dateFormat': 'Y-m-d'
261 'name': 'curr_expires',
263 'dateFormat': 'Y-m-d'
269 xtype: 'PagingToolbar',
273 displayMsg : "Displaying curr_rate{0} - {1} of {2}",
274 emptyMsg : "No curr_rate found"
288 cls : 'x-btn-text-icon',
289 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
293 if (!_this.dialog) return;
294 _this.dialog.show( { id : 0 } , function() {
295 _this.grid.footer.onClick('first');
304 xtype: 'ColumnModel',
306 header : 'Curr rate',
308 dataIndex : 'curr_rate_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',
324 dataIndex : 'curr_id',
325 renderer : function(v) { return String.format('{0}', v); }
328 xtype: 'ColumnModel',
330 header : 'Curr rate',
332 dataIndex : 'curr_rate',
333 renderer : function(v) { return String.format('{0}', v); }
336 xtype: 'ColumnModel',
338 header : 'Curr effective',
340 dataIndex : 'curr_effective',
341 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
344 xtype: 'ColumnModel',
346 header : 'Curr expires',
348 dataIndex : 'curr_expires',
349 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
356 xtype: 'LayoutRegion',
361 xtype: 'LayoutRegion',