var itemNms_combox = createItemNmscomboxs(root,null,"itemNm","itemNm",unitNm);
??? ??? var _g_record = {};
??? ??? itemNms_combox.on("select",function(itemNms_combox,record,index){
??? ??? ??? _g_record.set("itemNm",record.get("itemNm"));
??? ??? ??? _g_record.set("itemCd",record.get("itemCd"));
??? ??? ??? _g_record.set("unit",record.get("unit"));
??? ??? ??? _g_record.set("stds",record.get("stds"));
??? ??? });
?
columns: [
??? ??? ??? ??? sm,
??? ??? ??? ??? new Ext.grid.RowNumberer(),
??? ??? ??? ??? /**
??? ??? ??? ??? ?{
??? ??? ??? ??? ??? id:'recId',
??? ??? ??? ??? ??? header: '<%=ChargeApplyItem.ALIAS_REC_ID%>',
??? ??? ??? ??? ??? dataIndex: 'recId',
??? ??? ??? ??? ??? editor:? new Ext.form.NumberField({
??? ??? ??? ??? ??? ??? ?allowBlank: false
??? ??? ??? ??? ??? }),
??? ??? ??? ??? ??? width: 150
??? ??? ??? ??? }
??? ??? ??? ??? ,
??? ??? ??? ??? ??? {
??? ??? ??? ??? ??? id:'licenceCd',
??? ??? ??? ??? ??? header: '<%=ChargeApplyItem.ALIAS_LICENCE_CD%>',
??? ??? ??? ??? ??? dataIndex: 'licenceCd',
??? ??? ??? ??? ??? editor:? new Ext.form.TextField({
??? ??? ??? ??? ??? ??? ?allowBlank: false
??? ??? ??? ??? ??? }),
??? ??? ??? ??? ??? width: 150
??? ??? ??? ??? }
??? ??? ??? ??? ,
??? ??? ??? ??? ??? {
??? ??? ??? ??? ??? id:'itemCd',
??? ??? ??? ??? ??? header: '<%=ChargeApplyItem.ALIAS_ITEM_CD%>',
??? ??? ??? ??? ??? dataIndex: 'itemCd',
??? ??? ??? ??? ??? editor:? new Ext.form.TextField({
??? ??? ??? ??? ??? ??? ?allowBlank: false
??? ??? ??? ??? ??? }),
??? ??? ??? ??? ??? width: 150
??? ??? ??? ??? }
??? ??? ??? ??? ,
??? ??? ??? ??? ??? */
??? ???
??? ??? ??? ???
??? ??? ??? ??? {
??? ??? ??? ??? ??? id:'itemNm',
??? ??? ??? ??? ??? header: '<%=ChargeApplyItem.ALIAS_ITEM_NM%>',
??? ??? ??? ??? ??? dataIndex: 'itemNm',
??? ??? ??? ??? ??? editor: itemNms_combox,
??? ??? ??? ??? ??? width: 150
??? ??? ??? ??? }
//.....
?
?//编辑前把当前行加入
??? ??? grid.on("beforeEdit",beforeEdit,grid);
??? ???
??? ??? //编辑后动作函数
??? ??? function afterEdit(obj){?
??? ??? ??? var record=obj.record;
??? ??? ??? var field = obj.field;
??? ??? }
??? ??? grid.on("afterEdit",afterEdit,grid);