在EditUI类里面刷新单据数据:
/**
* 重新刷新数据
*
*/
public void refreshSelf() {
try {
ObjectUuidPK pk = new ObjectUuidPK(editData.getId());
IObjectValue objValue = getValue(pk);
setDataObject(objValue);
loadFields();
getUIContext().put("ID", pk);
getUIContext().put("InitDataObject", objValue);
} catch (Exception e) {
handUIException(e);
}
}