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
ce5e99e2
Commit
ce5e99e2
authored
Sep 24, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-24
1.文档库:复制功能需支持按项目和文件夹复制附件
parent
e3b823c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ServiceHGWD001.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
+4
-1
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+6
-1
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
View file @
ce5e99e2
...
@@ -461,14 +461,17 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -461,14 +461,17 @@ public class ServiceHGWD001 extends ServiceEPBase {
// 要复制项目
// 要复制项目
String
parentId
=
result1Rows
.
get
(
0
).
getParentId
();
String
parentId
=
result1Rows
.
get
(
0
).
getParentId
();
if
(!
StringUtils
.
isNull
(
hgwd001List
)){
// 写入数据
// 写入数据
for
(
HGWD001
hgwd001:
hgwd001List
)
{
for
(
HGWD001
hgwd001:
hgwd001List
)
{
String
fileId
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
WD_FILE_ID
);
String
fileId
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
WD_FILE_ID
);
addCopyFile
(
hgwd001
,
parentId
,
fileId
);
addCopyFile
(
hgwd001
,
parentId
,
fileId
);
}
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
hgwd001List
.
size
()
+
"]条数据保存成功!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
hgwd001List
==
null
?
String
.
valueOf
(
0
)
:
hgwd001List
.
size
()
+
"]条数据保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
}
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
ce5e99e2
...
@@ -966,8 +966,13 @@ function saveProtFunc() {
...
@@ -966,8 +966,13 @@ function saveProtFunc() {
$
(
"#selectProjWindow"
).
data
(
"kendoWindow"
).
close
()
$
(
"#selectProjWindow"
).
data
(
"kendoWindow"
).
close
()
$
(
"#inqu_status2-0-companyCode"
).
val
(
''
);
$
(
"#inqu_status2-0-companyCode"
).
val
(
''
);
$
(
"#inqu_status2-0-projName"
).
val
(
''
);
$
(
"#inqu_status2-0-projName"
).
val
(
''
);
const
tree
=
$
(
'#categoryTree'
).
data
(
'kendoTreeView'
);
const
parentId
=
$
(
"#inqu_status-0-orgParentId"
).
val
();
// 刷新树节点
tree
.
reload
(
parentId
);
// 展开树
expandTreeNode
(
tree
,
parentId
);
refreshTree
();
refreshTree
();
query
();
}
catch
(
e
)
{
}
catch
(
e
)
{
// TODO: handle exception
// TODO: handle exception
}
}
...
...
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