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: 'PagingToolbar',
126 displayMsg : "Displaying report{0} - {1} of {2}",
127 emptyMsg : "No report found"
137 render : function (_self)
139 _this.searchName = _self;
141 specialkey : function (_self, e)
143 _this.grid.footer.onClick('first');
151 click : function (_self, e)
153 _this.grid.footer.onClick('first');
157 icon : rootURL + '/Pman/templates/images/search.gif'
163 click : function (_self, e)
165 _this.searchBox.setValue('');
166 _this.publication_name_combo.setValue('');
167 _this.publication_lang_combo.setValue('');
168 _this.country_combo.setValue('');
169 _this.category_media_id_combo.setValue('');
170 _this.role_combo.setValue('');
173 _this.grid.footer.onClick('first');
177 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
187 cls : 'x-btn-text-icon',
188 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
192 if (!_this.dialog) return;
193 _this.dialog.show( { id : 0 } , function() {
194 _this.grid.footer.onClick('first');
203 xtype: 'ColumnModel',
205 header : 'Report name',
207 dataIndex : 'report_name',
208 renderer : function(v) { return String.format('{0}', v); }
211 xtype: 'ColumnModel',
213 header : 'Report descrip',
215 dataIndex : 'report_descrip',
216 renderer : function(v) { return String.format('{0}', v); }
225 activate : function() {
228 _this.vgrid.footer.onClick('first');
236 tableName : 'report',
245 //_this.dialog = Pman.Dialog.FILL_IN
246 if (_this.vpanel.active) {
247 this.footer.onClick('first');
250 rowdblclick : function (_self, rowIndex, e)
252 if (!_this.dialog) return;
253 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
254 _this.grid.footer.onClick('first');
258 autoExpandColumn : 'report_name',
264 beforeload : function (_self, options)
266 if (!_this.grid.selModel) {
269 var sel = _this.grid.selModel.getSelected()
274 options.params.report_name = sel.data.report_name;
280 sortInfo : { field : 'report_grade', direction: 'DESC' },
285 url : baseURL + '/Roo/report.php'
290 totalProperty : 'total',
299 'name': 'report_name',
303 'name': 'report_sys',
307 'name': 'report_source',
311 'name': 'report_descrip',
315 'name': 'report_grade',
319 'name': 'report_loaddate',
321 'dateFormat': 'Y-m-d'
327 xtype: 'PagingToolbar',
331 displayMsg : "Displaying report{0} - {1} of {2}",
332 emptyMsg : "No report found"
336 xtype: 'ColumnModel',
338 header : 'Report grade',
340 dataIndex : 'report_grade',
341 renderer : function(v) { return String.format('{0}', v); }
344 xtype: 'ColumnModel',
346 header : 'Report loaddate',
348 dataIndex : 'report_loaddate',
349 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
356 xtype: 'LayoutRegion',
360 xtype: 'LayoutRegion',