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');
49 //_this.dialog = Pman.Dialog.FILL_IN
50 if (_this.panel.active) {
51 this.footer.onClick('first');
54 rowdblclick : function (_self, rowIndex, e)
56 var rec = this.ds.getAt(rowIndex);
58 url : baseURL + '/Roo/Report/' + rec.data.report_name +'-' + rec.data.report_id + '.rpt',
61 _id : rec.data.report_id,
65 Roo.MessageBox.alert("Downloading",
67 "Report template is downloading - use " +
68 '<a href="http://sourceforge.net/projects/openrpt/files/openrpt/">' +
69 "report writer to edit this" +
77 autoExpandColumn : 'report_descrip',
83 beforeload : function (_self, options)
85 options.params['search[name]'] = _this.searchName.getValue();
86 options.params._max_versions = 1;
90 sortInfo : { field : 'report_name', direction: 'ASC' },
95 url : baseURL + '/Roo/report.php'
100 totalProperty : 'total',
109 'name': 'report_name',
113 'name': 'report_sys',
117 'name': 'report_source',
121 'name': 'report_descrip',
125 'name': 'report_grade',
129 'name': 'report_loaddate',
131 'dateFormat': 'Y-m-d'
137 xtype: 'RowSelectionModel',
140 afterselectionchange : function (_self)
142 _this.vgrid.footer.onClick('first');
148 xtype: 'PagingToolbar',
152 displayMsg : "Displaying report{0} - {1} of {2}",
153 emptyMsg : "No report found"
163 render : function (_self)
165 _this.searchName = _self;
167 specialkey : function (_self, e)
169 _this.grid.footer.onClick('first');
177 click : function (_self, e)
179 _this.grid.footer.onClick('first');
183 icon : rootURL + '/Pman/templates/images/search.gif'
189 click : function (_self, e)
191 _this.searchBox.setValue('');
192 _this.publication_name_combo.setValue('');
193 _this.publication_lang_combo.setValue('');
194 _this.country_combo.setValue('');
195 _this.category_media_id_combo.setValue('');
196 _this.role_combo.setValue('');
199 _this.grid.footer.onClick('first');
203 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
212 text : "Upload New version"
218 xtype: 'ColumnModel',
220 header : 'Report name',
222 dataIndex : 'report_name',
223 renderer : function(v) { return String.format('{0}', v); }
226 xtype: 'ColumnModel',
228 header : 'Report descrip',
230 dataIndex : 'report_descrip',
231 renderer : function(v) { return String.format('{0}', v); }
240 activate : function() {
243 _this.vgrid.footer.onClick('first');
251 tableName : 'report',
260 //_this.dialog = Pman.Dialog.FILL_IN
261 if (_this.vpanel.active) {
262 this.footer.onClick('first');
265 rowdblclick : function (_self, rowIndex, e)
267 if (!_this.dialog) return;
268 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
269 _this.grid.footer.onClick('first');
273 autoExpandColumn : 'report_name',
279 beforeload : function (_self, options)
284 var sel = _this.grid.selModel.getSelected()
289 options.params.report_name = sel.data.report_name;
295 sortInfo : { field : 'report_grade', direction: 'DESC' },
300 url : baseURL + '/Roo/report.php'
305 totalProperty : 'total',
314 'name': 'report_name',
318 'name': 'report_sys',
322 'name': 'report_source',
326 'name': 'report_descrip',
330 'name': 'report_grade',
334 'name': 'report_loaddate',
336 'dateFormat': 'Y-m-d'
342 xtype: 'PagingToolbar',
346 displayMsg : "Displaying report{0} - {1} of {2}",
347 emptyMsg : "No report found"
351 xtype: 'ColumnModel',
353 header : 'Report grade',
355 dataIndex : 'report_grade',
356 renderer : function(v) { return String.format('{0}', v); }
359 xtype: 'ColumnModel',
361 header : 'Report loaddate',
363 dataIndex : 'report_loaddate',
364 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
371 xtype: 'LayoutRegion',
375 xtype: 'LayoutRegion',