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',
125 afterselectionchange : function (_self)
127 _this.vgrid.onClick('first');
133 xtype: 'PagingToolbar',
137 displayMsg : "Displaying report{0} - {1} of {2}",
138 emptyMsg : "No report found"
148 render : function (_self)
150 _this.searchName = _self;
152 specialkey : function (_self, e)
154 _this.grid.footer.onClick('first');
162 click : function (_self, e)
164 _this.grid.footer.onClick('first');
168 icon : rootURL + '/Pman/templates/images/search.gif'
174 click : function (_self, e)
176 _this.searchBox.setValue('');
177 _this.publication_name_combo.setValue('');
178 _this.publication_lang_combo.setValue('');
179 _this.country_combo.setValue('');
180 _this.category_media_id_combo.setValue('');
181 _this.role_combo.setValue('');
184 _this.grid.footer.onClick('first');
188 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
198 cls : 'x-btn-text-icon',
199 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
203 if (!_this.dialog) return;
204 _this.dialog.show( { id : 0 } , function() {
205 _this.grid.footer.onClick('first');
214 xtype: 'ColumnModel',
216 header : 'Report name',
218 dataIndex : 'report_name',
219 renderer : function(v) { return String.format('{0}', v); }
222 xtype: 'ColumnModel',
224 header : 'Report descrip',
226 dataIndex : 'report_descrip',
227 renderer : function(v) { return String.format('{0}', v); }
236 activate : function() {
239 _this.vgrid.footer.onClick('first');
247 tableName : 'report',
256 //_this.dialog = Pman.Dialog.FILL_IN
257 if (_this.vpanel.active) {
258 this.footer.onClick('first');
261 rowdblclick : function (_self, rowIndex, e)
263 if (!_this.dialog) return;
264 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
265 _this.grid.footer.onClick('first');
269 autoExpandColumn : 'report_name',
275 beforeload : function (_self, options)
280 var sel = _this.grid.selModel.getSelected()
285 options.params.report_name = sel.data.report_name;
291 sortInfo : { field : 'report_grade', direction: 'DESC' },
296 url : baseURL + '/Roo/report.php'
301 totalProperty : 'total',
310 'name': 'report_name',
314 'name': 'report_sys',
318 'name': 'report_source',
322 'name': 'report_descrip',
326 'name': 'report_grade',
330 'name': 'report_loaddate',
332 'dateFormat': 'Y-m-d'
338 xtype: 'PagingToolbar',
342 displayMsg : "Displaying report{0} - {1} of {2}",
343 emptyMsg : "No report found"
347 xtype: 'ColumnModel',
349 header : 'Report grade',
351 dataIndex : 'report_grade',
352 renderer : function(v) { return String.format('{0}', v); }
355 xtype: 'ColumnModel',
357 header : 'Report loaddate',
359 dataIndex : 'report_loaddate',
360 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
367 xtype: 'LayoutRegion',
371 xtype: 'LayoutRegion',