示例#1
0
 @Override
 public void create() {
   Position entity = new Position();
   entity.setStatus("N");
   entity.setCreator(userManagedBean.getUserid());
   entity.setCredate(userManagedBean.getDate());
   entity.setOptuser(userManagedBean.getUserid());
   entity.setOptdate(userManagedBean.getDate());
   setNewPosition(entity);
 }
示例#2
0
 @Override
 public void verify() {
   if (getCurrentPosition() != null) {
     try {
       getCurrentPosition().setStatus("V");
       getCurrentPosition().setCfmuser(userManagedBean.getUserid());
       getCurrentPosition().setCfmdate(userManagedBean.getDate());
       positionSessionBean.update(getCurrentPosition());
     } catch (Exception e) {
       FacesContext.getCurrentInstance().addMessage("msg", new FacesMessage(e.getMessage()));
       throw new Error(e.getLocalizedMessage());
     }
     // init();
   }
 }