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();
74 sortInfo : { field : 'report_name', direction: 'ASC' },
79 url : baseURL + '/Roo/report.php'
84 totalProperty : 'total',
93 'name': 'report_name',
101 'name': 'report_source',
105 'name': 'report_descrip',
109 'name': 'report_grade',
113 'name': 'report_loaddate',
115 'dateFormat': 'Y-m-d'
121 xtype: 'PagingToolbar',
125 displayMsg : "Displaying report{0} - {1} of {2}",
126 emptyMsg : "No report found"
136 render : function (_self)
138 _this.searchName = _self;
140 specialkey : function (_self, e)
150 click : function (_self, e)
152 _this.grid.footer.onClick('first');
156 icon : rootURL + '/Pman/templates/images/search.gif'
162 click : function (_self, e)
164 _this.searchBox.setValue('');
165 _this.publication_name_combo.setValue('');
166 _this.publication_lang_combo.setValue('');
167 _this.country_combo.setValue('');
168 _this.category_media_id_combo.setValue('');
169 _this.role_combo.setValue('');
172 _this.grid.footer.onClick('first');
176 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
186 cls : 'x-btn-text-icon',
187 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
191 if (!_this.dialog) return;
192 _this.dialog.show( { id : 0 } , function() {
193 _this.grid.footer.onClick('first');
202 xtype: 'ColumnModel',
204 header : 'Report name',
206 dataIndex : 'report_name',
207 renderer : function(v) { return String.format('{0}', v); }
210 xtype: 'ColumnModel',
212 header : 'Report descrip',
214 dataIndex : 'report_descrip',
215 renderer : function(v) { return String.format('{0}', v); }
226 tableName : 'report',
230 activate : function() {
233 _this.grid.footer.onClick('first');
240 autoExpandColumn : 'report_name',
246 //_this.dialog = Pman.Dialog.FILL_IN
247 if (_this.panel.active) {
248 this.footer.onClick('first');
251 rowdblclick : function (_self, rowIndex, e)
253 if (!_this.dialog) return;
254 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
255 _this.grid.footer.onClick('first');
263 sortInfo : { field : 'report_name', direction: 'ASC' },
268 url : baseURL + '/Roo/report.php'
273 totalProperty : 'total',
282 'name': 'report_name',
286 'name': 'report_sys',
290 'name': 'report_source',
294 'name': 'report_descrip',
298 'name': 'report_grade',
302 'name': 'report_loaddate',
304 'dateFormat': 'Y-m-d'
310 xtype: 'PagingToolbar',
314 displayMsg : "Displaying report{0} - {1} of {2}",
315 emptyMsg : "No report found"
319 xtype: 'ColumnModel',
321 header : 'Report grade',
323 dataIndex : 'report_grade',
324 renderer : function(v) { return String.format('{0}', v); }
327 xtype: 'ColumnModel',
329 header : 'Report loaddate',
331 dataIndex : 'report_loaddate',
332 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
339 xtype: 'LayoutRegion',
343 xtype: 'LayoutRegion',