12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%@ page import="com.sgcc.isc.ualogin.client.util.IscSSOResourceUtil" %>
- <%@ page import="com.sgcc.isc.ualogin.client.vo.IscSSOUser" %>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- IscSSOUser userbean = IscSSOResourceUtil.getIscUser (request);
- System.out.println("用户ID号:"+ userbean.getUserId ());
- System.out.println("用户登录名:"+ userbean.getAccount());
- System.out.println("用户中文名:"+ userbean.getName());
- System.out.println("用户组织id:"+ userbean.getOrgId());
- System.out.println("用户登录时间:"+ userbean.getLoginTime());
- System.out.println("用户Ticket:"+ userbean.getTicket());
- String Ticket = userbean.getTicket();
- String loginName = userbean.getAccount();
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/json2.js"></script>
- <script type="text/javascript" >
- function login() {
- //window.location="/nwyj/page/frameWork.html";
- var loginName = '<%=loginName%>';
- var Ticket = '<%=Ticket%>';
- //登录处理
- $.ajax({
- type: "POST",
- url:"/nwyj/ws/sys/LoginService/Login",
- data: {"username":loginName},
- success: function(data){
- if(!!data && data.LoginInfo.st == 0){
- window.name = JSON.stringify(data)+'$#$'+Ticket;
- //window.name = eval('(' + data + ')');
- window.location="/nwyj/page/frameWork.html";
-
- }else{
- alert("此用户或密码未通过应急指挥平台认证,请联系管理员。");
- window.location="/nwyj/404.jsp";
- }
- }
- });
-
- }
- </script>
- </head>
-
- <body onload="login()">
-
- </body>
- </html>
|