关于Bos 开发中使用字段类型是选择已有基础资料的的源代码

来源:互联网 发布:程序员加薪申请 编辑:程序博客网 时间:2024/06/04 19:18
    public void kdtPerson_Changed(int rowIndex, int colIndex) throws Exception {
        if ("number".equalsIgnoreCase(kdtPerson.getColumn(colIndex).getKey())) {
            String name=(com.kingdee.bos.ui.face.UIRuleUtil
                    .getString(com.kingdee.bos.ui.face.UIRuleUtil.getProperty(
                            (com.kingdee.bos.dao.IObjectValue) kdtPerson
                                    .getCell(rowIndex, "number").getValue(),
                            "name")));
            kdtPerson.getCell(rowIndex, "name").setValue(name);
        }

    }