level 1
binisvip
楼主
this.itemCm = new Ext.grid.ColumnModel({
defaultSortable : true,
columns : [new Ext.grid.RowNumberer(), this.itemSm,
{id : 'pid',header : 'pid',dataIndex : 'pid',hidden : true},
{id : 'boid',header : '物料编号',dataIndex : 'boid',width : 180,editor : new MEM_QueryTrigger({
grid : ME, listeners: {
specialkey: function(grid,rowIndex,columnIndex,e){
gridWirteBackName
var currentNO = this.getValue().toUpperCase();
if(currentNO==''||currentNO==undefined){
self.parent.msgWindow("请输入物料编号!");
return;
};
Ext.Ajax.request({
url : 'base.do?action=Sfcorder',
method : 'post',
params : {
boid : currentNO
},
success : function(response, options) {
var jsonData = Ext.decode(response.responseText);
if (jsonData.success && jsonData.plist[0] != null) {
//原材料描述
var id = jsonData.plist[0].madescribe;
//这里将值存放到原价描述表格
self.parent.msgWindow("成功了" );
} else {
self.parent.msgWindow("失败了");
}
},
failure : function(response, options) {
//ME.centerPanel.hide();
self.parent.msgWindow("程序或者网络故障!");
}
});
}
}
//readOnly : true
})},
{id : 'bodescribe',header : '原材描述',dataIndex : 'bodescribe',width : 180,editor : new MaxLengthTextField({readOnly : true})},
{id : 'bowidth',header : '整宽(MM)',dataIndex : 'bowidth',width : 100,editor : new Ext.form.NumberField({readOnly : true,allowBlank : false})},
{id : 'bolength',header : '整长(MM)',dataIndex : 'bolength',width : 100,editor : new Ext.form.NumberField({readOnly : true,allowBlank : false})},
{id : 'rouleauwi',header : '小卷宽(MM)',dataIndex : 'rouleauwi',width : 100,editor : new Ext.form.NumberField({allowBlank : false})},
{id : 'rouleaule',header : '小卷长(MM)',dataIndex : 'rouleaule',width : 100,editor : new Ext.form.NumberField({allowBlank : false})},
{id : 'bonumber',header : '投料并发数',dataIndex : 'bonumber',width : 100,editor : new Ext.form.NumberField({allowBlank : false})},
{id : 'bowastage',header : '制程损耗(%)',dataIndex : 'bowastage',width : 100,editor : new Ext.form.NumberField({allowBlank : false})}
]
2015年05月04日 11点05分
1
defaultSortable : true,
columns : [new Ext.grid.RowNumberer(), this.itemSm,
{id : 'pid',header : 'pid',dataIndex : 'pid',hidden : true},
{id : 'boid',header : '物料编号',dataIndex : 'boid',width : 180,editor : new MEM_QueryTrigger({
grid : ME, listeners: {
specialkey: function(grid,rowIndex,columnIndex,e){
gridWirteBackName
var currentNO = this.getValue().toUpperCase();
if(currentNO==''||currentNO==undefined){
self.parent.msgWindow("请输入物料编号!");
return;
};
Ext.Ajax.request({
url : 'base.do?action=Sfcorder',
method : 'post',
params : {
boid : currentNO
},
success : function(response, options) {
var jsonData = Ext.decode(response.responseText);
if (jsonData.success && jsonData.plist[0] != null) {
//原材料描述
var id = jsonData.plist[0].madescribe;
//这里将值存放到原价描述表格
self.parent.msgWindow("成功了" );
} else {
self.parent.msgWindow("失败了");
}
},
failure : function(response, options) {
//ME.centerPanel.hide();
self.parent.msgWindow("程序或者网络故障!");
}
});
}
}
//readOnly : true
})},
{id : 'bodescribe',header : '原材描述',dataIndex : 'bodescribe',width : 180,editor : new MaxLengthTextField({readOnly : true})},
{id : 'bowidth',header : '整宽(MM)',dataIndex : 'bowidth',width : 100,editor : new Ext.form.NumberField({readOnly : true,allowBlank : false})},
{id : 'bolength',header : '整长(MM)',dataIndex : 'bolength',width : 100,editor : new Ext.form.NumberField({readOnly : true,allowBlank : false})},
{id : 'rouleauwi',header : '小卷宽(MM)',dataIndex : 'rouleauwi',width : 100,editor : new Ext.form.NumberField({allowBlank : false})},
{id : 'rouleaule',header : '小卷长(MM)',dataIndex : 'rouleaule',width : 100,editor : new Ext.form.NumberField({allowBlank : false})},
{id : 'bonumber',header : '投料并发数',dataIndex : 'bonumber',width : 100,editor : new Ext.form.NumberField({allowBlank : false})},
{id : 'bowastage',header : '制程损耗(%)',dataIndex : 'bowastage',width : 100,editor : new Ext.form.NumberField({allowBlank : false})}
]