1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtupleMetric = new Roo.XComponent({
6 part : ["Xtuple","Metric"],
7 order : '900-Pman.Tab.XtupleMetric',
9 parent : 'Pman.Tab.Admin',
10 name : "unnamed module",
21 activate : function() {
24 _this.grid.footer.onClick('first');
41 if (_this.panel.active) {
42 this.footer.onClick('first');
45 beforeedit : function (e)
47 var r = e.record.data.poitem_qty_received * 1;
50 Roo.MessageBox.alert("Error", "This item has been receipted");
54 var status = _this.form.findField('pohead_status').getValue();
57 Roo.MessageBox.alert("Error", "This PO has been closed");
64 autoExpandColumn : 'metric_value',
71 beforeload : function (_self, o){
72 o.params = o.params || {};
74 var s = _this.searchBox.getValue();
80 o.params['search[name]'] = s;
84 sortInfo : { field : 'metric_name', direction: 'ASC' },
90 url : baseURL + '/Xtuple/Roo/Metric.php'
97 totalProperty : 'total',
104 'name': 'metric_name',
108 'name': 'metric_value',
112 'name': 'metric_module',
126 specialkey : function (_self, e)
128 _this.grid.footer.onClick('first');
130 render : function (_self)
132 _this.searchBox = _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.grid.footer.onClick('first');
\r
159 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
164 xtype: 'PagingToolbar',
167 emptyMsg : "No Metric found",
172 xtype: 'ColumnModel',
174 dataIndex : 'metric_id',
177 renderer : function(v) { return String.format('{0}', v); }
180 xtype: 'ColumnModel',
182 dataIndex : 'metric_name',
185 renderer : function(v) { return String.format('{0}', v); }
188 xtype: 'ColumnModel',
190 dataIndex : 'metric_value',
193 renderer : function(v) { return String.format('{0}', v); }
196 xtype: 'ColumnModel',
198 dataIndex : 'metric_module',
201 renderer : function(v) { return String.format('{0}', v); }