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"
284 cls : 'x-btn-text-icon',
285 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
289 if (!_this.dialog) return;
290 _this.dialog.show( { id : 0 } , function() {
291 _this.grid.footer.onClick('first');
300 xtype: 'ColumnModel',
302 header : 'Curr rate',
304 dataIndex : 'curr_rate_id',
305 renderer : function(v) { return String.format('{0}', v); }
308 xtype: 'ColumnModel',
312 dataIndex : 'curr_id',
313 renderer : function(v) { return String.format('{0}', v); }
316 xtype: 'ColumnModel',
320 dataIndex : 'curr_id',
321 renderer : function(v) { return String.format('{0}', v); }
324 xtype: 'ColumnModel',
326 header : 'Curr rate',
328 dataIndex : 'curr_rate',
329 renderer : function(v) { return String.format('{0}', v); }
332 xtype: 'ColumnModel',
334 header : 'Curr effective',
336 dataIndex : 'curr_effective',
337 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
340 xtype: 'ColumnModel',
342 header : 'Curr expires',
344 dataIndex : 'curr_expires',
345 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
352 xtype: 'LayoutRegion',
357 xtype: 'LayoutRegion',