<%@page import="com.forgon.security.model.User"%> <%@page import="com.forgon.disinfectsystem.common.CssdUtils"%> <%@page import="com.forgon.security.service.UserManager"%> <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@page import="com.forgon.tools.SpringBeanManger"%> <%@page import="com.forgon.tools.Constants"%> <%@page import="net.sf.json.JSONObject" %> <%@page import="java.io.File" %> <%@page import="java.util.ArrayList" %> <%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="com.bjgoodwill.jhipwebsvc.JhipSsoWebsvcProxy"%> <%@page import="com.forgon.directory.model.LoginInfo"%> <%@ include file="/common/taglibs.jsp" %> <% ArrayList message = new ArrayList(); String sessionID = request.getParameter("sessionID"); if(StringUtils.isBlank(sessionID)){ String token = request.getParameter("token"); if(StringUtils.isNotBlank(token)){ String cssdDDDL = "_供应室管理系统"; sessionID = token + cssdDDDL; } } if(StringUtils.isNotBlank(sessionID)){ String xmlInput=""+sessionID +""; //String xmlResult="trueadminadmin贺倩"; String xmlResult=new JhipSsoWebsvcProxy().getUserDetailInfo(xmlInput); String userName=null; try{ JSONObject json=(JSONObject)CssdUtils.xml2JsonCommon(xmlResult); String RESULT_SYSTEM_NO=json.optString("RESULT_SYSTEM_NO"); if(RESULT_SYSTEM_NO.trim().equals("true")){ JSONObject RESULT_CONTENT=json.optJSONObject("RESULT_CONTENT"); userName=RESULT_CONTENT.optString("USER_CODE"); if(userName == null || userName.equals("")){ userName=RESULT_CONTENT.optString("USER_LOGIN_NAME"); } if(userName == null){ message.add("xml的格式有误"); } else if(userName.equals("")){ message.add("userName不能为空"); } } else{ message.add("xml的格式有误"); } } catch(Exception e) { message.add("xml的格式有误"); } if(StringUtils.isNotBlank(userName)){ UserManager userManager=(UserManager)SpringBeanManger.getBean("userManager"); User user=userManager.getFirst("name", userName); if(user==null){ message.add("用户:"+userName+"不存在"); }else{ pageContext.setAttribute("barcode", user.getBarcode()); } } }else{ message.add("sessionID不能为空"); } pageContext.setAttribute("message", message); String companyName = CssdUtils.getSystemSetConfigByName("companyName"); String companyNameStr = ""; if(companyName == null || companyName.equals("forgon")){ companyNameStr = "©2016 广州孚峻信息技术有限公司 版权所有"; }else if(companyName.equals("dingxiang")){ companyNameStr = "©2016 广州丁香软件有限公司 版权所有"; } session.setAttribute("companyName", companyNameStr); String project = CssdUtils.getConfigProperty("project"); session.setAttribute("profile", project); String imgPath = "disinfectsystem/config/" + project + "/img/logo_" + project +".png"; //System.out.println(application.getRealPath("/") + imgPath); File file = new File(application.getRealPath("/") + imgPath); if(file.exists()){ request.setAttribute("logoPath",imgPath); }else{ if(companyName == null || companyName.equals("forgon")){ request.setAttribute("logoPath","themes/portalPage/img/logo_Forgon.png"); }else if(companyName.equals("dingxiang")){ request.setAttribute("logoPath","themes/portalPage/img/logo_dingxiangsoft.png"); } } %> 消毒供应质量追溯管理系统 <%-- --%>
账号或密码错误!请重新输入! 验证码错误,请重新输入! 该用户没有回收清点的权限,请重新输入! 注册码不正确或试用期已过!请与管理人员联系! 身份验证接口访问异常,请与系统管理员联系!