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 sortInfo : { field : 'report_name', direction: 'ASC' },
73 url : baseURL + '/Roo/report.php'
78 totalProperty : 'total',
87 'name': 'report_name',
95 'name': 'report_source',
99 'name': 'report_descrip',
103 'name': 'report_grade',
107 'name': 'report_loaddate',
109 'dateFormat': 'Y-m-d'
115 xtype: 'PagingToolbar',
119 displayMsg : "Displaying report{0} - {1} of {2}",
120 emptyMsg : "No report found"
134 click : function (_self, e)
136 _this.grid.footer.onClick('first');
140 icon : rootURL + '/Pman/templates/images/search.gif'
146 click : function (_self, e)
148 _this.searchBox.setValue('');
149 _this.publication_name_combo.setValue('');
150 _this.publication_lang_combo.setValue('');
151 _this.country_combo.setValue('');
152 _this.category_media_id_combo.setValue('');
153 _this.role_combo.setValue('');
156 _this.grid.footer.onClick('first');
160 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
170 cls : 'x-btn-text-icon',
171 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
175 if (!_this.dialog) return;
176 _this.dialog.show( { id : 0 } , function() {
177 _this.grid.footer.onClick('first');
186 xtype: 'ColumnModel',
188 header : 'Report name',
190 dataIndex : 'report_name',
191 renderer : function(v) { return String.format('{0}', v); }
194 xtype: 'ColumnModel',
196 header : 'Report descrip',
198 dataIndex : 'report_descrip',
199 renderer : function(v) { return String.format('{0}', v); }
210 tableName : 'report',
214 activate : function() {
217 _this.grid.footer.onClick('first');
224 autoExpandColumn : 'report_name',
230 //_this.dialog = Pman.Dialog.FILL_IN
231 if (_this.panel.active) {
232 this.footer.onClick('first');
235 rowdblclick : function (_self, rowIndex, e)
237 if (!_this.dialog) return;
238 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
239 _this.grid.footer.onClick('first');
247 sortInfo : { field : 'report_name', direction: 'ASC' },
252 url : baseURL + '/Roo/report.php'
257 totalProperty : 'total',
266 'name': 'report_name',
270 'name': 'report_sys',
274 'name': 'report_source',
278 'name': 'report_descrip',
282 'name': 'report_grade',
286 'name': 'report_loaddate',
288 'dateFormat': 'Y-m-d'
294 xtype: 'PagingToolbar',
298 displayMsg : "Displaying report{0} - {1} of {2}",
299 emptyMsg : "No report found"
303 xtype: 'ColumnModel',
305 header : 'Report grade',
307 dataIndex : 'report_grade',
308 renderer : function(v) { return String.format('{0}', v); }
311 xtype: 'ColumnModel',
313 header : 'Report loaddate',
315 dataIndex : 'report_loaddate',
316 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
323 xtype: 'LayoutRegion',
327 xtype: 'LayoutRegion',