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;
146 click : function (_self, e)
148 _this.grid.footer.onClick('first');
152 icon : rootURL + '/Pman/templates/images/search.gif'
158 click : function (_self, e)
160 _this.searchBox.setValue('');
161 _this.publication_name_combo.setValue('');
162 _this.publication_lang_combo.setValue('');
163 _this.country_combo.setValue('');
164 _this.category_media_id_combo.setValue('');
165 _this.role_combo.setValue('');
168 _this.grid.footer.onClick('first');
172 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
182 cls : 'x-btn-text-icon',
183 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
187 if (!_this.dialog) return;
188 _this.dialog.show( { id : 0 } , function() {
189 _this.grid.footer.onClick('first');
198 xtype: 'ColumnModel',
200 header : 'Report name',
202 dataIndex : 'report_name',
203 renderer : function(v) { return String.format('{0}', v); }
206 xtype: 'ColumnModel',
208 header : 'Report descrip',
210 dataIndex : 'report_descrip',
211 renderer : function(v) { return String.format('{0}', v); }
222 tableName : 'report',
226 activate : function() {
229 _this.grid.footer.onClick('first');
236 autoExpandColumn : 'report_name',
242 //_this.dialog = Pman.Dialog.FILL_IN
243 if (_this.panel.active) {
244 this.footer.onClick('first');
247 rowdblclick : function (_self, rowIndex, e)
249 if (!_this.dialog) return;
250 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
251 _this.grid.footer.onClick('first');
259 sortInfo : { field : 'report_name', direction: 'ASC' },
264 url : baseURL + '/Roo/report.php'
269 totalProperty : 'total',
278 'name': 'report_name',
282 'name': 'report_sys',
286 'name': 'report_source',
290 'name': 'report_descrip',
294 'name': 'report_grade',
298 'name': 'report_loaddate',
300 'dateFormat': 'Y-m-d'
306 xtype: 'PagingToolbar',
310 displayMsg : "Displaying report{0} - {1} of {2}",
311 emptyMsg : "No report found"
315 xtype: 'ColumnModel',
317 header : 'Report grade',
319 dataIndex : 'report_grade',
320 renderer : function(v) { return String.format('{0}', v); }
323 xtype: 'ColumnModel',
325 header : 'Report loaddate',
327 dataIndex : 'report_loaddate',
328 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
335 xtype: 'LayoutRegion',
339 xtype: 'LayoutRegion',