// 修改领导密码用户密码 public boolean setPassword(String pwd) { try { String strSql = "update " + strTableName + " set strDepart='" + Format.enPass(pwd) + "' where strUserId='" + globa.loginName + "'"; db.executeUpdate(strSql); UserSession userSession = globa.userSession; userSession.setStrPWD(pwd); globa.session.setAttribute(com.ejoysoft.common.Constants.USER_KEY, userSession); return true; } catch (Exception e) { e.printStackTrace(); return false; } }