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 sortInfo : { field : 'report_name', direction: 'ASC' },
269 url : baseURL + '/Roo/report.php'
274 totalProperty : 'total',
283 'name': 'report_name',
287 'name': 'report_sys',
291 'name': 'report_source',
295 'name': 'report_descrip',
299 'name': 'report_grade',
303 'name': 'report_loaddate',
305 'dateFormat': 'Y-m-d'
311 xtype: 'PagingToolbar',
315 displayMsg : "Displaying report{0} - {1} of {2}",
316 emptyMsg : "No report found"
320 xtype: 'ColumnModel',
322 header : 'Report grade',
324 dataIndex : 'report_grade',
325 renderer : function(v) { return String.format('{0}', v); }
328 xtype: 'ColumnModel',
330 header : 'Report loaddate',
332 dataIndex : 'report_loaddate',
333 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
340 xtype: 'LayoutRegion',
344 xtype: 'LayoutRegion',