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"
130 render : function (_self)
132 _this.searchName = _self;
140 click : function (_self, e)
142 _this.grid.footer.onClick('first');
146 icon : rootURL + '/Pman/templates/images/search.gif'
152 click : function (_self, e)
154 _this.searchBox.setValue('');
155 _this.publication_name_combo.setValue('');
156 _this.publication_lang_combo.setValue('');
157 _this.country_combo.setValue('');
158 _this.category_media_id_combo.setValue('');
159 _this.role_combo.setValue('');
162 _this.grid.footer.onClick('first');
166 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
176 cls : 'x-btn-text-icon',
177 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
181 if (!_this.dialog) return;
182 _this.dialog.show( { id : 0 } , function() {
183 _this.grid.footer.onClick('first');
192 xtype: 'ColumnModel',
194 header : 'Report name',
196 dataIndex : 'report_name',
197 renderer : function(v) { return String.format('{0}', v); }
200 xtype: 'ColumnModel',
202 header : 'Report descrip',
204 dataIndex : 'report_descrip',
205 renderer : function(v) { return String.format('{0}', v); }
216 tableName : 'report',
220 activate : function() {
223 _this.grid.footer.onClick('first');
230 autoExpandColumn : 'report_name',
236 //_this.dialog = Pman.Dialog.FILL_IN
237 if (_this.panel.active) {
238 this.footer.onClick('first');
241 rowdblclick : function (_self, rowIndex, e)
243 if (!_this.dialog) return;
244 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
245 _this.grid.footer.onClick('first');
253 sortInfo : { field : 'report_name', direction: 'ASC' },
258 url : baseURL + '/Roo/report.php'
263 totalProperty : 'total',
272 'name': 'report_name',
276 'name': 'report_sys',
280 'name': 'report_source',
284 'name': 'report_descrip',
288 'name': 'report_grade',
292 'name': 'report_loaddate',
294 'dateFormat': 'Y-m-d'
300 xtype: 'PagingToolbar',
304 displayMsg : "Displaying report{0} - {1} of {2}",
305 emptyMsg : "No report found"
309 xtype: 'ColumnModel',
311 header : 'Report grade',
313 dataIndex : 'report_grade',
314 renderer : function(v) { return String.format('{0}', v); }
317 xtype: 'ColumnModel',
319 header : 'Report loaddate',
321 dataIndex : 'report_loaddate',
322 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
329 xtype: 'LayoutRegion',
333 xtype: 'LayoutRegion',