1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtupleReports = new Roo.XComponent({
6 part : ["Xtuple","Reports"],
7 order : '500-Pman.Tab.XtupleReports',
9 parent : 'Pman.Tab.Admin',
10 name : "unnamed module",
18 xtype: 'NestedLayoutPanel',
22 xtype: 'BorderLayout',
35 activate : function() {
38 _this.grid.footer.onClick('first');
45 autoExpandColumn : 'report_name',
51 //_this.dialog = Pman.Dialog.FILL_IN
52 if (_this.panel.active) {
53 this.footer.onClick('first');
56 rowdblclick : function (_self, rowIndex, e)
58 if (!_this.dialog) return;
59 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
60 _this.grid.footer.onClick('first');
68 sortInfo : { field : 'report_name', direction: 'ASC' },
73 url : baseURL + '/Roo/report.php'
78 totalProperty : 'total',
87 'name': 'report_name',
95 'name': 'report_source',
99 'name': 'report_descrip',
103 'name': 'report_grade',
107 'name': 'report_loaddate',
109 'dateFormat': 'Y-m-d'
115 xtype: 'PagingToolbar',
119 displayMsg : "Displaying report{0} - {1} of {2}",
120 emptyMsg : "No report found"
134 click : function (_self, e)
136 _this.grid.footer.onClick('first');
140 icon : rootURL + '/Pman/templates/images/search.gif'
146 click : function (_self, e)
148 _this.searchBox.setValue('');
149 _this.publication_name_combo.setValue('');
150 _this.publication_lang_combo.setValue('');
151 _this.country_combo.setValue('');
152 _this.category_media_id_combo.setValue('');
153 _this.role_combo.setValue('');
156 _this.grid.footer.onClick('first');
160 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
166 cls : 'x-btn-text-icon',
167 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
171 if (!_this.dialog) return;
172 _this.dialog.show( { id : 0 } , function() {
173 _this.grid.footer.onClick('first');
182 xtype: 'ColumnModel',
186 dataIndex : 'report_id',
187 renderer : function(v) { return String.format('{0}', v); }
190 xtype: 'ColumnModel',
192 header : 'Report name',
194 dataIndex : 'report_name',
195 renderer : function(v) { return String.format('{0}', v); }
198 xtype: 'ColumnModel',
200 header : 'Report descrip',
202 dataIndex : 'report_descrip',
203 renderer : function(v) { return String.format('{0}', v); }
214 tableName : 'report',
218 activate : function() {
221 _this.grid.footer.onClick('first');
228 autoExpandColumn : 'report_name',
234 //_this.dialog = Pman.Dialog.FILL_IN
235 if (_this.panel.active) {
236 this.footer.onClick('first');
239 rowdblclick : function (_self, rowIndex, e)
241 if (!_this.dialog) return;
242 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
243 _this.grid.footer.onClick('first');
251 sortInfo : { field : 'report_name', direction: 'ASC' },
256 url : baseURL + '/Roo/report.php'
261 totalProperty : 'total',
270 'name': 'report_name',
274 'name': 'report_sys',
278 'name': 'report_source',
282 'name': 'report_descrip',
286 'name': 'report_grade',
290 'name': 'report_loaddate',
292 'dateFormat': 'Y-m-d'
298 xtype: 'PagingToolbar',
302 displayMsg : "Displaying report{0} - {1} of {2}",
303 emptyMsg : "No report found"
307 xtype: 'ColumnModel',
309 header : 'Report grade',
311 dataIndex : 'report_grade',
312 renderer : function(v) { return String.format('{0}', v); }
315 xtype: 'ColumnModel',
317 header : 'Report loaddate',
319 dataIndex : 'report_loaddate',
320 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
327 xtype: 'LayoutRegion',
331 xtype: 'LayoutRegion',