EAS BOS 刷新编辑界面EditUI方法

此代码段展示了一个受保护的方法refreshCurPage(),用于当编辑数据ID存在时,通过IObjectValue接口从数据库中获取对应的对象值并加载到界面字段中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

protected void refreshCurPage() throws Exception {
    if (this.editData.getId() != null) {
        IObjectPK iObjectPk = new ObjectUuidPK(this.editData.getId());
        IObjectValue iObjectValue = getValue(iObjectPk);
        setDataObject(iObjectValue);
        loadFields();
        setSave(true);
    }
}