Package net.caece.pri.hibernate.vo

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


        }
    }

    public void onCreate() {
       
        UserInfo userInfo = (UserInfo)Sessions.getCurrent().getAttribute("userInfo");
        if(userInfo != null){
            operateBy = userInfo.getUserName();
        }

    }
View Full Code Here


        Label orgNameLabel = (Label) this.getFellow("orgName");
        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) {
View Full Code Here

        para.put("account", account);
        para.put("password", Utility.getInstance().md5(password));

        //  get Login UserInfo
        SqlSession session = IBatisFactory.getInstance().getSqlSession();
        UserInfo userInfo = (UserInfo) session.selectOne("Login.searchUserInfo", para);

        if (userInfo == null) {
            try {
                Messagebox.show("輸入的使用者帳戶或密碼有錯", "錯誤的資料", Messagebox.RETRY, Messagebox.ERROR);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return;
        } else {
            logger.debug("User's company org id: " + " (" + userInfo.getOrgId() + ")  and user's id:"+userInfo.getUserId());

            this.getDesktop().getSession().setAttribute("userInfo", userInfo);
        }

        // get User's dutyInfo
        session = IBatisFactory.getInstance().getSqlSession();
        List dutyInfoList = session.selectList("Login.searchDutyInfo", userInfo.getUserId());

        if (dutyInfoList == null || dutyInfoList.size() ==0) {
            logger.info("There is no available dutyInfo ");
            try {
                Messagebox.show("該使用者無可用的 " + "" + " 權限身份", "錯誤的資料", Messagebox.RETRY, Messagebox.ERROR);
View Full Code Here

TOP

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

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.