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
557bdd34
Commit
557bdd34
authored
Sep 01, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-31 文档库优化
parent
a88c819a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
10 deletions
+21
-10
ServiceHGWD001.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
+16
-3
ServiceHGWD099.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD099.java
+1
-1
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+3
-5
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 @
557bdd34
...
@@ -181,7 +181,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -181,7 +181,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
DaoUtils
.
update
(
HGWD001
.
UPDATE
,
hgwd001
);
DaoUtils
.
update
(
HGWD001
.
UPDATE
,
hgwd001
);
}
}
@OperationLogAnnotation
(
operModul
=
"文档库"
,
operType
=
"发布"
,
operDesc
=
"发布操作"
)
@OperationLogAnnotation
(
operModul
=
"文档库"
,
operType
=
"发布"
,
operDesc
=
"发布
附件
操作"
)
public
EiInfo
updateRelease
(
EiInfo
inInfo
){
public
EiInfo
updateRelease
(
EiInfo
inInfo
){
int
i
=
0
;
int
i
=
0
;
try
{
try
{
...
@@ -209,6 +209,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -209,6 +209,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
hgwd001a
.
setChangeContent
(
"发布"
);
hgwd001a
.
setChangeContent
(
"发布"
);
hgwd001a
.
setChangeStart
(
"V"
.
concat
(
hgwd001
.
getDocVersion
()+
""
));
hgwd001a
.
setChangeStart
(
"V"
.
concat
(
hgwd001
.
getDocVersion
()+
""
));
hgwd001a
.
setChangeEnd
(
"V"
.
concat
(
hgwd001
.
getDocVersion
()+
1
+
""
));
hgwd001a
.
setChangeEnd
(
"V"
.
concat
(
hgwd001
.
getDocVersion
()+
1
+
""
));
//添加变更记录
HGWDTools
.
HgWd001
.
addHGWD001A
(
hgwd001a
);
HGWDTools
.
HgWd001
.
addHGWD001A
(
hgwd001a
);
hgwd001
.
setStatus
(
HgWdConstant
.
FileStatus
.
S_1
);
hgwd001
.
setStatus
(
HgWdConstant
.
FileStatus
.
S_1
);
...
@@ -223,7 +224,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -223,7 +224,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
return
inInfo
;
return
inInfo
;
}
}
@OperationLogAnnotation
(
operModul
=
"文档库"
,
operType
=
"修改"
,
operDesc
=
"文档库-附件
清单A-修改
附件操作"
)
@OperationLogAnnotation
(
operModul
=
"文档库"
,
operType
=
"修改"
,
operDesc
=
"文档库-附件
变更-变更
附件操作"
)
public
EiInfo
updateFile
(
EiInfo
inInfo
)
{
public
EiInfo
updateFile
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -258,6 +259,13 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -258,6 +259,13 @@ public class ServiceHGWD001 extends ServiceEPBase {
return
inInfo
;
return
inInfo
;
}
}
/**
* 初始化变更记录
* @param hgwd001 项目信息
* @param hgwd099 附件信息
* @param type 变更类型
* @return HGWD001A 变更记录
*/
public
HGWD001A
initHgwd001a
(
HGWD001
hgwd001
,
HGWD099
hgwd099
,
String
type
){
public
HGWD001A
initHgwd001a
(
HGWD001
hgwd001
,
HGWD099
hgwd099
,
String
type
){
HGWD001A
hgwd001a
=
new
HGWD001A
();
HGWD001A
hgwd001a
=
new
HGWD001A
();
hgwd001a
.
setCompanyCode
(
hgwd001
.
getCompanyCode
());
hgwd001a
.
setCompanyCode
(
hgwd001
.
getCompanyCode
());
...
@@ -312,7 +320,12 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -312,7 +320,12 @@ public class ServiceHGWD001 extends ServiceEPBase {
return
inInfo
;
return
inInfo
;
}
}
/**
* 附件变更通知
* @param hgwd001 待变更的项目名称
* @param oldName 变更前附件名称
* @param newName 变更后附件名称
*/
public
void
interaction
(
HGWD001
hgwd001
,
String
oldName
,
String
newName
){
public
void
interaction
(
HGWD001
hgwd001
,
String
oldName
,
String
newName
){
try
{
try
{
HGPZ009
hgpz009
=
HGPZTools
.
HgPz009
.
getByCode
(
hgwd001
.
getAccountCode
());
HGPZ009
hgpz009
=
HGPZTools
.
HgPz009
.
getByCode
(
hgwd001
.
getAccountCode
());
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD099.java
View file @
557bdd34
...
@@ -125,7 +125,7 @@ public class ServiceHGWD099 extends ServiceEPBase {
...
@@ -125,7 +125,7 @@ public class ServiceHGWD099 extends ServiceEPBase {
for
(
Map
resultRow
:
resultRows
)
{
for
(
Map
resultRow
:
resultRows
)
{
HGWD099
hgdm099
=
new
HGWD099
();
HGWD099
hgdm099
=
new
HGWD099
();
hgdm099
.
fromMap
(
resultRow
);
hgdm099
.
fromMap
(
resultRow
);
DaoUtils
.
update
(
HGWD099
.
DELETE
,
hgdm099
);
DaoUtils
.
update
(
HGWD099
.
DELETE
,
hgdm099
);
//逻辑删除
HGWD001
hgwd001
=
HGWDTools
.
HgWd001
.
get
(
hgdm099
.
getBizId
());
HGWD001
hgwd001
=
HGWDTools
.
HgWd001
.
get
(
hgdm099
.
getBizId
());
if
(
hgwd001
!=
null
)
{
if
(
hgwd001
!=
null
)
{
HGWD001A
hgwd001a
=
new
HGWD001A
();
HGWD001A
hgwd001a
=
new
HGWD001A
();
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
557bdd34
...
@@ -202,7 +202,7 @@ $(function () {
...
@@ -202,7 +202,7 @@ $(function () {
let
leafLevel
=
parseInt
(
$
(
"#inqu_status-0-leafLevel"
).
val
())
+
1
;
let
leafLevel
=
parseInt
(
$
(
"#inqu_status-0-leafLevel"
).
val
())
+
1
;
let
type
=
$
(
"#inqu_status-0-type"
).
val
();
let
type
=
$
(
"#inqu_status-0-type"
).
val
();
if
(
null
==
parentId
||
""
===
parentId
)
{
if
(
null
==
parentId
||
""
===
parentId
)
{
message
(
"请在文档
库树选择任意节点后新增文档库
"
);
message
(
"请在文档
目录树选择任意节点后新增文档目录
"
);
return
return
}
}
/*if (type == "company"){
/*if (type == "company"){
...
@@ -235,7 +235,7 @@ $(function () {
...
@@ -235,7 +235,7 @@ $(function () {
$
(
"#remove"
).
on
(
"click"
,
()
=>
{
$
(
"#remove"
).
on
(
"click"
,
()
=>
{
const
orgId
=
$
(
"#inqu_status-0-parentId"
).
val
()
const
orgId
=
$
(
"#inqu_status-0-parentId"
).
val
()
if
(
null
==
orgId
||
""
===
orgId
||
"root"
===
orgId
)
{
if
(
null
==
orgId
||
""
===
orgId
||
"root"
===
orgId
)
{
message2
(
"文档库"
,
"请在文档
库树选择任意节点后删除文档库
"
);
message2
(
"文档库"
,
"请在文档
目录树选择任意节点后删除文档目录
"
);
return
return
}
}
$
(
"#deleteOrgWindow"
).
data
(
"kendoWindow"
).
center
()
$
(
"#deleteOrgWindow"
).
data
(
"kendoWindow"
).
center
()
...
@@ -297,7 +297,7 @@ $(function () {
...
@@ -297,7 +297,7 @@ $(function () {
let
leafLevel
=
parseInt
(
$
(
"#inqu_status-0-leafLevel"
).
val
())
+
1
;
let
leafLevel
=
parseInt
(
$
(
"#inqu_status-0-leafLevel"
).
val
())
+
1
;
let
type
=
$
(
"#inqu_status-0-type"
).
val
();
let
type
=
$
(
"#inqu_status-0-type"
).
val
();
if
(
null
==
orgId
||
""
===
orgId
||
"root"
===
orgId
)
{
if
(
null
==
orgId
||
""
===
orgId
||
"root"
===
orgId
)
{
message2
(
"提示"
,
"请在文档
库树选择公司节点后编辑文档库
"
);
message2
(
"提示"
,
"请在文档
目录树选择公司节点后编辑文档目录
"
);
return
return
}
}
if
(
type
==
"1"
){
if
(
type
==
"1"
){
...
@@ -810,8 +810,6 @@ function showPreview() {
...
@@ -810,8 +810,6 @@ function showPreview() {
/**
/**
* 文件上传
* 文件上传
*
* @param id
*/
*/
function
uploadFile
()
{
function
uploadFile
()
{
let
lv
=
$
(
"#inqu_status-0-leafLevel"
).
val
();
let
lv
=
$
(
"#inqu_status-0-leafLevel"
).
val
();
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
557bdd34
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
id=
"splitter"
class=
"i-fit-height"
>
<div
id=
"splitter"
class=
"i-fit-height"
>
<div
id=
"left-pane"
class=
"i-fit-height"
>
<div
id=
"left-pane"
class=
"i-fit-height"
>
<EF:EFRegion
title=
"文档
库
树"
id=
"tree"
fitHeight=
"true"
>
<EF:EFRegion
title=
"文档
目录
树"
id=
"tree"
fitHeight=
"true"
>
<div
class=
"row"
style=
"display: block"
>
<div
class=
"row"
style=
"display: block"
>
<div
class=
"col-md-12"
style=
"display:flex;align-items: center"
>
<div
class=
"col-md-12"
style=
"display:flex;align-items: center"
>
<
%
--
<
EF:EFInput
ename=
"searchText"
colWidth=
"8"
inline=
"true"
/>
<
%
--
<
EF:EFInput
ename=
"searchText"
colWidth=
"8"
inline=
"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