Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
37cf42bb
Commit
37cf42bb
authored
Sep 11, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
80a0bad5
3f7172ba
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
123 additions
and
8 deletions
+123
-8
Iplat4jUtils.java
src/main/java/com/baosight/hggp/core/utils/Iplat4jUtils.java
+6
-6
ServiceHGSC101.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
+1
-1
hpjx-logo.png
src/main/resources/META-INF/resources/hpjx-logo.png
+0
-0
iPlatV7-login.js
src/main/resources/META-INF/resources/iPlatV7-login.js
+0
-0
iPlatV7-login.jsp
src/main/resources/META-INF/resources/iPlatV7-login.jsp
+1
-1
index.jsp
src/main/resources/META-INF/resources/index.jsp
+0
-0
login.jsp
src/main/resources/META-INF/resources/login.jsp
+115
-0
No files found.
src/main/java/com/baosight/hggp/core/utils/Iplat4jUtils.java
View file @
37cf42bb
...
...
@@ -63,14 +63,14 @@ public class Iplat4jUtils {
* @return
*/
public
static
Map
getDoc02ById
(
String
docId
)
{
Map
d
bDm02
=
Iplat4jTools
.
EuDm02
.
getByDocId
(
docId
);
if
(
MapUtils
.
isEmpty
(
d
bDm02
))
{
Map
d
ocument
=
platFileUploader
.
getDocument
(
docId
);
if
(
MapUtils
.
isEmpty
(
d
ocument
))
{
return
null
;
}
String
chgName
=
d
bDm02
.
get
(
"chgName"
).
toString
();
String
docPath
=
d
bDm02
.
get
(
"realPath"
).
toString
();
d
bDm02
.
put
(
"url"
,
docPath
+
"/"
+
chgName
);
return
d
bDm02
;
String
chgName
=
d
ocument
.
get
(
"chgName"
).
toString
();
String
docPath
=
d
ocument
.
get
(
"realPath"
).
toString
();
d
ocument
.
put
(
"url"
,
docPath
+
"/"
+
chgName
);
return
d
ocument
;
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
View file @
37cf42bb
...
...
@@ -162,7 +162,7 @@ public class ServiceHGSC101 extends ServiceEPBase {
Map
updateMap
=
new
HashMap
();
updateMap
.
put
(
HGSC001
.
FIELD_proj_code
,
projCode
);
updateMap
.
put
(
HGSC001
.
FIELD_proj_name
,
dcContractList
.
getTitle
());
DaoUtils
.
insert
(
HgScSqlConstant
.
HgSc001
.
UPDATE_PROJ_NAME
,
dbSc001
);
DaoUtils
.
update
(
HgScSqlConstant
.
HgSc001
.
UPDATE_PROJ_NAME
,
dbSc001
);
}
}
}
...
...
src/main/resources/META-INF/resources/hpjx-logo.png
deleted
100644 → 0
View file @
80a0bad5
5.43 KB
src/main/resources/META-INF/resources/iPlatV
6
-login.js
→
src/main/resources/META-INF/resources/iPlatV
7
-login.js
View file @
37cf42bb
File moved
src/main/resources/META-INF/resources/iPlatV
6
-login.jsp
→
src/main/resources/META-INF/resources/iPlatV
7
-login.jsp
View file @
37cf42bb
...
...
@@ -132,7 +132,7 @@
<script src="${iPlatStaticURL}/iplatui/assets/js/polyfills/iplat.ui.ie8.polyfills.min.js"></script>
<![endif]-->
<script
src=
"${iPlatStaticURL}/iPlatV
6
-login.js"
></script>
<script
src=
"${iPlatStaticURL}/iPlatV
7
-login.js"
></script>
<
%
--
引入
RSA
加密
js--
%
>
<script
src=
"${iPlatStaticURL}/iplatui/js/jsencrypt.js"
></script>
<
%
...
...
src/main/
webapp
/index.jsp
→
src/main/
resources/META-INF/resources
/index.jsp
View file @
37cf42bb
File moved
src/main/resources/META-INF/resources/login.jsp
0 → 100644
View file @
37cf42bb
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="com.baosight.iplat4j.core.FrameworkInfo" %>
<%@ page import="java.io.File" %>
<%
String domain = FrameworkInfo.getProjectAppTopDomain();
if (domain != null && domain.startsWith(".")) {
domain = domain.substring(1);
%>
<script type="text/javascript">
try {
document.domain = '<%= domain %>';
} catch (ex) {
alert('model not valid[<%= domain %>]');
}
</script>
<%
}
%>
<%
String directmode = request.getParameter("maintain") != null ? request.getParameter("maintain").toString() : "";
RequestDispatcher rd;
String appName = FrameworkInfo.getProjectAppName();
org.springframework.security.core.context.SecurityContextHolder.clearContext();
session.setAttribute("iplat.logout", "1");
session.invalidate();
String entryChoice = FrameworkInfo.getText("entryChoice");
String url = "/DispatchAction.do?efFormEname=ECTM40&nodeId=0000000099999999&nodeType=s&templateType=0";
if (entryChoice.equals("template")) {
//从模板进入登录页面
rd = request.getRequestDispatcher(url);
try {
rd.forward(request, response);
} catch (ServletException e1) {
e1.printStackTrace();
} finally {
out.clear();
out = pageContext.pushBody();
}
} else if (entryChoice.equals("static")) {
// 从静态页面进入登录页面
// 判断缓存文件是否存在
String requestURL = request.getRequestURL().toString();
String _url = requestURL.substring(0, requestURL.indexOf(request.getContextPath())) + request.getContextPath();
String _urlHtml = "/login.html";
java.io.File file = new java.io.File(request.getRealPath("") + _urlHtml);
if (!file.exists()) {
//生成对应的html静态文件
try {
//+url;
java.io.FileOutputStream blankFile = new java.io.FileOutputStream(request.getRealPath("") + _urlHtml);
blankFile.write(new byte[0]);
java.net.URL requestUrl = new java.net.URL(_url);
System.out.println(_url);
java.net.HttpURLConnection con = (java.net.HttpURLConnection) requestUrl.openConnection();
con.connect();
java.io.FileOutputStream fileout = new java.io.FileOutputStream(request.getRealPath("") + _urlHtml);
byte[] bytes = new byte[1024];
int len = 0;
while ((len = con.getInputStream().read(bytes)) != -1) {
fileout.write(bytes, 0, len);
}
} catch (Exception e) {
e.printStackTrace();
out.print("生成静态html文件出错!");
}
}
File _file = new File(request.getRealPath("") + _urlHtml);
if (_file.length() == 0) {
rd = request.getRequestDispatcher(url);
try {
rd.forward(request, response);
} catch (ServletException e1) {
e1.printStackTrace();
} finally {
out.clear();
out = pageContext.pushBody();
}
} else {
response.sendRedirect(request.getContextPath() + _urlHtml);
}
} else {
//以正常方式进入登录首页
rd = request.getRequestDispatcher("iPlatV7-login.jsp");
try {
rd.forward(request, response);
} catch (ServletException e1) {
e1.printStackTrace();
} finally {
out.clear();
out = pageContext.pushBody();
}
}
%>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment