ownerUser = new UserDAO().getById(ea.getOwnerUser());
panel.setAttribute("system_ownerUser", ownerUser);
}
if(ea instanceof StampedVO) {
StampedVO vo = (StampedVO)ea;
panel.setAttribute("system_isStamped", Boolean.TRUE);
if(panel.getAttribute("system_createUser") == null && vo.getCreateUser() != null && vo.getCreateUser() > 0) {
UserVO user = null;
if(vo.getCreateUser().equals(ea.getOwnerUser())) {
user = ownerUser;
} else {
user = new UserDAO().getById(vo.getCreateUser());
}
panel.setAttribute("system_createUser", user);
}
if(panel.getAttribute("system_modifyUser") == null && vo.getModifyUser() != null && vo.getModifyUser() > 0) {
UserVO user = null;
if(vo.getModifyUser().equals(ea.getOwnerUser())) {
user = ownerUser;
} else if(vo.getModifyUser().equals(vo.getCreateUser())) {
user = ownerUser;
} else {
user = new UserDAO().getById(vo.getModifyUser());
}
panel.setAttribute("system_modifyUser", user);
}
}