{
"SubCompanyID":"285","DepartmentID":"3382","UserName":"运维组02","Loginid":"lzt","UserID":"16630","UserType":"0","Language":"7","Message":"true"}
var userInfor = getCurrentUserInfor(); // 调用js方法
var currentUserID = userInfor.UserID; // 获取用户ID
function getCurrentUserInfor() {
var dataMap = {
};
jQuery.ajax({
url: "/fuli/getSysInforForCurrentUser.jsp?t=" + new Date().getTime(),
data: "",
async: false,
dataType: "json",
contentType: "application/json",
success: function(data) {
dataMap = data; //Message,SubCompanyID,DepartmentID,UserName,Loginid,UserID,UserType,Language
}
});
return dataMap;
}
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="weaver.hrm.*"%>
<%@ page import="weaver.general.*"%>
<%@ page import="net.sf.json.JSONObject"%>
<%@ page import="weaver.conn.RecordSet"%>
<%
RecordSet rs = new RecordSet();
JSONObject json = new JSONObject();
User user = HrmUserVarify.getUser(request , response);
String Message = "flase";
if(user != null){
Message = "true";
json.put( "SubCompanyID" , "" + user.getUserSubCompany1() );
json.put( "DepartmentID" , ""+ user.getUserDepartment() );
json.put( "UserName" , ""+ user.getLastname() );
json.put( "Loginid" , ""+ user.getLoginid() );
json.put( "UserID" , ""+ user.getUID() );
json.put( "UserType" , ""+ user.getType() );
json.put( "Language" , ""+ user.getLanguage() );
}
json.put( "Message" , Message );
out.println(json.toString());
%>
/* */ package weaver.hrm;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.List;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */ import javax.servlet.http.HttpSession;
/* */ import weaver.conn.RecordSet;
/* */ import weaver.general.StaticObj;
/* */ import weaver.general.Util;
/* */ import weaver.hrm.online.HrmUserOnlineMap;
/* */ import weaver.login.LicenseCheckLogin;
/* */ import weaver.systeminfo.setting.HrmUserSettingComInfo;
/* */ import weaver.systeminfo.systemright.CheckUserRight;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class HrmUserVarify
/* */ {
/* */ public static User getUserOld(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
/* */ {
/* 34 */ User localUser = (User)paramHttpServletRequest.getSession(true).getAttribute("weaver_user@bean");
/* 35 */ if (localUser == null)
/* */ {
/* 37 */ String str = Util.getCookie(paramHttpServletRequest, "loginfileweaver");
/* */
/* */
/* */
/* */ try
/* */ {
/* 43 */ if ((Util.null2String(str).equals("")) || (Util.null2String(str).toLowerCase().equals("null"))) {
/* 44 */ paramHttpServletResponse.sendRedirect("/login/Login.jsp");
/* */ } else {
/* 46 */ paramHttpServletResponse.sendRedirect("/Refresh.jsp?loginfile=" + str + "&message=19");
/* */ }
/* */ }
/* */ catch (Exception localException) {
}
/* */ }
/* */
/* */
/* */
/* */
/* 55 */ return localUser;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static User getUser(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
/* */ {
/* 64 */ User localUser = (User)paramHttpServletRequest.getSession(true).getAttribute("weaver_user@bean");
/* 65 */ if (localUser == null) {
/* 66 */ String str1 = Util.getCookie(paramHttpServletRequest, "loginfileweaver");
/* */ try {
/* 68 */ if ((Util.null2String(str1).equals("")) || (Util.null2String(str1).toLowerCase().equals("null"))) {
/* 69 */ paramHttpServletResponse.sendRedirect("/login/Login.jsp");
/* 70 */ return null;
/* */ }
/* 72 */ paramHttpServletResponse.sendRedirect("/Refresh.jsp?loginfile=" + str1 + "&message=19");
/* 73 */ return null;
/* */ }
/* */ catch (Exception localException) {
}
/* */ }
/* */
/* */
/* 79 */ int i = Util.getIntValue(paramHttpServletRequest.getParameter("f_weaver_belongto_userid"), 0);
/* 80 */ int j = Util.getIntValue(paramHttpServletRequest.getParameter("f_weaver_belongto_usertype"), 0);
/* 81 */ RecordSet localRecordSet = new RecordSet();
/* 82 */ if ((localUser != null) && (i != localUser.getUID()) && (i > 0))
/* */ {
/* 84 */ int k = 0;
/* 85 */ String str2 = " SELECT belongto FROM HrmResource WHERE id= " + localUser.getUID();
/* 86 */ localRecordSet.executeSql(str2);
/* 87 */ int m; while (localRecordSet.next()) {
/* 88 */ m = localRecordSet.getInt("belongto");
/* 89 */ if (m == i) {
/* 90 */ k = 1;
/* 91 */ break;
/* */ }
/* */ }
/* */
/* 95 */ str2 = " SELECT id FROM HrmResource WHERE belongto= " + localUser.getUID();
/* 96 */ localRecordSet.executeSql(str2);
/* 97 */ while (localRecordSet.next()) {
/* 98 */ m = localRecordSet.getInt("id");
/* 99 */ if (m == i) {
/* 100 */ k = 1;
/* 101 */ break;
/* */ }
/* */ }
/* */
/* 105 */ if (k != 0) {
localUser = User.getUser(i, j);
/* */ }
/* */ }
/* 108 */ return localUser;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static User getUser(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse, String paramString1, String paramString2)
/* */ {
/* 120 */ return getUser(paramHttpServletRequest, paramHttpServletResponse, Util.getIntValue(paramString1, 0), Util.getIntValue(paramString2, 0));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static User getUser(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse, int paramInt1, int paramInt2)
/* */ {
/* 131 */ User localUser = (User)paramHttpServletRequest.getSession(true).getAttribute("weaver_user@bean");
/* 132 */ if (localUser == null) {
/* 133 */ localObject = Util.getCookie(paramHttpServletRequest, "loginfileweaver");
/* */ try {
/* 135 */ if ((Util.null2String((String)localObject).equals("")) || (Util.null2String((String)localObject).toLowerCase().equals("null"))) {
/* 136 */ paramHttpServletResponse.sendRedirect("/login/Login.jsp");
/* 137 */ return null;
/* */ }
/* 139 */ paramHttpServletResponse.sendRedirect("/Refresh.jsp?loginfile=" + (String)localObject + "&message=19");
/* 140 */ return null;
/* */ }
/* */ catch (Exception localException) {
}
/* */ }
/* */
/* */
/* 146 */ Object localObject = new RecordSet();
/* 147 */ if ((localUser != null) && (paramInt1 != localUser.getUID()) && (paramInt1 > 0))
/* */ {
/* 149 */ int i = 0;
/* 150 */ String str = " SELECT belongto FROM HrmResource WHERE id= " + localUser.getUID();
/* 151 */ ((RecordSet)localObject).executeSql(str);
/* 152 */ int j; while (((RecordSet)localObject).next()) {
/* 153 */ j = ((RecordSet)localObject).getInt("belongto");
/* 154 */ if (j == paramInt1) {
/* 155 */ i = 1;
/* 156 */ break;
/* */ }
/* */ }
/* */
/* 160 */ str = " SELECT id FROM HrmResource WHERE belongto= " + localUser.getUID();
/* 161 */ ((RecordSet)localObject).executeSql(str);
/* 162 */ while (((RecordSet)localObject).next()) {
/* 163 */ j = ((RecordSet)localObject).getInt("id");
/* 164 */ if (j == paramInt1) {
/* 165 */ i = 1;
/* 166 */ break;
/* */ }
/* */ }
/* */
/* 170 */ if (i != 0) {
localUser = User.getUser(paramInt1, paramInt2);
/* */ }
/* */ }
/* 173 */ return localUser;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static User checkUser(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
/* */ {
/* 182 */ User localUser = (User)paramHttpServletRequest.getSession(true).getAttribute("weaver_user@bean");
/* 183 */ return localUser;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static boolean checkUserRight(String paramString, User paramUser)
/* */ {
/* 193 */ if (paramUser.getLoginid().equalsIgnoreCase("sysadmin")) return true;
/* 194 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* 195 */ boolean bool = localCheckUserRight.checkUserRight(paramString, paramUser);
/* */
/* */
/* 198 */ if (!bool) {
/* 199 */ String str = "";
/* */ try {
/* 201 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 202 */ str = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* */
/* 206 */ if (str.equals("1")) {
/* 207 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 208 */ if (localList != null) {
/* 209 */ for (Object localObject : localList) {
/* 210 */ bool = localCheckUserRight.checkUserRight(paramString, (User)localObject);
/* 211 */ if (bool) {
/* */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* */
/* 220 */ return bool;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static String getcheckUserRightUserId(String paramString, User paramUser)
/* */ {
/* 229 */ return getcheckUserRightUserId(paramString, paramUser, true);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static String getcheckUserRightUserId(String paramString, User paramUser, boolean paramBoolean)
/* */ {
/* 239 */ if ((paramBoolean) && (paramUser.getLoginid().equalsIgnoreCase("sysadmin"))) return "1";
/* 240 */ String str1 = "";
/* 241 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* 242 */ boolean bool = localCheckUserRight.checkUserRight(paramString, paramUser);
/* 243 */ if (bool) {
return "" + paramUser.getUID();
/* */ }
/* 245 */ String str2 = "";
/* */ try {
/* 247 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 248 */ str2 = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 251 */ if (str2.equals("1")) {
/* 252 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 253 */ if (localList != null) {
/* 254 */ for (Object localObject : localList) {
/* 255 */ bool = localCheckUserRight.checkUserRight(paramString, (User)localObject);
/* 256 */ if (bool) {
/* 257 */ str1 = "" + ((User)localObject).getUID();
/* 258 */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 264 */ return str1;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static boolean checkUserRightSystemadmin(String paramString, User paramUser)
/* */ {
/* 275 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* */
/* */
/* 278 */ boolean bool = localCheckUserRight.checkUserRight(paramString, paramUser);
/* */
/* */
/* 281 */ if (!bool) {
/* 282 */ String str = "";
/* */ try {
/* 284 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 285 */ str = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 288 */ if (str.equals("1")) {
/* 289 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 290 */ if (localList != null) {
/* 291 */ for (Object localObject : localList) {
/* 292 */ bool = localCheckUserRight.checkUserRight(paramString, (User)localObject);
/* 293 */ if (bool) {
/* */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* */
/* 302 */ return bool;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static String getcheckUserRightSystemadminUserId(String paramString, User paramUser)
/* */ {
/* 311 */ return getcheckUserRightUserId(paramString, paramUser, false);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static boolean checkUserRight(String paramString1, User paramUser, String paramString2)
/* */ {
/* 322 */ if (paramUser.getLoginid().equalsIgnoreCase("sysadmin")) return true;
/* 323 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* */
/* */
/* 326 */ boolean bool = localCheckUserRight.checkUserRight(paramString1, paramUser, paramString2);
/* */
/* */
/* 329 */ if (!bool) {
/* 330 */ String str = "";
/* */ try {
/* 332 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 333 */ str = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 336 */ if (str.equals("1")) {
/* 337 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 338 */ if (localList != null) {
/* 339 */ for (Object localObject : localList) {
/* 340 */ bool = localCheckUserRight.checkUserRight(paramString1, (User)localObject, paramString2);
/* 341 */ if (bool) {
/* */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* */
/* 350 */ return bool;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static String getcheckUserRightUserId(String paramString1, User paramUser, String paramString2)
/* */ {
/* 359 */ String str1 = "";
/* 360 */ if (paramUser.getLoginid().equalsIgnoreCase("sysadmin")) return "1";
/* 361 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* 362 */ boolean bool = localCheckUserRight.checkUserRight(paramString1, paramUser, paramString2);
/* 363 */ if (bool) {
return "" + paramUser.getUID();
/* */ }
/* */
/* 366 */ String str2 = "";
/* */ try {
/* 368 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 369 */ str2 = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 372 */ if (str2.equals("1")) {
/* 373 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 374 */ if (localList != null) {
/* 375 */ for (Object localObject : localList) {
/* 376 */ bool = localCheckUserRight.checkUserRight(paramString1, (User)localObject, paramString2);
/* 377 */ if (bool) {
/* 378 */ str1 = "" + ((User)localObject).getUID();
/* 379 */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 385 */ return str1;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static boolean checkUserRight(String paramString, User paramUser, int paramInt)
/* */ {
/* 396 */ return checkUserRight(paramString, paramUser, "" + paramInt);
/* */ }
/* */
/* */ public static String getcheckUserRightUserId(String paramString, User paramUser, int paramInt) {
/* 400 */ return getcheckUserRightUserId(paramString, paramUser, "" + paramInt);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getRightLevel(String paramString, User paramUser)
/* */ {
/* 411 */ if (paramUser.getLoginid().equalsIgnoreCase("sysadmin")) return "2";
/* 412 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* */
/* */
/* 415 */ String str1 = localCheckUserRight.getRightLevel(paramString, paramUser);
/* 416 */ int i = Util.getIntValue(str1, -1);
/* */
/* 418 */ String str2 = "";
/* */ try {
/* 420 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 421 */ str2 = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 424 */ if (str2.equals("1")) {
/* 425 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 426 */ if (localList != null) {
/* 427 */ for (Object localObject : localList) {
/* 428 */ str1 = localCheckUserRight.getRightLevel(paramString, (User)localObject);
/* 429 */ if (!str1.equals("-1")) {
/* 430 */ int j = Util.getIntValue(str1, -1);
/* 431 */ if (j > i) {
i = j;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 438 */ return "" + i;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String getRightLevel(String paramString1, String paramString2)
/* */ {
/* 448 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* */
/* */
/* 451 */ String str1 = localCheckUserRight.getRightLevel(paramString1, paramString2);
/* 452 */ int i = Util.getIntValue(str1, -1);
/* */
/* */
/* 455 */ String str2 = "";
/* */ try {
/* 457 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 458 */ str2 = localHrmUserSettingComInfo.getBelongtoshowByUserId(paramString1);
/* */ }
/* */ catch (Exception localException) {
}
/* 461 */ if (str2.equals("1")) {
/* 462 */ List localList = User.getBelongtoUsersByUserId(paramString1);
/* 463 */ if (localList != null) {
/* 464 */ for (Object localObject : localList) {
/* 465 */ str1 = localCheckUserRight.getRightLevel(paramString1, (User)localObject);
/* 466 */ if (!str1.equals("-1")) {
/* 467 */ int j = Util.getIntValue(str1, -1);
/* 468 */ if (j > i) {
i = j;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* */
/* 476 */ return "" + i;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean checkUserRight(String paramString1, String paramString2, String paramString3)
/* */ {
/* 487 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* */
/* 489 */ boolean bool = localCheckUserRight.checkUserRight(paramString1, paramString2, paramString3);
/* */
/* */
/* 492 */ if (!bool) {
/* 493 */ String str = "";
/* */ try {
/* 495 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 496 */ str = localHrmUserSettingComInfo.getBelongtoshowByUserId(paramString1);
/* */ }
/* */ catch (Exception localException) {
}
/* 499 */ if (str.equals("1")) {
/* 500 */ List localList = User.getBelongtoUsersByUserId(paramString1);
/* 501 */ if (localList != null) {
/* 502 */ for (Object localObject : localList) {
/* 503 */ bool = localCheckUserRight.checkUserRight("" + ((User)localObject).getUID(), paramString2, paramString3);
/* 504 */ if (bool) {
/* */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 512 */ return bool;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static String getcheckUserRightUserId(String paramString1, String paramString2, String paramString3)
/* */ {
/* 521 */ String str1 = "";
/* 522 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* 523 */ boolean bool = localCheckUserRight.checkUserRight(paramString1, paramString2, paramString3);
/* 524 */ if (bool) {
return "" + paramString1;
/* */ }
/* */
/* 527 */ String str2 = "";
/* */ try {
/* 529 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 530 */ str2 = localHrmUserSettingComInfo.getBelongtoshowByUserId(paramString1);
/* */ } catch (Exception localException) {
}
/* 532 */ if (str2.equals("1")) {
/* 533 */ List localList = User.getBelongtoUsersByUserId(paramString1);
/* 534 */ if (localList != null) {
/* 535 */ for (Object localObject : localList) {
/* 536 */ bool = new CheckUserRight().checkUserRight("" + ((User)localObject).getUID(), paramString2, paramString3);
/* 537 */ if (bool) {
/* 538 */ str1 = "" + ((User)localObject).getUID();
/* 539 */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 545 */ return str1;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean checkUserRole(String paramString1, User paramUser, String paramString2)
/* */ {
/* 556 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* */
/* */
/* 559 */ boolean bool = localCheckUserRight.checkUserRole(paramString1, paramUser, paramString2);
/* */
/* */
/* 562 */ if (!bool) {
/* 563 */ String str = "";
/* */ try {
/* 565 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 566 */ str = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 569 */ if (str.equals("1")) {
/* 570 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 571 */ if (localList != null) {
/* 572 */ for (Object localObject : localList) {
/* 573 */ bool = localCheckUserRight.checkUserRole(paramString1, (User)localObject, paramString2);
/* 574 */ if (bool) {
/* */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 582 */ return bool;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static String getcheckUserRoleUserId(String paramString1, User paramUser, String paramString2)
/* */ {
/* 591 */ String str1 = "";
/* 592 */ CheckUserRight localCheckUserRight = new CheckUserRight();
/* 593 */ boolean bool = localCheckUserRight.checkUserRight(paramString1, paramUser, paramString2);
/* 594 */ if (bool) {
return "" + paramUser.getUID();
/* */ }
/* */
/* 597 */ String str2 = "";
/* */ try {
/* 599 */ HrmUserSettingComInfo localHrmUserSettingComInfo = new HrmUserSettingComInfo();
/* 600 */ str2 = localHrmUserSettingComInfo.getBelongtoshowByUserId("" + paramUser.getUID());
/* */ }
/* */ catch (Exception localException) {
}
/* 603 */ if (str2.equals("1")) {
/* 604 */ List localList = User.getBelongtoUsersByUserId(paramUser.getUID());
/* 605 */ if (localList != null) {
/* 606 */ for (Object localObject : localList) {
/* 607 */ bool = localCheckUserRight.checkUserRight(paramString1, (User)localObject, paramString2);
/* 608 */ if (bool) {
/* 609 */ str1 = "" + ((User)localObject).getUID();
/* 610 */ break;
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 616 */ return str1;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static boolean isUserOnline(String paramString)
/* */ {
/* 627 */ LicenseCheckLogin localLicenseCheckLogin = new LicenseCheckLogin();
/* 628 */ localLicenseCheckLogin.checkOnlineUser();
/* */
/* 630 */ StaticObj localStaticObj = StaticObj.getInstance();
/* 631 */ ArrayList localArrayList = (ArrayList)localStaticObj.getObject("onlineuserids");
/* 632 */ if (localArrayList == null) return false;
/* 633 */ int i = localArrayList.indexOf(paramString);
/* 634 */ if (i == -1) return false;
/* 635 */ return true;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 644 */ public static String getOnlineUserIp(String paramString) {
return HrmUserOnlineMap.getInstance().getClientIpByUidFromClusterMap(paramString); }
/* */
/* */ private static User getUserfromDB(String paramString) {
/* 647 */ RecordSet localRecordSet = new RecordSet();
/* 648 */ User localUser = new User();
/* 649 */ localRecordSet.execute("SELECT id,firstname,lastname,systemlanguage,seclevel FROM HrmResourceManager WHERE loginid='" + paramString + "'");
/* 650 */ if (localRecordSet.next()) {
/* 651 */ localUser.setUid(localRecordSet.getInt("id"));
/* 652 */ localUser.setLoginid(paramString);
/* 653 */ localUser.setFirstname(localRecordSet.getString("firstname"));
/* 654 */ localUser.setLastname(localRecordSet.getString("lastname"));
/* 655 */ localUser.setLanguage(Util.getIntValue(localRecordSet.getString("systemlanguage"), 0));
/* 656 */ localUser.setSeclevel(localRecordSet.getString("seclevel"));
/* 657 */ localUser.setLogintype("1");
/* */ }
/* 659 */ localRecordSet.execute("HrmResource_SelectByLoginID", paramString);
/* 660 */ if (localRecordSet.next()) {
/* 661 */ localUser.setUid(localRecordSet.getInt("id"));
/* 662 */ localUser.setLoginid(paramString);
/* 663 */ localUser.setFirstname(localRecordSet.getString("firstname"));
/* 664 */ localUser.setLastname(localRecordSet.getString("lastname"));
/* 665 */ localUser.setAliasname(localRecordSet.getString("aliasname"));
/* 666 */ localUser.setTitle(localRecordSet.getString("title"));
/* 667 */ localUser.setTitlelocation(localRecordSet.getString("titlelocation"));
/* 668 */ localUser.setSex(localRecordSet.getString("sex"));
/* 669 */ localUser.setLanguage(Util.getIntValue(localRecordSet.getString("systemlanguage"), 0));
/* 670 */ localUser.setTelephone(localRecordSet.getString("telephone"));
/* 671 */ localUser.setMobile(localRecordSet.getString("mobile"));
/* 672 */ localUser.setMobilecall(localRecordSet.getString("mobilecall"));
/* 673 */ localUser.setEmail(localRecordSet.getString("email"));
/* 674 */ localUser.setCountryid(localRecordSet.getString("countryid"));
/* 675 */ localUser.setLocationid(localRecordSet.getString("locationid"));
/* 676 */ localUser.setResourcetype(localRecordSet.getString("resourcetype"));
/* 677 */ localUser.setStartdate(localRecordSet.getString("startdate"));
/* 678 */ localUser.setEnddate(localRecordSet.getString("enddate"));
/* 679 */ localUser.setContractdate(localRecordSet.getString("contractdate"));
/* 680 */ localUser.setJobtitle(localRecordSet.getString("jobtitle"));
/* 681 */ localUser.setJobgroup(localRecordSet.getString("jobgroup"));
/* 682 */ localUser.setJobactivity(localRecordSet.getString("jobactivity"));
/* 683 */ localUser.setJoblevel(localRecordSet.getString("joblevel"));
/* 684 */ localUser.setSeclevel(localRecordSet.getString("seclevel"));
/* 685 */ localUser.setUserDepartment(Util.getIntValue(localRecordSet.getString("departmentid"), 0));
/* 686 */ localUser.setUserSubCompany1(Util.getIntValue(localRecordSet.getString("subcompanyid1"), 0));
/* 687 */ localUser.setUserSubCompany2(Util.getIntValue(localRecordSet.getString("subcompanyid2"), 0));
/* 688 */ localUser.setUserSubCompany3(Util.getIntValue(localRecordSet.getString("subcompanyid3"), 0));
/* 689 */ localUser.setUserSubCompany4(Util.getIntValue(localRecordSet.getString("subcompanyid4"), 0));
/* 690 */ localUser.setManagerid(localRecordSet.getString("managerid"));
/* 691 */ localUser.setAssistantid(localRecordSet.getString("assistantid"));
/* 692 */ localUser.setPurchaselimit(localRecordSet.getString("purchaselimit"));
/* 693 */ localUser.setCurrencyid(localRecordSet.getString("currencyid"));
/* 694 */ localUser.setLastlogindate(localRecordSet.getString("lastlogindate"));
/* 695 */ localUser.setLogintype("1");
/* */ }
/* 697 */ return localUser;
/* */ }
/* */ }
/* Location: C:\Users\Administrator\Desktop\解压包\weaver.zip!\weaver\hrm\HrmUserVarify.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
文章浏览阅读79次。类和对象_c#类中有与类同名的静态成员
文章浏览阅读147次。内存泄漏:由于疏忽或错误造成程序未能释放已经不再使用的内存。内存泄漏并非指内存在物理上的消失,而是应用程序分配某段内存后,由于设计错误,导致在释放该段内存之前就失去了对该段内存的控制,从而造成了内存的浪费。1、意外的全局变量js对未声明变量会在全局最高对象上创建它的引用,(是以属性存在的,而不是变量),如果在游览器上就是window对象,如果在node环境下就是global;如果未声明的变..._javascript内存泄露
文章浏览阅读2.8k次。1.搜索remove.bghttps://www.remove.bg/2.翻译(网站翻译或者谷歌翻译)首页底端3.登陆账号(没注册注册)4.获取密钥4.14.24.34.44.55、查看API5.15.2跳转到GitHubhttps://github.com/brilam/remove-..._removebg
文章浏览阅读9.3k次,点赞4次,收藏36次。之前一直使用前后端配合的方式实现分页效果,即在后台将数据进行分页处理,前端向后端发送页数参数,单独的请求某一页的数据。目前在数据量不是很大的基础上要实现js纯前端分页,找了几个插件没有很好的解决方案,最后参照网络博客使用js实现。说明:在调研过程中参考了一位大神的博客,但是忘记了博客链接,部分代码直接来自于该博客。_纯js前端实现分页代码
文章浏览阅读2.4k次。在Windows环境下,使用Qt Creator开发Qt过程中一定会遇到调试问题。如何在Qt Creator里面单步调试呢?一般来说,我们开发Qt应用程序,都会使用QtCreator,QtCreator默认为Qt和C++的开发提供了很多帮助,尤其是集成的帮助、提示,和代码跳转。但是,当进行代码调试的时候,就不如VisualStudio方便了。(我会告诉你们,当博主精神状态不好的时候,写代码,单..._qt 调试器 debugger for windows 10
文章浏览阅读1w次。根据官网给出的例子,自己写了个总是调用不成功。以下是官网例子代码:http://docs.oracle.com/javase/8/javafx/embedded-browser-tutorial/js-javafx.htmimport javafx.application.Application;import javafx.application.Platform;import j_javafx html script不加载
文章浏览阅读1.4k次。点击“技术领导力”关注∆每天早上8:30推送来源:孤独大脑一人生难料,世事无常,大多是“原因”和“结果”之间的纠缠。故事A某地空气极好,但是当地死于呼吸系统疾病的患者数量,却名列全国..._原因的原因不是原因
文章浏览阅读470次。1、开始—>所有程序—>MicrosoftSQLServer2005—>配置工具—>SQLServer外围应用配置器—>功能的外围应用配置器—>实例名—>DatabaseEngine—>即席远程查询—>启用OpenRowset和OpenDatasource支持。2.代码启用启用:execsp_con..._mysql openrowset
文章浏览阅读824次。加载阿里矢量图标除了使用class与svg,我们也可以使用attr加载使用unicodecss3函数var,calc,attr的使用使用css的attr特性简单实现计数器的效果本文示例code example[4]最近找到一个VUE的文档,它将VUE的各个知识点进行了总结,整理成了《Vue 开发必须知道的36个技巧》。内容比较详实,对各个知识点的讲解也十分到位。_svg图片的unicode
文章浏览阅读5.4k次,点赞7次,收藏18次。今天买了块esp32版,买回来后,按着官方提供的视频去安装好 arduino,结果烧录上去,一直提示connecting中,第一反应,是不是版子坏了?去联系了某宝客服,由于时间太晚,客服爱回不回的样子。那只能去官方交流群问问了,结果也是好久才有人回答。群友的回答是:用g0口接地,后来下载成功了。高兴的在群里发了一个红包。这个就和node mcu,stm32版子有所不同了,这些版子boot都默认用跳线帮接地了。接着我百度了一下,有三种方法下载1、用g0口接地。2、下载时,一直按_esp32每次烧录都要按boot
文章浏览阅读494次。小程序路由传参,参数转换报错:SyntaxError: Unexpected end of JSON input原因:小程序路由传参对参数长度有限制,当传递的参数超出限制时,会被截取。//item为要传递的对象wx.navigateTo({ url: '/XX?item=' + JSON.stringify(item) })onLoad(options){ //options是接收的item参数 ,此时的item参数由于长度超出限度,已经被截取 console.log_unterminated string in json at position 10
文章浏览阅读125次。zookeeper+kafka集群部署+storm集群一、环境安装前准备:准备三台机器操作系统:centos6.8jdk:jdk-8u111-linux-x64.gzzookeeper:zookeeper-3.4.11.tar.gzkafka: kafka_2.11-1.0.1.tgzstorm:apache-storm-1.2.2.tar.gz配置/etc/hosts(三台..._大数据 集群 hadoop strom集群zookeeper配置