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
e843f583
Commit
e843f583
authored
Nov 07, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixBug-sx' of
http://129.211.46.84:8800/platform/hg-smart
into dev
parents
9af79609
8557bfa5
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
134 additions
and
93 deletions
+134
-93
HgScSqlConstant.java
...ava/com/baosight/hggp/hg/sc/constant/HgScSqlConstant.java
+2
-0
ServiceHGSC101.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
+24
-1
ServiceHGSC101A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC101A.java
+1
-1
HGSC001.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
+10
-0
ServiceHGWD001.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
+28
-7
ServiceHGWD001D.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
+3
-1
ServiceHGWD099.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD099.java
+7
-10
XS3002.xml
src/main/java/com/baosight/xservices/xs/sql/XS3002.xml
+10
-7
HGSC010D.js
src/main/webapp/HG/SC/HGSC010D.js
+3
-6
HGSC101.jsp
src/main/webapp/HG/SC/HGSC101.jsp
+4
-0
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+15
-15
HGWD001H.js
src/main/webapp/HG/WD/HGWD001H.js
+2
-9
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+7
-10
HGWD002A.js
src/main/webapp/HG/WD/HGWD002A.js
+4
-6
HGWD002A1.js
src/main/webapp/HG/WD/HGWD002A1.js
+6
-9
XS3201.jsp
src/main/webapp/XS/XS3201.jsp
+7
-9
common.js
src/main/webapp/common/js/common.js
+1
-2
No files found.
src/main/java/com/baosight/hggp/hg/sc/constant/HgScSqlConstant.java
View file @
e843f583
...
...
@@ -20,6 +20,8 @@ public class HgScSqlConstant {
public
static
final
String
UPDATE_FOR_DC
=
"HGSC001.updateForDc"
;
// 修改项目名称
public
static
final
String
UPDATE_PROJ_NAME
=
"HGSC001.updateProjName"
;
// 修改审批状态
public
static
final
String
UPDATE_APPROVAL_STATUS
=
"HGSC001.updateApprovalStatus"
;
// 批量删除
public
static
final
String
BATCH_DELETE
=
"HGSC001.batch_delete"
;
// 批量完成
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
View file @
e843f583
...
...
@@ -8,6 +8,7 @@ import com.baosight.hggp.core.extapp.decheng.model.DcContractList;
import
com.baosight.hggp.core.model.Pager
;
import
com.baosight.hggp.core.tools.CodeValueTools
;
import
com.baosight.hggp.core.utils.ThreadUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.sc.constant.HgScSqlConstant
;
...
...
@@ -170,7 +171,7 @@ public class ServiceHGSC101 extends ServiceEPBase {
private
void
syncDcContractSingle
(
HGPZ009
dbPz009
,
DcContractList
dcContractList
)
throws
IOException
{
// 获取合同详情
DcContract
dcContract
=
DcOpenApi
.
contractDetail
(
dcContractList
.
getOrd
());
if
(
dcContract
==
null
||
!
"审批通过"
.
equals
(
dcContract
.
getSpStatus
())
)
{
if
(
dcContract
==
null
)
{
return
;
}
dcContract
.
setOrd
(
dcContractList
.
getOrd
());
...
...
@@ -178,9 +179,17 @@ public class ServiceHGSC101 extends ServiceEPBase {
String
projCode
=
dbPz009
.
getLoginPrefix
()
+
dcContractList
.
getOrd
();
HGSC001
dbSc001
=
HGSCTools
.
Hgsc001
.
getByCode
(
projCode
);
if
(
dbSc001
==
null
)
{
// 不存在,并且是"审批通过"就新增;否则不做任何操作
if
(
"审批通过"
.
equals
(
dcContract
.
getSpStatus
()))
{
this
.
syncDcSingleContractAdd
(
projCode
,
dcContract
,
dbPz009
);
}
}
else
{
// 存在,并且是"审批通过"就修改,否则状态修改为删除
if
(
"审批通过"
.
equals
(
dcContract
.
getSpStatus
()))
{
this
.
syncDcSingleContractModify
(
projCode
,
dcContract
);
}
else
{
this
.
syncDcSingleContractRemove
(
projCode
);
}
}
}
...
...
@@ -198,6 +207,7 @@ public class ServiceHGSC101 extends ServiceEPBase {
dbSc001
.
setDepName
(
dbPz009
.
getAccountName
());
dbSc001
.
setProjCode
(
projCode
);
dbSc001
.
setProjName
(
dcContract
.
getTitle
());
dbSc001
.
setApprovalStatus
(
HGConstant
.
ApprovalStatus
.
YS
);
// 设计来源
dbSc001
.
setProjectSource
(
getProjectSource
(
dcContract
.
getDesignSource
()));
dbSc001
.
setContractNo
(
dcContract
.
getHtid
());
...
...
@@ -222,12 +232,25 @@ public class ServiceHGSC101 extends ServiceEPBase {
updateMap
.
put
(
HGSC001
.
FIELD_contract_no
,
dcContract
.
getHtid
());
updateMap
.
put
(
HGSC001
.
FIELD_proj_name
,
dcContract
.
getTitle
());
updateMap
.
put
(
HGSC001
.
FIELD_project_source
,
getProjectSource
(
dcContract
.
getDesignSource
()));
updateMap
.
put
(
HGSC001
.
FIELD_approval_status
,
HGConstant
.
ApprovalStatus
.
YS
);
DaoUtils
.
update
(
HgScSqlConstant
.
HgSc001
.
UPDATE_PROJ_NAME
,
updateMap
);
// 同步更新文档库
DaoUtils
.
update
(
HgWdSqlConstant
.
HgWd001
.
UPDATE_PROJECT
,
updateMap
);
}
/**
* 删除
*
* @param projCode
*/
private
void
syncDcSingleContractRemove
(
String
projCode
)
{
Map
updateMap
=
new
HashMap
();
updateMap
.
put
(
HGSC001
.
FIELD_proj_code
,
projCode
);
updateMap
.
put
(
HGSC001
.
FIELD_approval_status
,
HGConstant
.
ApprovalStatus
.
DS
);
DaoUtils
.
update
(
HgScSqlConstant
.
HgSc001
.
UPDATE_APPROVAL_STATUS
,
updateMap
);
}
/**
* 设计来源
*
* @return
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC101A.java
View file @
e843f583
...
...
@@ -7,7 +7,6 @@ import com.baosight.hggp.hg.sc.constant.HgScSqlConstant;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.wd.constant.HgWdSqlConstant
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
...
...
@@ -91,6 +90,7 @@ public class ServiceHGSC101A extends ServiceEPBase {
private
void
addData
(
HGSC001
fSc001
)
{
// 校验编号是否存在
fSc001
.
setProjCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PROJ_NUMBER
));
fSc001
.
setApprovalStatus
(
HGConstant
.
ApprovalStatus
.
YS
);
DaoUtils
.
insert
(
HGSC001
.
INSERT
,
fSc001
);
}
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
View file @
e843f583
...
...
@@ -427,6 +427,16 @@
CONTRACT_NO = #contractNo#,
PROJ_NAME = #projName#,
PROJECT_SOURCE = #projectSource#,
APPROVAL_STATUS = #approvalStatus#,
<include
refid=
"SqlBase.updateRevise"
/>
WHERE PROJ_CODE = #projCode#
</update>
<!-- 修改审批状态 -->
<update
id=
"updateApprovalStatus"
>
UPDATE ${hggpSchema}.HGSC001
SET
APPROVAL_STATUS = #approvalStatus#,
<include
refid=
"SqlBase.updateRevise"
/>
WHERE PROJ_CODE = #projCode#
</update>
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
View file @
e843f583
...
...
@@ -5,26 +5,29 @@ import com.baosight.hggp.common.ChangeTypeEnum;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.enums.OrgTypeEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.tools.FileTools
;
import
com.baosight.hggp.core.tools.Iplat4jTools
;
import
com.baosight.hggp.core.utils.Iplat4jUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.enums.ProjectSourceEnum
;
import
com.baosight.hggp.hg.wd.constant.HgWdConstant
;
import
com.baosight.hggp.hg.wd.constant.HgWdSqlConstant
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD001A
;
import
com.baosight.hggp.hg.wd.domain.HGWD001C
;
import
com.baosight.hggp.hg.wd.domain.HGWD003
;
import
com.baosight.hggp.hg.wd.domain.HGWD099
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.hg.wd.utils.HgWdUtils
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.ObjectUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
...
@@ -34,7 +37,11 @@ import com.baosight.iplat4j.core.resource.I18nMessages;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -581,11 +588,25 @@ public class ServiceHGWD001 extends ServiceEPBase {
HGWDTools
.
interaction
(
hgwd001
,
strFileName
.
substring
(
0
,
strFileName
.
length
()
-
1
));
}
/**
* 查询管理员信息
*
* @param inInfo
* @return
*/
public
EiInfo
queryProjectManager
(
EiInfo
inInfo
)
{
try
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Integer
isManager
=
HGWDTools
.
HgWd003
.
isProjectManager
(
queryRow
.
get
(
HGWD001
.
FIELD_FILE_ID
).
toString
());
String
fileId
=
MapUtils
.
getString
(
queryRow
,
HGWD001
.
FIELD_FILE_ID
);
Integer
isManager
=
HGWDTools
.
HgWd003
.
isProjectManager
(
fileId
);
inInfo
.
set
(
"isManager"
,
isManager
);
// 是否可以下载
if
(
StringUtils
.
isNotNull
(
fileId
))
{
HGWD003
dbWd003
=
HGWDTools
.
HgWd003
.
getByUser
(
fileId
);
inInfo
.
set
(
"downloadFlag"
,
dbWd003
==
null
?
CommonConstant
.
YesNo
.
NO_0
:
dbWd003
.
getDownloadFlag
());
}
else
{
inInfo
.
set
(
"downloadFlag"
,
CommonConstant
.
YesNo
.
NO_0
);
}
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
}
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
View file @
e843f583
...
...
@@ -4,6 +4,7 @@ import com.baosight.hggp.core.constant.CommonConstant;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.tools.CodeValueTools
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.enums.ProjectSourceEnum
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
...
...
@@ -268,7 +269,8 @@ public class ServiceHGWD001D extends TreeService {
List
<
Map
>
results
=
new
ArrayList
();
Map
queryMap
=
new
HashMap
<>();
queryMap
.
put
(
"ename"
,
ename
);
queryMap
.
put
(
"projectSource"
,
parentId
);
queryMap
.
put
(
HGSC001
.
FIELD_project_source
,
parentId
);
queryMap
.
put
(
HGSC001
.
FIELD_approval_status
,
HGConstant
.
ApprovalStatus
.
YS
);
// 非管理员仅查询自己有权限的项目
String
userId
=
UserSessionUtils
.
getLoginName
();
if
(
isAuth
&&
!
HgWdUtils
.
HgWd009
.
isManager
(
userId
))
{
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD099.java
View file @
e843f583
...
...
@@ -3,21 +3,18 @@ package com.baosight.hggp.hg.wd.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.ChangeTypeEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.extapp.decheng.api.DcOpenApi
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.wd.constant.HgWdConstant
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD001A
;
import
com.baosight.hggp.hg.wd.domain.HGWD003
;
import
com.baosight.hggp.hg.wd.domain.HGWD099
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.ObjectUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
...
@@ -25,8 +22,8 @@ import com.baosight.iplat4j.core.exception.PlatException;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.
io.IOException
;
import
java.util.
*
;
import
java.
util.List
;
import
java.util.
Map
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -64,7 +61,7 @@ public class ServiceHGWD099 extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
if
(
StringUtils
.
isNotEmpty
(
queryRow
.
get
(
HGWD001
.
FIELD_PARENT_ID
).
toString
(
))){
if
(
ObjectUtils
.
isNotBlank
(
queryRow
.
get
(
HGWD001
.
FIELD_PARENT_ID
))){
inInfo
=
super
.
query
(
inInfo
,
HGWD099
.
QUERY
,
new
HGWD099
());
}
}
catch
(
Throwable
e
)
{
...
...
src/main/java/com/baosight/xservices/xs/sql/XS3002.xml
View file @
e843f583
...
...
@@ -77,14 +77,15 @@
t1.pwd_revise_date as "pwdReviseDate",
t1.pwd_revisor as "pwdRevisor",
t1.archive_flag as "archiveFlag",
t1.USER_GROUP_ENAME as "userGroupEname"
t1.USER_GROUP_ENAME as "userGroupEname",
C.ORG_CNAME as "deptName"
FROM ${platSchema}.XS_USER t1
where t1.USER_ID not in
(
SELECT
MEMBER_ID
LEFT JOIN iplat_hggp.TXSOG02 B ON t1.USER_ID = B.USER_ID
LEFT JOIN iplat_hggp.TXSOG01 C ON B.ORG_ID = C.ORG_ID
WHERE t1.USER_ID NOT IN (
SELECT
MEMBER_ID
FROM ${platSchema}.XS_USER_GROUP_MEMBER t2
where
1 = 1
WHERE
1 = 1
<isNotEmpty
prepend=
" AND "
property=
"memberType"
>
t2.MEMBER_TYPE = #memberType#
</isNotEmpty>
...
...
@@ -101,6 +102,9 @@
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
t1.account_code = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deptName"
>
C.ORG_CNAME LIKE CONCAT('%', #deptName#, '%')
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
...
...
@@ -109,7 +113,6 @@
<isNotEmpty
prepend=
"AND"
property=
"sql"
>
$sql$
</isNotEmpty>
</select>
</sqlMap>
src/main/webapp/HG/SC/HGSC010D.js
View file @
e843f583
...
...
@@ -5,8 +5,7 @@ $(function () {
columns
:
[{
field
:
"operator"
,
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
fileId
+
"', '"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
param
=
"'"
+
model
.
fileId
+
"', '"
+
model
.
docId
+
"'"
;
let
template
=
''
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showPreview('
+
param
+
')" >预览</a>'
;
...
...
@@ -49,11 +48,9 @@ let query = function () {
*
* @param fileId
* @param docId
* @param docType
* @param docName
*/
let
showPreview
=
function
(
fileId
,
docId
,
docType
,
docName
)
{
addRecordWindow
(
fileId
,
docId
,
docType
,
docName
);
let
showPreview
=
function
(
fileId
,
docId
)
{
addRecordWindow
(
fileId
,
docId
);
}
/**
...
...
src/main/webapp/HG/SC/HGSC101.jsp
View file @
e843f583
...
...
@@ -26,6 +26,10 @@
<EF:EFComboColumn
ename=
"projectSource"
cname=
"项目来源"
enable=
"false"
width=
"100"
align=
"center"
>
<EF:EFCodeOption
codeName=
"app.sc.projectSource"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"approvalStatus"
cname=
"状态"
enable=
"false"
width=
"100"
align=
"center"
>
<EF:EFOption
label=
"已删除"
value=
"0"
/>
<EF:EFOption
label=
"正常"
value=
"2"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
/>
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
e843f583
...
...
@@ -482,10 +482,9 @@ $(function () {
field
:
"operator"
,
readonly
:
true
,
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
""
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showPreview(
'
+
param
+
')" >预览</a>'
;
+
'onclick="showPreview(
\'
'
+
model
.
docId
+
'
\
'
)" >预览</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFile(
\'
'
+
model
.
docId
+
'
\'
,
\'
'
+
model
.
bizId
+
'
\'
)" target="_blank">变更</a>'
;
...
...
@@ -1054,12 +1053,10 @@ let preview = function () {
* 预览
*
* @param docId
* @param docType
* @param docName
*/
let
showPreview
=
function
(
docId
,
docType
,
docName
)
{
let
showPreview
=
function
(
docId
)
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
addRecordWindow
(
fileId
,
docId
,
docType
,
docName
);
addRecordWindow
(
fileId
,
docId
);
}
/**
...
...
@@ -1068,6 +1065,12 @@ let showPreview = function (docId, docType, docName) {
* @param parentId
*/
let
isProjectManager
=
function
(
parentId
)
{
CommonUtils
.
hideButton
(
"RELEASE"
);
CommonUtils
.
hideButton
(
"COPY_PROT_FILE"
);
CommonUtils
.
hideButton
(
"COPY_FILE"
);
CommonUtils
.
hideButton
(
"UPLOAD_FILE"
);
CommonUtils
.
hideButton
(
"PREVIEW"
);
CommonUtils
.
hideButton
(
"BATCH_DOWNLOAD"
);
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"inqu_status-0-fileId"
,
parentId
);
EiCommunicator
.
send
(
"HGWD001"
,
"queryProjectManager"
,
inEiInfo
,
{
...
...
@@ -1076,23 +1079,20 @@ let isProjectManager = function (parentId) {
return
;
}
let
isManager
=
ei
.
extAttr
.
isManager
;
let
downloadFlag
=
ei
.
extAttr
.
downloadFlag
;
// 1-管理员,2-项目经理,3-设计人
if
(
isManager
===
1
||
isManager
===
2
||
isManager
===
3
)
{
if
(
isManager
!==
1
&&
downloadFlag
!==
1
)
{
$
(
"#BATCH_DOWNLOAD"
).
attr
(
"disabled"
,
true
);
}
if
(
isManager
===
1
||
isManager
===
2
)
{
CommonUtils
.
showButton
(
"RELEASE"
);
}
else
{
CommonUtils
.
hideButton
(
"RELEASE"
);
}
CommonUtils
.
showButton
(
"COPY_PROT_FILE"
);
CommonUtils
.
showButton
(
"BATCH_DOWNLOAD"
);
CommonUtils
.
showButton
(
"UPLOAD_FILE"
);
CommonUtils
.
showButton
(
"COPY_FILE"
);
CommonUtils
.
showButton
(
"PREVIEW"
);
}
else
{
CommonUtils
.
showButton
(
"RELEASE"
);
CommonUtils
.
showButton
(
"UPLOAD_FILE"
);
CommonUtils
.
showButton
(
"COPY_FILE"
);
CommonUtils
.
showButton
(
"PREVIEW"
);
CommonUtils
.
showButton
(
"
COPY_PROT_FILE
"
);
CommonUtils
.
showButton
(
"
BATCH_DOWNLOAD
"
);
}
}
},
{
async
:
false
})
...
...
src/main/webapp/HG/WD/HGWD001H.js
View file @
e843f583
...
...
@@ -58,17 +58,14 @@ let save = function () {
message
(
"请选择数据"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGWD003"
,
"save"
,
true
,
function
(
e
)
{
var
status
=
e
.
status
;
if
(
status
!==
-
1
)
{
parent
.
JSColorbox
.
setValueCallback
();
}
});
}
}
);
);
}
/**
...
...
@@ -115,18 +112,14 @@ let removeUser = function () {
message
(
"请选择数据"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
取消授权用户
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGWD003"
,
"removeUser"
,
true
,
function
(
e
)
{
true
,
function
(
e
)
{
var
status
=
e
.
status
;
if
(
status
!==
-
1
)
{
parent
.
JSColorbox
.
setValueCallback
();
}
}
);
}
});
}
/**
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
e843f583
...
...
@@ -154,10 +154,9 @@ $(function () {
field
:
"operator"
,
title
:
"操作"
,
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
''
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showPreview(
'
+
param
+
')" >预览</a>'
;
+
'onclick="showPreview(
\'
'
+
model
.
docId
+
'
\
'
)" >预览</a>'
;
return
template
;
}
},
{
...
...
@@ -320,16 +319,16 @@ let showAuthButton = function () {
// C:目录
let
leafType
=
IPLATUI
.
EFTree
.
docTree
.
selectTreeNode
.
leafLevel
;
if
(
leafType
&&
leafType
>
0
)
{
$
(
"#PREVIEW"
).
show
(
);
CommonUtils
.
showButton
(
"PREVIEW"
);
}
else
{
$
(
"#PREVIEW"
).
hide
(
);
CommonUtils
.
hideButton
(
"PREVIEW"
);
}
// 是否可以下载
let
downloadFlag
=
IPLATUI
.
EFTree
.
docTree
.
selectTreeNode
.
downloadFlag
;
if
(
downloadFlag
===
"1"
)
{
$
(
"#DOWNLOAD"
).
show
(
);
$
(
"#DOWNLOAD"
).
attr
(
"disabled"
,
false
);
}
else
{
$
(
"#DOWNLOAD"
).
hide
(
);
$
(
"#DOWNLOAD"
).
attr
(
"disabled"
,
true
);
}
}
...
...
@@ -345,10 +344,8 @@ let preview = function () {
* 预览
*
* @param docId
* @param docType
* @param docName
*/
let
showPreview
=
function
(
docId
,
docType
,
docName
)
{
let
showPreview
=
function
(
docId
)
{
let
fileId
=
IPLATUI
.
EFTree
.
docTree
.
selectTreeNode
.
fileId
;
addRecordWindow
(
fileId
,
docId
,
docType
,
docName
);
addRecordWindow
(
fileId
,
docId
);
}
src/main/webapp/HG/WD/HGWD002A.js
View file @
e843f583
...
...
@@ -15,7 +15,7 @@ $(function () {
IPLATUI
.
EFTree
.
docTree
.
selectNode
.
leaf
=
nodeData
.
leaf
;
IPLATUI
.
EFTree
.
docTree
.
selectNode
.
leafType
=
leafType
;
// 添加预览记录
add
(
label
,
leafType
,
nodeData
.
docType
,
nodeData
.
text
);
add
(
label
,
leafType
);
},
template
:
function
(
node
)
{
var
item
=
node
.
item
;
...
...
@@ -93,12 +93,10 @@ function expandTreeNode(tree, node) {
/**
* 预览
*
* @param
label
docId
* @param
docId
docId
* @param leafType 节点类型:C=目录,F=文件
* @param docType
* @param docName
*/
function
add
(
docId
,
leafType
,
docType
,
docName
)
{
function
add
(
docId
,
leafType
)
{
if
(
isBlank
(
leafType
)
||
isBlank
(
docId
))
{
message
(
"文件类型或ID不能为空"
);
return
;
...
...
@@ -109,7 +107,7 @@ function add(docId, leafType, docType, docName) {
return
;
}
let
fileId
=
$
(
"#inqu_status-0-fileId"
).
val
()
addRecord
(
fileId
,
docId
,
docType
,
docName
);
addRecord
(
fileId
,
docId
);
}
src/main/webapp/HG/WD/HGWD002A1.js
View file @
e843f583
...
...
@@ -3,13 +3,11 @@
*
* @param fileId
* @param docId
* @param docType
* @param docName
*/
function
addRecordWindow
(
fileId
,
docId
,
docType
,
docName
)
{
function
addRecordWindow
(
fileId
,
docId
)
{
$
(
"#previewFile"
).
data
(
"kendoWindow"
).
center
();
$
(
"#previewFile"
).
data
(
"kendoWindow"
).
open
();
addRecord
(
fileId
,
docId
,
docType
,
docName
);
addRecord
(
fileId
,
docId
);
}
/**
...
...
@@ -17,9 +15,8 @@ function addRecordWindow(fileId, docId, docType, docName) {
*
* @param fileId
* @param docId
* @param docType
*/
function
addRecord
(
fileId
,
docId
,
docType
,
docName
)
{
function
addRecord
(
fileId
,
docId
)
{
if
(
isBlank
(
docId
))
{
message
(
"附件类型或ID不能为空"
);
return
;
...
...
@@ -34,9 +31,7 @@ function addRecord(fileId, docId, docType, docName) {
onSuccess
:
function
(
res
)
{
if
(
res
.
getStatus
()
>=
0
)
{
try
{
let
url
=
res
.
extAttr
.
url
;
let
docType
=
res
.
extAttr
.
docType
;
previewFile
(
url
,
docType
);
previewFile
(
res
.
extAttr
.
url
,
res
.
extAttr
.
docType
);
}
catch
(
e
)
{
}
}
else
{
...
...
@@ -64,6 +59,8 @@ function previewFile(url, docType) {
previewXml
(
url
);
}
else
if
(
isWord
(
docType
))
{
previewDocx
(
url
);
}
else
if
(
isPdf
(
docType
))
{
previewFrame
(
url
);
}
else
{
previewOnline
(
url
);
}
...
...
src/main/webapp/XS/XS3201.jsp
View file @
e843f583
...
...
@@ -305,22 +305,22 @@
</EF:EFTab>
</EF:EFWindow>
<EF:EFWindow id="userWindow" width="58%" height="75%" top="100px" left="280px">
<EF:EFWindow id="userWindow" width="78%" height="75%" top="100px" left="180px">
<EF:EFRegion id="inqu6" title="查询条件" type="query" efRegionShowClear="true" efRegionSave="true">
<div class="row">
<EF:EFInput type="hidden" cname="父节点ID" ename="parentId" row="0" blockId="inqu_status"
name="inqu_status-0-parentId" value=""/>
<EF:EFInput ename="inqu_status-0-loginName" cname="登录账号" placeholder="请输入登录账号"/>
<EF:EFInput ename="inqu_status-0-userName" cname="用户姓名" placeholder="请输入用户姓名"/>
<EF:EFInput ename="inqu_status-0-deptName" cname="部门名称" placeholder="请输入部门名称"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result6Region" title="资源组信息">
<EF:EFGrid blockId="result6" autoDraw="no" autoBind="fals
e"
queryMethod="queryUserOutOfUserGroup"
>
<EF:EFColumn ename="loginName" cname="登录账号" readonly="true" style="text-align:left;
"/>
<EF:EFColumn ename="userName" cname="用户姓名" style="text-align:left;" readonly="true
"/>
<EF:EFGrid blockId="result6" autoDraw="no" autoBind="false" showCount="tru
e"
queryMethod="queryUserOutOfUserGroup">
<EF:EFColumn ename="deptName" cname="部门名称" enable="false" align="left"/
>
<EF:EFColumn ename="loginName" cname="登录账号" enable="false" align="left
"/>
<EF:EFColumn ename="userName" cname="用户姓名" enable="false" align="left
"/>
<EF:EFComboColumn ename="gender" cname="性别" valueField="valueField" textField="textField"
columnTemplate="#=textField#" align="center" readonly="true">
<EF:EFCodeOption codeName="xservices.xs.sex"/>
...
...
@@ -328,9 +328,7 @@
<EF:EFColumn ename="mobile" style="text-align:right;" cname="手机" data-rules="mobile_phone"
readonly="true"/>
<EF:EFColumn ename="email" cname="邮箱" data-rules="email" style="text-align:left;" readonly="true"/>
<EF:EFColumn ename="userId" cname="用户ID" readonly="false" primaryKey="true" hidden="true"/>
<EF:EFColumn ename="password" cname="用户密码" hidden="true" readonly="true"/>
</EF:EFGrid>
</EF:EFRegion>
...
...
src/main/webapp/common/js/common.js
View file @
e843f583
...
...
@@ -759,8 +759,7 @@ function loadChange(grid,e,field) {
let
button
=
$
(
"#"
+
name
);
button
.
hide
();
// 隐藏父级标签,防止按钮重叠
let
parent
=
button
.
parent
();
parent
.
css
(
"display"
,
"none"
);
button
.
parent
().
css
(
"display"
,
"none"
);
}
/**
...
...
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