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',
27 title : "curr_symbol",
30 tableName : 'curr_symbol',
34 activate : function() {
37 _this.grid.footer.onClick('first');
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); }
215 xtype: 'LayoutRegion',
219 xtype: 'LayoutRegion',