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
2731dd53
Commit
2731dd53
authored
Oct 22, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-22
1.文档管理添加附件变更记录
parent
5941e5a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
ServiceHGWD001.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
+4
-0
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+23
-1
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
View file @
2731dd53
...
...
@@ -311,6 +311,10 @@ public class ServiceHGWD001 extends ServiceEPBase {
hgwd099
.
setStatus
(
HgWdConstant
.
FileStatus
.
S_0
);
hgwd099
.
setOperStatus
(
HgWdConstant
.
OperStatus
.
S_1
);
DaoUtils
.
insert
(
HGWD099
.
UPDATE
,
hgwd099
);
if
(
Objects
.
nonNull
(
resultRow
.
get
(
"changeContent"
))
||
resultRow
.
get
(
"changeContent"
).
toString
().
trim
().
length
()>
0
){
HGWDTools
.
HgWd006
.
add
(
hgwd099
,
hgwd001
,
resultRow
.
get
(
"changeContent"
).
toString
());
}
}
//获取文件下的权限人员
List
<
HGWD003
>
listByFile
=
HGWDTools
.
HgWd003
.
listByFile
(
hgwd001
.
getFileId
());
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
2731dd53
...
...
@@ -491,6 +491,8 @@ $(function () {
+
'href="'
+
downloadHref
(
item
.
docId
)
+
'">下载</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFile(
\'
'
+
item
.
docId
+
'
\'
,
\'
'
+
item
.
bizId
+
'
\'
)" target="_blank">变更</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFileRecords(
\'
'
+
item
.
id
+
'
\'
,
\'
'
+
item
.
docId
+
'
\'
,
\'
'
+
item
.
docName
+
'
\'
)" target="_blank">变更记录</a>'
;
return
template
;
}
},
{
...
...
@@ -750,7 +752,7 @@ function uploadFile() {
*/
function
changeFile
(
docId
,
bizId
)
{
JSColorbox
.
open
({
href
:
"HGWD099
A
?methodName=initLoad&inqu_status-0-bizType=WD"
+
href
:
"HGWD099
B
?methodName=initLoad&inqu_status-0-bizType=WD"
+
"&inqu_status-0-bizId="
+
bizId
+
""
+
"&inqu_status-0-ndocId="
+
docId
+
""
+
"&inqu_status-0-operType=update"
+
...
...
@@ -762,6 +764,25 @@ function changeFile(docId,bizId) {
});
}
function
changeFileRecords
(
parentId
,
docId
,
docName
)
{
let
projCode
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
projCode
;
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
let
fileName
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileName
;
JSColorbox
.
open
({
href
:
"HGWD006?methodName=initLoad"
+
"&inqu_status-0-parentId="
+
parentId
+
""
+
"&inqu_status-0-projCode="
+
projCode
+
""
+
"&inqu_status-0-fileId="
+
fileId
+
""
+
"&inqu_status-0-fileName="
+
fileName
+
""
+
"&inqu_status-0-docId="
+
docId
+
""
+
"&inqu_status-0-docName="
+
docName
+
""
+
"&efParentFormEname=HGWD001"
,
title
:
"<div style='text-align: center;'>变更记录</div>"
,
width
:
"80%"
,
height
:
"80%"
});
}
/**
* 附件上传回调
*
...
...
@@ -776,6 +797,7 @@ function uploadFileCallback(data) {
inEiInfo
.
set
(
"result-0-bizType"
,
data
.
bizType
);
inEiInfo
.
set
(
"result-0-ndocId"
,
data
.
ndocId
);
inEiInfo
.
set
(
"inqu_status-0-fileId"
,
data
.
bizId
);
inEiInfo
.
set
(
"result-0-changeContent"
,
data
.
changeContent
);
let
serviceName
=
data
.
operType
==
"add"
?
"HGWD099"
:
"HGWD001"
;
let
methodName
=
data
.
operType
==
"add"
?
"insert"
:
"updateFile"
;
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
2731dd53
...
...
@@ -81,7 +81,7 @@
serviceName=
"HGWD099"
queryMethod=
"query"
deleteMethod=
"delete"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"180"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"1
0
0"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"1
2
0"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"docName"
cname=
"附件名称"
enable=
"false"
width=
"180"
/>
<EF:EFColumn
ename=
"docType"
cname=
"附件类型"
enable=
"false"
width=
"110"
align=
"center"
/>
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"90"
align=
"center"
sort=
"true"
/>
...
...
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