Package net.caece.pri.hibernate.vo

Examples of net.caece.pri.hibernate.vo.DutyInfo


        Label roleNameLabel = (Label) this.getFellow("roleName");
        Label userNameLabel = (Label) this.getFellow("userName");

        UserInfo userInfo = (UserInfo) Sessions.getCurrent().getAttribute("userInfo");
        List dutyInfoList = (List) Sessions.getCurrent().getAttribute("dutyInfoList");
        DutyInfo dutyInfo = (DutyInfo) dutyInfoList.get(0);
        System.out.println("auth type id===============:" + dutyInfo.getTypeId() + " " + dutyInfo.getAuthName());
        orgNameLabel.setValue(userInfo.getOrgName());
        userNameLabel.setValue(userInfo.getUserName());
        roleNameLabel.setValue(dutyInfo.getAuthName());

        SqlSession session = IBatisFactory.getInstance().getSqlSession();

        if (funFormList == null) {
            funFormList = session.selectList("Login.getFunAuth", new Integer(dutyInfo.getTypeId()));
        }

        logger.debug("funFormList size: " + funFormList.size() + " has saved to session");

        // show the function
View Full Code Here


            // save data into session
            Sessions.getCurrent().setAttribute("userInfo", userInfo);
            Sessions.getCurrent().setAttribute("dutyInfoList", dutyInfoList);

            for(int i=0; i< dutyInfoList.size(); i++){
                DutyInfo dutyInfo = (DutyInfo)dutyInfoList.get(i);
                System.out.println("auth type id:"+dutyInfo.getTypeId()+" "+dutyInfo.getAuthName());

            }


            // redirect to main page
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.vo.DutyInfo

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.