关于Ext.grid.ColumnModel
extjs吧
全部回复
仅看楼主
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
level 1
binisvip 楼主
我想在id : 'bodescribe' 的单元格中 输出 jsonData.plist[0].madescribe;的值 可是不知道怎么做啊 求解
2015年05月04日 11点05分 2
level 1
给楼主顶一个。
哥苦逼上班族一个,吐吐槽,天天拿着白菜的工资,操着白粉的心,哎。。。
广州奋斗了五六年还是买不起房,女朋友家里一直在催,压力山大。。。
昨天朋友给我推荐了个盘,说花都有个很牛叉的盘-自由人花园,
不知道是不是忽悠我 ,周末打算去看房了,万能的吧友,帮我看下这个盘值不值??!
http://fang.siyongad.com/gd/201504/zyr/index.html?tieba
2015年05月04日 11点05分 3
1