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"
120 cls : 'x-btn-text-icon',
121 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
125 if (!_this.dialog) return;
126 _this.dialog.show( { id : 0 } , function() {
127 _this.grid.footer.onClick('first');
136 cls : 'x-btn-text-icon',
137 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
141 var s = _this.grid.getSelectionModel().getSelections();
142 if (!s.length || (s.length > 1)) {
143 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
146 if (!_this.dialog) return;
147 _this.dialog.show(s[0].data, function() {
148 _this.grid.footer.onClick('first');
158 cls : 'x-btn-text-icon',
159 icon : rootURL + '/Pman/templates/images/trash.gif',
163 Pman.genericDelete(_this, 'curr_symbol');
171 xtype: 'ColumnModel',
175 dataIndex : 'curr_id',
176 renderer : function(v) { return String.format('{0}', v); }
179 xtype: 'ColumnModel',
181 header : 'Curr base',
183 dataIndex : 'curr_base',
184 renderer : function(v) { return String.format('{0}', v); }
187 xtype: 'ColumnModel',
189 header : 'Curr name',
191 dataIndex : 'curr_name',
192 renderer : function(v) { return String.format('{0}', v); }
195 xtype: 'ColumnModel',
197 header : 'Curr symbol',
199 dataIndex : 'curr_symbol',
200 renderer : function(v) { return String.format('{0}', v); }
203 xtype: 'ColumnModel',
205 header : 'Curr abbr',
207 dataIndex : 'curr_abbr',
208 renderer : function(v) { return String.format('{0}', v); }
217 activate : function() {
220 _this.rgrid.footer.onClick('first');
228 tableName : 'curr_rate',
237 //_this.dialog = Pman.Dialog.FILL_IN
238 if (_this.rpanel.active) {
239 this.footer.onClick('first');
242 rowdblclick : function (_self, rowIndex, e)
244 if (!_this.dialog) return;
245 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
246 _this.grid.footer.onClick('first');
250 autoExpandColumn : '',
256 sortInfo : { field : '', direction: 'ASC' },
261 url : baseURL + '/Roo/curr_rate.php'
266 totalProperty : 'total',
271 'name': 'curr_rate_id',
287 'name': 'curr_effective',
289 'dateFormat': 'Y-m-d'
292 'name': 'curr_expires',
294 'dateFormat': 'Y-m-d'
300 xtype: 'PagingToolbar',
304 displayMsg : "Displaying curr_rate{0} - {1} of {2}",
305 emptyMsg : "No curr_rate found"
315 cls : 'x-btn-text-icon',
316 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
320 if (!_this.dialog) return;
321 _this.dialog.show( { id : 0 } , function() {
322 _this.grid.footer.onClick('first');
331 cls : 'x-btn-text-icon',
332 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
336 var s = _this.grid.getSelectionModel().getSelections();
337 if (!s.length || (s.length > 1)) {
338 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
341 if (!_this.dialog) return;
342 _this.dialog.show(s[0].data, function() {
343 _this.grid.footer.onClick('first');
353 cls : 'x-btn-text-icon',
354 icon : rootURL + '/Pman/templates/images/trash.gif',
358 Pman.genericDelete(_this, 'curr_rate');
366 xtype: 'ColumnModel',
368 header : 'Curr rate',
370 dataIndex : 'curr_rate_id',
371 renderer : function(v) { return String.format('{0}', v); }
374 xtype: 'ColumnModel',
378 dataIndex : 'curr_id',
379 renderer : function(v) { return String.format('{0}', v); }
382 xtype: 'ColumnModel',
386 dataIndex : 'curr_id',
387 renderer : function(v) { return String.format('{0}', v); }
390 xtype: 'ColumnModel',
392 header : 'Curr rate',
394 dataIndex : 'curr_rate',
395 renderer : function(v) { return String.format('{0}', v); }
398 xtype: 'ColumnModel',
400 header : 'Curr effective',
402 dataIndex : 'curr_effective',
403 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
406 xtype: 'ColumnModel',
408 header : 'Curr expires',
410 dataIndex : 'curr_expires',
411 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
418 xtype: 'LayoutRegion',
422 xtype: 'LayoutRegion',