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 dataIndex : 'curr_name',
151 header : 'Curr name',
153 renderer : function(v,x,r) {
155 return String.format(r.data.curr_base*1 ? '<span style="color:red">{0}</span>' : '{0}', v);
160 xtype: 'ColumnModel',
162 dataIndex : 'curr_symbol',
163 header : 'Curr symbol',
165 renderer : function(v,x,r) {
167 return String.format(r.data.curr_base*1 ? '<span style="color:red">{0}</span>' : '{0}', v);
172 xtype: 'ColumnModel',
174 dataIndex : 'curr_abbr',
175 header : 'Curr abbr',
177 renderer : function(v,x,r) {
179 return String.format(r.data.curr_base*1 ? '<span style="color:red">{0}</span>' : '{0}', v);
190 activate : function() {
193 _this.rgrid.footer.onClick('first');
201 tableName : 'curr_rate',
210 //_this.dialog = Pman.Dialog.FILL_IN
211 if (_this.rpanel.active) {
212 this.footer.onClick('first');
215 rowdblclick : function (_self, rowIndex, e)
217 if (!_this.dialog) return;
218 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
219 _this.grid.footer.onClick('first');
223 autoExpandColumn : '',
229 sortInfo : { field : '', direction: 'ASC' },
234 url : baseURL + '/Roo/curr_rate.php'
239 totalProperty : 'total',
244 'name': 'curr_rate_id',
260 'name': 'curr_effective',
262 'dateFormat': 'Y-m-d'
265 'name': 'curr_expires',
267 'dateFormat': 'Y-m-d'
273 xtype: 'PagingToolbar',
277 displayMsg : "Displaying curr_rate{0} - {1} of {2}",
278 emptyMsg : "No curr_rate found"
292 cls : 'x-btn-text-icon',
293 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
297 if (!_this.dialog) return;
298 _this.dialog.show( { id : 0 } , function() {
299 _this.grid.footer.onClick('first');
308 xtype: 'ColumnModel',
310 header : 'Curr rate',
312 dataIndex : 'curr_rate_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',
328 dataIndex : 'curr_id',
329 renderer : function(v) { return String.format('{0}', v); }
332 xtype: 'ColumnModel',
334 header : 'Curr rate',
336 dataIndex : 'curr_rate',
337 renderer : function(v) { return String.format('{0}', v); }
340 xtype: 'ColumnModel',
342 header : 'Curr effective',
344 dataIndex : 'curr_effective',
345 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
348 xtype: 'ColumnModel',
350 header : 'Curr expires',
352 dataIndex : 'curr_expires',
353 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
360 xtype: 'LayoutRegion',
365 xtype: 'LayoutRegion',