Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV4platform
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
管理员
jfV4platform
Commits
bb10bde1
Commit
bb10bde1
authored
Aug 08, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乱码
parent
ecd68c96
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
24 deletions
+34
-24
unitTab.js
WebContent/jwapp/pages/unit/js/unitTab.js
+0
-0
unitDetail.jsp
WebContent/jwapp/pages/unit/unitDetail.jsp
+14
-0
dzzd.xls
WebContent/uploadFile/apps/compare/dzzd.xls
+0
-0
PushDataUtils.java
src_jwapp/com/jw/app/pushData/util/PushDataUtils.java
+1
-0
actAction.java
src_jwapp/com/jw/app/unit/action/actAction.java
+11
-16
actAction.java
src_jwapp/com/jw/app/user/action/actAction.java
+8
-8
No files found.
WebContent/jwapp/pages/unit/js/unitTab.js
View file @
bb10bde1
This diff is collapsed.
Click to expand it.
WebContent/jwapp/pages/unit/unitDetail.jsp
View file @
bb10bde1
...
...
@@ -19,6 +19,20 @@
</td>
</tr>
<tr>
<td style="width: 10%" class="tableStyleLable">
<span>英文名称:</span>
</td>
<td style="width: 40%">
<input class="easyui-textbox" id="NAME_EN" name="FIELD_NAME_EN" data-options="required:true" style="width:98%" value="${is_row.NAME_EN}"/>
</td>
<td style="width: 10%" class="tableStyleLable">
<span>英文简称:</span>
</td>
<td style="width: 40%">
<input class="easyui-textbox" id="NAME_ABBR" name="FIELD_NAME_ABBR" data-options="required:true" style="width:98%" value="${is_row.NAME_ABBR}"/>
</td>
</tr>
<tr>
<td class="tableStyleLable">
<span>上级单位:</span>
</td>
...
...
WebContent/uploadFile/apps/compare/
对照字典
.xls
→
WebContent/uploadFile/apps/compare/
dzzd
.xls
View file @
bb10bde1
File moved
src_jwapp/com/jw/app/pushData/util/PushDataUtils.java
View file @
bb10bde1
...
...
@@ -85,6 +85,7 @@ public class PushDataUtils {
dataMap
.
put
(
"DELETE_FLAG"
,
data
.
get
(
"DELETE_FLAG"
));
dataMap
.
put
(
"PARENT_UNITID"
,
data
.
get
(
"PARENT_UNITID"
));
dataMap
.
put
(
"UNIT_PATH"
,
data
.
get
(
"UNIT_PATH"
));
dataMap
.
put
(
"NAME_EN"
,
data
.
get
(
"NAME_EN"
));
dataMap
.
put
(
"NAME_ABBR"
,
data
.
get
(
"NAME_ABBR"
));
// List<Map<String,Object>> listData = new ArrayList<Map<String,Object>>();
// listData.add(dataMap);
JSONObject
jsonObject
=
new
JSONObject
();
...
...
src_jwapp/com/jw/app/unit/action/actAction.java
View file @
bb10bde1
...
...
@@ -832,6 +832,7 @@ public class actAction extends BasicAction {
th.start();*/
PushDataUtils
pd
=
new
PushDataUtils
();
String
jsondata
=
pd
.
getPushUnitData
(
data
);
System
.
out
.
println
(
"-------data"
+
jsondata
);
//推送加密字段判断
if
(
url
.
get
(
"PUSH_ENCRYPT"
)
==
null
||
url
.
get
(
"PUSH_ENCRYPT"
).
toString
().
equals
(
"0"
)){
//不加密
...
...
@@ -857,12 +858,18 @@ public class actAction extends BasicAction {
(
String
)
url
.
get
(
"PUSH_PASS"
),
jsondata
,
(
String
)
url
.
get
(
"PUSH_UNIT_URL"
),
(
String
)
url
.
get
(
"PUSH_ENCODE"
));
System
.
out
.
println
(
"输出: 推送的url:"
+
url
.
get
(
"PUSH_URL"
));
System
.
out
.
println
(
"输出: 推送的url:"
+
url
.
get
(
"PUSH_U
NIT_U
RL"
));
Map
<
String
,
Object
>
m
=
null
;
int
is_name
=
0
;
if
(
ret
!=
null
&&
ret
.
trim
().
length
()
>
0
)
{
m
=
jsonFormatMap
.
getMap
(
ret
);
if
(
m
.
get
(
"NAME"
)
instanceof
Integer
){
is_name
=
(
Integer
)
m
.
get
(
"NAME"
);
}
else
{
is_name
=
Integer
.
valueOf
((
String
)
m
.
get
(
"NAME"
));
}
if
(
m
!=
null
&&
m
.
get
(
"NAME"
)
!=
null
&&
Integer
.
parseInt
((
String
)
m
.
get
(
"NAME"
))
>
0
)
{
}
if
(
m
!=
null
&&
m
.
get
(
"NAME"
)
!=
null
&&
is_name
>
0
)
{
System
.
out
.
println
(
"用户["
+
url
.
get
(
"EMNAME"
)
+
"]推送成功!"
);
// 将成功记录插入表
Map
<
String
,
Object
>
pushData
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -1293,13 +1300,6 @@ public class actAction extends BasicAction {
String
uploadold
=
request
.
getParameter
(
"uploadold"
);
if
(
new
File
(
uploadpath
+
File
.
separator
+
uploadnew
).
exists
()==
false
){
uploadpath
=
request
.
getSession
().
getServletContext
().
getRealPath
(
uploadpath
);
try
{
// uploadold = new String(uploadold.getBytes("iso8859-1"), "utf-8");
uploadold
=
new
String
((
uploadold
).
getBytes
(
"gbk"
),
"iso8859-1"
);
}
catch
(
UnsupportedEncodingException
e1
)
{
// TODO Auto-generated catch block
e1
.
printStackTrace
();
}
FileUtil
fileUtil
=
new
FileUtil
();
//文件存放目录
FileObject
baseDir
=
fileUtil
.
getFile
(
uploadpath
);
...
...
@@ -1313,6 +1313,7 @@ public class actAction extends BasicAction {
e
.
printStackTrace
();
}
//设置response
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setContentType
(
"application/octet-stream"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment; filename=\""
+
uploadold
+
"\""
);
...
...
@@ -1333,13 +1334,6 @@ public class actAction extends BasicAction {
String
uploadold
=
request
.
getParameter
(
"uploadold"
);
if
(
new
File
(
uploadpath
+
File
.
separator
+
uploadnew
).
exists
()==
false
){
uploadpath
=
request
.
getSession
().
getServletContext
().
getRealPath
(
uploadpath
);
try
{
// uploadold = new String(uploadold.getBytes("iso8859-1"), "utf-8");
uploadold
=
new
String
((
uploadold
).
getBytes
(
"gbk"
),
"iso8859-1"
);
}
catch
(
UnsupportedEncodingException
e1
)
{
// TODO Auto-generated catch block
e1
.
printStackTrace
();
}
//查对照数据
UnitBusiness
business
=
BusinessManager
.
getBusiness
(
UnitBusiness
.
class
);
List
<
Map
<
String
,
Object
>>
list
=
business
.
list_unit_ldap_deletekey
();
...
...
@@ -1399,6 +1393,7 @@ public class actAction extends BasicAction {
e
.
printStackTrace
();
}
//设置response
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setContentType
(
"application/octet-stream"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment; filename=\""
+
uploadold
+
"\""
);
...
...
src_jwapp/com/jw/app/user/action/actAction.java
View file @
bb10bde1
...
...
@@ -1303,10 +1303,16 @@ public class actAction extends BasicAction {
(
String
)
url
.
get
(
"PUSH_ENCODE"
));
System
.
out
.
println
(
"输出: 推送的url:"
+
url
.
get
(
"PUSH_URL"
));
Map
<
String
,
Object
>
m
=
null
;
int
is_name
=
0
;
if
(
ret
!=
null
&&
ret
.
trim
().
length
()
>
0
)
{
m
=
jsonFormatMap
.
getMap
(
ret
);
if
(
m
.
get
(
"NAME"
)
instanceof
Integer
){
is_name
=
(
Integer
)
m
.
get
(
"NAME"
);
}
else
{
is_name
=
Integer
.
valueOf
((
String
)
m
.
get
(
"NAME"
));
}
}
if
(
m
!=
null
&&
m
.
get
(
"NAME"
)
!=
null
&&
Integer
.
parseInt
((
String
)
m
.
get
(
"NAME"
))
>
0
)
{
if
(
m
!=
null
&&
m
.
get
(
"NAME"
)
!=
null
&&
is_name
>
0
)
{
System
.
out
.
println
(
"用户["
+
url
.
get
(
"EMNAME"
)
+
"]推送成功!"
);
// 将成功记录插入表
Map
<
String
,
Object
>
pushData
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -1756,13 +1762,6 @@ public class actAction extends BasicAction {
String
uploadold
=
request
.
getParameter
(
"uploadold"
);
if
(
new
File
(
uploadpath
+
File
.
separator
+
uploadnew
).
exists
()==
false
){
uploadpath
=
request
.
getSession
().
getServletContext
().
getRealPath
(
uploadpath
);
try
{
// uploadold = new String(uploadold.getBytes("iso8859-1"), "utf-8");
uploadold
=
new
String
((
uploadold
).
getBytes
(
"gbk"
),
"iso8859-1"
);
}
catch
(
UnsupportedEncodingException
e1
)
{
// TODO Auto-generated catch block
e1
.
printStackTrace
();
}
FileUtil
fileUtil
=
new
FileUtil
();
//文件存放目录
...
...
@@ -1777,6 +1776,7 @@ public class actAction extends BasicAction {
e
.
printStackTrace
();
}
//设置response
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setContentType
(
"application/octet-stream"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment; filename=\""
+
uploadold
+
"\""
);
...
...
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