首页 > 代码库 > editGrid分录表格

editGrid分录表格

 waf("分录id").wafGrid("setCellEditorAllConfig", "字段名", "filteritem", "过滤条件", 
"wafPromptStandard", null);
或
waf("分录id").wafGrid("getColumnConfig", "city").editoptions.subTagJson.filteritem = "过滤条件" ;
或
waf("分录id").wafGrid("getColumnConfig", "字段名").editoptions.subTagJson.filteritem = "过滤条件" ; ?


//加数据
var datarow = {customerNames:data[customerNames],room:{id:data[room.id],name:data[room.name]},building:{id:data[building.id],name:data[building.name]},
     moneyDefine:{id:data[moneyDefine.id],name:data[moneyDefine.name]},actRevAmount:data[signPayListEntry.actRevAmount],appAmount:data[signPayListEntry.appAmount],
     markOutAmount:data[signPayListEntry.appAmount],sourcebillid:data[id]};
 if(data[signPayListEntry.appAmount]){
     markOutAmountTotal += parseFloat(data[signPayListEntry.appAmount]);
 }

 $("#editGrid").wafGrid(addRow,{data:datarow});
 
 
 //设置分录表格的属性
 waf("#list2").wafGrid("setColumnProp","amount","sortable",false);

//隐藏一列
waf("#editGrid").wafGrid("hideCloumn","列的绑定属性名",true);

 

editGrid分录表格