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',
143 header : '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',
155 header : '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',
167 header : '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 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"
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',