假设 DW名称为 dw_1,计算列名称为 compute_1 电费字段名称为 dianfei,在dw_1的itemchanged事件中增加代码 dec ldec_dianfeiaccepttext()if dwo.name="compute_1" then ldec_dianfei = getitemnumber(row,"compute_1") SetItem(row,"dianfei",ldec_dianfei)end if