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',
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'
213 cls : 'x-btn-text-icon',
214 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
218 if (!_this.dialog) return;
219 _this.dialog.show( { id : 0 } , function() {
220 _this.grid.footer.onClick('first');
229 xtype: 'ColumnModel',
231 header : 'Report name',
233 dataIndex : 'report_name',
234 renderer : function(v) { return String.format('{0}', v); }
237 xtype: 'ColumnModel',
239 header : 'Report descrip',
241 dataIndex : 'report_descrip',
242 renderer : function(v) { return String.format('{0}', v); }
251 activate : function() {
254 _this.vgrid.footer.onClick('first');
262 tableName : 'report',
271 //_this.dialog = Pman.Dialog.FILL_IN
272 if (_this.vpanel.active) {
273 this.footer.onClick('first');
276 rowdblclick : function (_self, rowIndex, e)
278 if (!_this.dialog) return;
279 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
280 _this.grid.footer.onClick('first');
284 autoExpandColumn : 'report_name',
290 beforeload : function (_self, options)
295 var sel = _this.grid.selModel.getSelected()
300 options.params.report_name = sel.data.report_name;
306 sortInfo : { field : 'report_grade', direction: 'DESC' },
311 url : baseURL + '/Roo/report.php'
316 totalProperty : 'total',
325 'name': 'report_name',
329 'name': 'report_sys',
333 'name': 'report_source',
337 'name': 'report_descrip',
341 'name': 'report_grade',
345 'name': 'report_loaddate',
347 'dateFormat': 'Y-m-d'
353 xtype: 'PagingToolbar',
357 displayMsg : "Displaying report{0} - {1} of {2}",
358 emptyMsg : "No report found"
362 xtype: 'ColumnModel',
364 header : 'Report grade',
366 dataIndex : 'report_grade',
367 renderer : function(v) { return String.format('{0}', v); }
370 xtype: 'ColumnModel',
372 header : 'Report loaddate',
374 dataIndex : 'report_loaddate',
375 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
382 xtype: 'LayoutRegion',
386 xtype: 'LayoutRegion',