Package org.opencustomer.framework.db.vo

Examples of org.opencustomer.framework.db.vo.StampedVO


                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);
                }
            }
           
View Full Code Here

TOP

Related Classes of org.opencustomer.framework.db.vo.StampedVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.