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',
126 xtype: 'PagingToolbar',
130 displayMsg : "Displaying report{0} - {1} of {2}",
131 emptyMsg : "No report found"
141 render : function (_self)
143 _this.searchName = _self;
145 specialkey : function (_self, e)
147 _this.grid.footer.onClick('first');
155 click : function (_self, e)
157 _this.grid.footer.onClick('first');
161 icon : rootURL + '/Pman/templates/images/search.gif'
167 click : function (_self, e)
169 _this.searchBox.setValue('');
170 _this.publication_name_combo.setValue('');
171 _this.publication_lang_combo.setValue('');
172 _this.country_combo.setValue('');
173 _this.category_media_id_combo.setValue('');
174 _this.role_combo.setValue('');
177 _this.grid.footer.onClick('first');
181 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
191 cls : 'x-btn-text-icon',
192 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
196 if (!_this.dialog) return;
197 _this.dialog.show( { id : 0 } , function() {
198 _this.grid.footer.onClick('first');
207 xtype: 'ColumnModel',
209 header : 'Report name',
211 dataIndex : 'report_name',
212 renderer : function(v) { return String.format('{0}', v); }
215 xtype: 'ColumnModel',
217 header : 'Report descrip',
219 dataIndex : 'report_descrip',
220 renderer : function(v) { return String.format('{0}', v); }
229 activate : function() {
232 _this.vgrid.footer.onClick('first');
240 tableName : 'report',
249 //_this.dialog = Pman.Dialog.FILL_IN
250 if (_this.vpanel.active) {
251 this.footer.onClick('first');
254 rowdblclick : function (_self, rowIndex, e)
256 if (!_this.dialog) return;
257 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
258 _this.grid.footer.onClick('first');
262 autoExpandColumn : 'report_name',
268 beforeload : function (_self, options)
273 var sel = _this.grid.selModel.getSelected()
278 options.params.report_name = sel.data.report_name;
284 sortInfo : { field : 'report_grade', direction: 'DESC' },
289 url : baseURL + '/Roo/report.php'
294 totalProperty : 'total',
303 'name': 'report_name',
307 'name': 'report_sys',
311 'name': 'report_source',
315 'name': 'report_descrip',
319 'name': 'report_grade',
323 'name': 'report_loaddate',
325 'dateFormat': 'Y-m-d'
331 xtype: 'PagingToolbar',
335 displayMsg : "Displaying report{0} - {1} of {2}",
336 emptyMsg : "No report found"
340 xtype: 'ColumnModel',
342 header : 'Report grade',
344 dataIndex : 'report_grade',
345 renderer : function(v) { return String.format('{0}', v); }
348 xtype: 'ColumnModel',
350 header : 'Report loaddate',
352 dataIndex : 'report_loaddate',
353 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
360 xtype: 'LayoutRegion',
364 xtype: 'LayoutRegion',