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 if (!_this.dialog) return;
57 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
58 _this.grid.footer.onClick('first');
62 autoExpandColumn : 'report_descrip',
68 beforeload : function (_self, options)
70 options.params['search[name]'] = _this.searchName.getValue();
71 options.params._max_versions = 1;
75 sortInfo : { field : 'report_name', direction: 'ASC' },
80 url : baseURL + '/Roo/report.php'
85 totalProperty : 'total',
94 'name': 'report_name',
102 'name': 'report_source',
106 'name': 'report_descrip',
110 'name': 'report_grade',
114 'name': 'report_loaddate',
116 'dateFormat': 'Y-m-d'
122 xtype: 'RowSelectionModel',
127 xtype: 'PagingToolbar',
131 displayMsg : "Displaying report{0} - {1} of {2}",
132 emptyMsg : "No report found"
142 render : function (_self)
144 _this.searchName = _self;
146 specialkey : function (_self, e)
148 _this.grid.footer.onClick('first');
156 click : function (_self, e)
158 _this.grid.footer.onClick('first');
162 icon : rootURL + '/Pman/templates/images/search.gif'
168 click : function (_self, e)
170 _this.searchBox.setValue('');
171 _this.publication_name_combo.setValue('');
172 _this.publication_lang_combo.setValue('');
173 _this.country_combo.setValue('');
174 _this.category_media_id_combo.setValue('');
175 _this.role_combo.setValue('');
178 _this.grid.footer.onClick('first');
182 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
192 cls : 'x-btn-text-icon',
193 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
197 if (!_this.dialog) return;
198 _this.dialog.show( { id : 0 } , function() {
199 _this.grid.footer.onClick('first');
208 xtype: 'ColumnModel',
210 header : 'Report name',
212 dataIndex : 'report_name',
213 renderer : function(v) { return String.format('{0}', v); }
216 xtype: 'ColumnModel',
218 header : 'Report descrip',
220 dataIndex : 'report_descrip',
221 renderer : function(v) { return String.format('{0}', v); }
230 activate : function() {
233 _this.vgrid.footer.onClick('first');
241 tableName : 'report',
250 //_this.dialog = Pman.Dialog.FILL_IN
251 if (_this.vpanel.active) {
252 this.footer.onClick('first');
255 rowdblclick : function (_self, rowIndex, e)
257 if (!_this.dialog) return;
258 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
259 _this.grid.footer.onClick('first');
263 autoExpandColumn : 'report_name',
269 beforeload : function (_self, options)
274 var sel = _this.grid.selModel.getSelected()
279 options.params.report_name = sel.data.report_name;
285 sortInfo : { field : 'report_grade', direction: 'DESC' },
290 url : baseURL + '/Roo/report.php'
295 totalProperty : 'total',
304 'name': 'report_name',
308 'name': 'report_sys',
312 'name': 'report_source',
316 'name': 'report_descrip',
320 'name': 'report_grade',
324 'name': 'report_loaddate',
326 'dateFormat': 'Y-m-d'
332 xtype: 'PagingToolbar',
336 displayMsg : "Displaying report{0} - {1} of {2}",
337 emptyMsg : "No report found"
341 xtype: 'ColumnModel',
343 header : 'Report grade',
345 dataIndex : 'report_grade',
346 renderer : function(v) { return String.format('{0}', v); }
349 xtype: 'ColumnModel',
351 header : 'Report loaddate',
353 dataIndex : 'report_loaddate',
354 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
361 xtype: 'LayoutRegion',
365 xtype: 'LayoutRegion',