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
9d833bd0
Commit
9d833bd0
authored
May 24, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
0fb82c85
4d49a92e
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
1364 additions
and
156 deletions
+1364
-156
HGSB002.java
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB002.java
+4
-3
HGSB003.java
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB003.java
+3
-1
HGSB004.java
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB004.java
+2
-1
HGSB005.java
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB005.java
+2
-1
HGSB099.java
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB099.java
+526
-0
ServiceHGSB002.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB002.java
+11
-3
ServiceHGSB002A.java
...java/com/baosight/hggp/hg/sb/service/ServiceHGSB002A.java
+12
-5
ServiceHGSB003.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB003.java
+11
-8
ServiceHGSB004.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB004.java
+9
-4
ServiceHGSB004B.java
...java/com/baosight/hggp/hg/sb/service/ServiceHGSB004B.java
+1
-0
ServiceHGSB005.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB005.java
+10
-5
ServiceHGSB006.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB006.java
+6
-6
ServiceHGSB007.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB007.java
+6
-4
ServiceHGSB099.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB099.java
+129
-0
HGSB002.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB002.xml
+6
-0
HGSB003.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB003.xml
+1
-1
HGSB005.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB005.xml
+1
-1
HGSB099.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB099.xml
+319
-0
ServiceHGSJ001.java
.../java/com/baosight/hggp/hg/sj/service/ServiceHGSJ001.java
+6
-4
ServiceHGSJ002.java
.../java/com/baosight/hggp/hg/sj/service/ServiceHGSJ002.java
+4
-3
ServiceHGSJ002A.java
...java/com/baosight/hggp/hg/sj/service/ServiceHGSJ002A.java
+5
-3
ServiceHGSJ003.java
.../java/com/baosight/hggp/hg/sj/service/ServiceHGSJ003.java
+4
-3
ACConstants.java
...ain/java/com/baosight/hggp/util/contants/ACConstants.java
+10
-0
HGSB001.jsp
src/main/webapp/HG/SB/HGSB001.jsp
+6
-6
HGSB002.js
src/main/webapp/HG/SB/HGSB002.js
+24
-16
HGSB002.jsp
src/main/webapp/HG/SB/HGSB002.jsp
+7
-6
HGSB003.js
src/main/webapp/HG/SB/HGSB003.js
+32
-22
HGSB003.jsp
src/main/webapp/HG/SB/HGSB003.jsp
+6
-6
HGSB003A.js
src/main/webapp/HG/SB/HGSB003A.js
+4
-4
HGSB003A.jsp
src/main/webapp/HG/SB/HGSB003A.jsp
+3
-2
HGSB004.js
src/main/webapp/HG/SB/HGSB004.js
+26
-17
HGSB004.jsp
src/main/webapp/HG/SB/HGSB004.jsp
+1
-1
HGSB004B.jsp
src/main/webapp/HG/SB/HGSB004B.jsp
+1
-1
HGSB005.js
src/main/webapp/HG/SB/HGSB005.js
+26
-17
HGSB005.jsp
src/main/webapp/HG/SB/HGSB005.jsp
+2
-2
HGSB099.js
src/main/webapp/HG/SB/HGSB099.js
+104
-0
HGSB099.jsp
src/main/webapp/HG/SB/HGSB099.jsp
+34
-0
No files found.
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB002.java
View file @
9d833bd0
package
com
.
baosight
.
hggp
.
hg
.
sb
.
domain
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
...
...
@@ -638,11 +639,11 @@ public class HGSB002 extends DaoEPBase {
setFactoryName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_NAME
)),
factoryName
));
setGroupCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_GROUP_CODE
)),
groupCode
));
setGroupName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_GROUP_NAME
)),
groupName
));
setPlanDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_DATE
)),
planDate
));
setPlanDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_PLAN_DATE
)
)),
planDate
));
setPlanCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_CODE
)),
planCode
));
setPlanType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_TYPE
)),
planType
));
setPlanStartDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_START_DATE
)),
planStartDate
));
setPlanEndDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_END_DATE
)),
planEndDate
));
setPlanStartDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_PLAN_START_DATE
)
)),
planStartDate
));
setPlanEndDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_PLAN_END_DATE
)
)),
planEndDate
));
setPlanUserId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_USER_ID
)),
planUserId
));
setPlanUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_USER_NAME
)),
planUserName
));
setPlanStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_STATUS
)),
planStatus
));
...
...
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB003.java
View file @
9d833bd0
package
com
.
baosight
.
hggp
.
hg
.
sb
.
domain
;
import
com.baosight.hggp.util.DateUtil
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
...
...
@@ -591,7 +593,7 @@ public class HGSB003 extends DaoEPBase {
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setApplyDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_DATE
)),
applyDate
));
setApplyDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_APPLY_DATE
)
)),
applyDate
));
setApplyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_CODE
)),
applyCode
));
setDeviceCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEVICE_CODE
)),
deviceCode
));
setDeviceName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEVICE_NAME
)),
deviceName
));
...
...
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB004.java
View file @
9d833bd0
package
com
.
baosight
.
hggp
.
hg
.
sb
.
domain
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
...
...
@@ -578,7 +579,7 @@ public class HGSB004 extends DaoEPBase {
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setFactoryCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_CODE
)),
factoryCode
));
setFactoryName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_NAME
)),
factoryName
));
setInspecDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INSPEC_DATE
)),
inspecDate
));
setInspecDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_INSPEC_DATE
)
)),
inspecDate
));
setInspecCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INSPEC_CODE
)),
inspecCode
));
setPlanCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_CODE
)),
planCode
));
setPlanStartDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_START_DATE
)),
planStartDate
));
...
...
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB005.java
View file @
9d833bd0
package
com
.
baosight
.
hggp
.
hg
.
sb
.
domain
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
...
...
@@ -577,7 +578,7 @@ public class HGSB005 extends DaoEPBase {
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setFactoryCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_CODE
)),
factoryCode
));
setFactoryName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_NAME
)),
factoryName
));
setUpkeepDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPKEEP_DATE
)),
upkeepDate
));
setUpkeepDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_UPKEEP_DATE
)
)),
upkeepDate
));
setUpkeepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPKEEP_CODE
)),
upkeepCode
));
setPlanCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_CODE
)),
planCode
));
setPlanStartDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_START_DATE
)),
planStartDate
));
...
...
src/main/java/com/baosight/hggp/hg/sb/domain/HGSB099.java
0 → 100644
View file @
9d833bd0
package
com
.
baosight
.
hggp
.
hg
.
sb
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:Hgsb099.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-23 20:01:22 create
*/
public
class
HGSB099
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件标识*/
public
static
final
String
FIELD_DIR_ID
=
"dirId"
;
/* 目录标识*/
public
static
final
String
FIELD_DOC_NAME
=
"docName"
;
/* 文件名*/
public
static
final
String
FIELD_CHG_NAME
=
"chgName"
;
/* 物理文件名*/
public
static
final
String
FIELD_DOC_SIZE
=
"docSize"
;
/* 文件大小*/
public
static
final
String
FIELD_DOC_TAG
=
"docTag"
;
/* 文件标签*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_ARCHIVE_FLAG
=
"archiveFlag"
;
/* 同步标记*/
public
static
final
String
FIELD_REAL_PATH
=
"realPath"
;
/* 物理路径*/
public
static
final
String
FIELD_BIZ_TYPE
=
"bizType"
;
/* 业务类型*/
public
static
final
String
FIELD_MAT_ID
=
"matId"
;
/* 上级ID*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DOC_ID
=
"DOC_ID"
;
/* 文件标识*/
public
static
final
String
COL_DIR_ID
=
"DIR_ID"
;
/* 目录标识*/
public
static
final
String
COL_DOC_NAME
=
"DOC_NAME"
;
/* 文件名*/
public
static
final
String
COL_CHG_NAME
=
"CHG_NAME"
;
/* 物理文件名*/
public
static
final
String
COL_DOC_SIZE
=
"DOC_SIZE"
;
/* 文件大小*/
public
static
final
String
COL_DOC_TAG
=
"DOC_TAG"
;
/* 文件标签*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_ARCHIVE_FLAG
=
"ARCHIVE_FLAG"
;
/* 同步标记*/
public
static
final
String
COL_REAL_PATH
=
"REAL_PATH"
;
/* 物理路径*/
public
static
final
String
COL_BIZ_TYPE
=
"BIZ_TYPE"
;
/* 业务类型*/
public
static
final
String
COL_MAT_ID
=
"MAT_ID"
;
/* 上级ID*/
public
static
final
String
QUERY
=
"HGSB099.query"
;
public
static
final
String
COUNT
=
"HGSB099.count"
;
public
static
final
String
INSERT
=
"HGSB099.insert"
;
public
static
final
String
UPDATE
=
"HGSB099.update"
;
public
static
final
String
DELETE
=
"HGSB099.delete"
;
private
String
accountCode
=
" "
;
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
docId
=
" "
;
/* 文件标识*/
private
String
dirId
=
" "
;
/* 目录标识*/
private
String
docName
=
" "
;
/* 文件名*/
private
String
chgName
=
" "
;
/* 物理文件名*/
private
BigDecimal
docSize
=
new
BigDecimal
(
0
);
/* 文件大小*/
private
String
docTag
=
" "
;
/* 文件标签*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
archiveFlag
=
" "
;
/* 同步标记*/
private
String
realPath
=
" "
;
/* 物理路径*/
private
String
bizType
=
" "
;
/* 业务类型*/
private
Long
matId
=
new
Long
(
0
);
/* 上级ID*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"文件标识"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DIR_ID
);
eiColumn
.
setDescName
(
"目录标识"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_NAME
);
eiColumn
.
setDescName
(
"文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHG_NAME
);
eiColumn
.
setDescName
(
"物理文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_SIZE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
16
);
eiColumn
.
setDescName
(
"文件大小"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_TAG
);
eiColumn
.
setDescName
(
"文件标签"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ARCHIVE_FLAG
);
eiColumn
.
setDescName
(
"同步标记"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REAL_PATH
);
eiColumn
.
setDescName
(
"物理路径"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_BIZ_TYPE
);
eiColumn
.
setDescName
(
"业务类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAT_ID
);
eiColumn
.
setDescName
(
"上级ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGSB099
()
{
initMetaData
();
}
/**
* get the accountCode .
* @return the accountCode
*/
public
String
getAccountCode
()
{
return
this
.
accountCode
;
}
/**
* set the accountCode .
*
* @param accountCode
*/
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the docId - 文件标识.
* @return the docId
*/
public
String
getDocId
()
{
return
this
.
docId
;
}
/**
* set the docId - 文件标识.
*
* @param docId - 文件标识
*/
public
void
setDocId
(
String
docId
)
{
this
.
docId
=
docId
;
}
/**
* get the dirId - 目录标识.
* @return the dirId
*/
public
String
getDirId
()
{
return
this
.
dirId
;
}
/**
* set the dirId - 目录标识.
*
* @param dirId - 目录标识
*/
public
void
setDirId
(
String
dirId
)
{
this
.
dirId
=
dirId
;
}
/**
* get the docName - 文件名.
* @return the docName
*/
public
String
getDocName
()
{
return
this
.
docName
;
}
/**
* set the docName - 文件名.
*
* @param docName - 文件名
*/
public
void
setDocName
(
String
docName
)
{
this
.
docName
=
docName
;
}
/**
* get the chgName - 物理文件名.
* @return the chgName
*/
public
String
getChgName
()
{
return
this
.
chgName
;
}
/**
* set the chgName - 物理文件名.
*
* @param chgName - 物理文件名
*/
public
void
setChgName
(
String
chgName
)
{
this
.
chgName
=
chgName
;
}
/**
* get the docSize - 文件大小.
* @return the docSize
*/
public
BigDecimal
getDocSize
()
{
return
this
.
docSize
;
}
/**
* set the docSize - 文件大小.
*
* @param docSize - 文件大小
*/
public
void
setDocSize
(
BigDecimal
docSize
)
{
this
.
docSize
=
docSize
;
}
/**
* get the docTag - 文件标签.
* @return the docTag
*/
public
String
getDocTag
()
{
return
this
.
docTag
;
}
/**
* set the docTag - 文件标签.
*
* @param docTag - 文件标签
*/
public
void
setDocTag
(
String
docTag
)
{
this
.
docTag
=
docTag
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the archiveFlag - 同步标记.
* @return the archiveFlag
*/
public
String
getArchiveFlag
()
{
return
this
.
archiveFlag
;
}
/**
* set the archiveFlag - 同步标记.
*
* @param archiveFlag - 同步标记
*/
@Override
public
void
setArchiveFlag
(
String
archiveFlag
)
{
this
.
archiveFlag
=
archiveFlag
;
}
/**
* get the realPath - 物理路径.
* @return the realPath
*/
public
String
getRealPath
()
{
return
this
.
realPath
;
}
/**
* set the realPath - 物理路径.
*
* @param realPath - 物理路径
*/
public
void
setRealPath
(
String
realPath
)
{
this
.
realPath
=
realPath
;
}
/**
* get the bizType - 业务类型.
* @return the bizType
*/
public
String
getBizType
()
{
return
this
.
bizType
;
}
/**
* set the bizType - 业务类型.
*
* @param bizType - 业务类型
*/
public
void
setBizType
(
String
bizType
)
{
this
.
bizType
=
bizType
;
}
/**
* get the matId - 上级ID.
* @return the matId
*/
public
Long
getMatId
()
{
return
this
.
matId
;
}
/**
* set the matId - 上级ID.
*
* @param matId - 上级ID
*/
public
void
setMatId
(
Long
matId
)
{
this
.
matId
=
matId
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
setDirId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DIR_ID
)),
dirId
));
setDocName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_NAME
)),
docName
));
setChgName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHG_NAME
)),
chgName
));
setDocSize
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_SIZE
)),
docSize
));
setDocTag
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_TAG
)),
docTag
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setArchiveFlag
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ARCHIVE_FLAG
)),
archiveFlag
));
setRealPath
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REAL_PATH
)),
realPath
));
setBizType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_BIZ_TYPE
)),
bizType
));
setMatId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAT_ID
)),
matId
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
map
.
put
(
FIELD_DIR_ID
,
StringUtils
.
toString
(
dirId
,
eiMetadata
.
getMeta
(
FIELD_DIR_ID
)));
map
.
put
(
FIELD_DOC_NAME
,
StringUtils
.
toString
(
docName
,
eiMetadata
.
getMeta
(
FIELD_DOC_NAME
)));
map
.
put
(
FIELD_CHG_NAME
,
StringUtils
.
toString
(
chgName
,
eiMetadata
.
getMeta
(
FIELD_CHG_NAME
)));
map
.
put
(
FIELD_DOC_SIZE
,
StringUtils
.
toString
(
docSize
,
eiMetadata
.
getMeta
(
FIELD_DOC_SIZE
)));
map
.
put
(
FIELD_DOC_TAG
,
StringUtils
.
toString
(
docTag
,
eiMetadata
.
getMeta
(
FIELD_DOC_TAG
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_ARCHIVE_FLAG
,
StringUtils
.
toString
(
archiveFlag
,
eiMetadata
.
getMeta
(
FIELD_ARCHIVE_FLAG
)));
map
.
put
(
FIELD_REAL_PATH
,
StringUtils
.
toString
(
realPath
,
eiMetadata
.
getMeta
(
FIELD_REAL_PATH
)));
map
.
put
(
FIELD_BIZ_TYPE
,
StringUtils
.
toString
(
bizType
,
eiMetadata
.
getMeta
(
FIELD_BIZ_TYPE
)));
map
.
put
(
FIELD_MAT_ID
,
StringUtils
.
toString
(
matId
,
eiMetadata
.
getMeta
(
FIELD_MAT_ID
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB002.java
View file @
9d833bd0
...
...
@@ -62,9 +62,13 @@ public class ServiceHGSB002 extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
EiBlock
block
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
block
.
setCell
(
ACConstants
.
ROW_CODE_0
,
HGSB002
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
String
planDate
=
block
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
HGSB002
.
FIELD_PLAN_DATE
);
if
(!
planDate
.
isEmpty
())
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB002
.
FIELD_PLAN_DATE
,
StringUtil
.
removeHorizontalLine
(
planDate
));
String
startDate
=
block
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
ACConstants
.
SQL_START_DATE
);
String
endDate
=
block
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
ACConstants
.
SQL_END_DATE
);
if
(!
startDate
.
isEmpty
())
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
ACConstants
.
SQL_START_DATE
,
StringUtil
.
removeHorizontalLine
(
startDate
));
}
if
(!
endDate
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
ACConstants
.
SQL_END_DATE
,
StringUtil
.
removeHorizontalLine
(
endDate
));
}
return
super
.
query
(
inInfo
,
HGSB002
.
QUERY
,
new
HGSB002
());
}
...
...
@@ -80,6 +84,10 @@ public class ServiceHGSB002 extends ServiceEPBase {
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hgsb002
.
fromMap
(
map
);
hgsb002
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
if
(
hgsb002
.
getPlanStatus
()==
1
)
{
String
str
=
"设备计划已审批完成,无法删除!"
;
throw
new
PlatException
(
str
);
}
DaoUtils
.
update
(
HGSB002
.
DELETE_FLAG
,
hgsb002
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB002A.java
View file @
9d833bd0
...
...
@@ -87,17 +87,24 @@ public class ServiceHGSB002A extends ServiceEPBase {
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
Long
parentId
=
Long
.
valueOf
(
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB002A
.
FIELD_PARENT_ID
));
HGSB002
hgsb002
=
HGSBTools
.
Hgsb002
.
get
(
parentId
);
List
<
HGSB002A
>
hgsb002AList
=
HGSBTools
.
Hgsb002
.
getDetails
(
parentId
);
// 写入数据
for
(
Map
resultRow
:
resultRows
)
{
HGSB002A
hgsb002a
=
new
HGSB002A
();
hgsb002a
.
fromMap
(
resultRow
);
Long
parentId
=
Long
.
valueOf
(
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB002A
.
FIELD_PARENT_ID
));
HGSB002
hgsb002
=
HGSBTools
.
Hgsb002
.
get
(
parentId
);
// 任务状态==1抛出异常
if
(
hgsb002
.
getTaskStatus
()==
1
)
{
String
str
=
hgsb002
.
getPlanType
()
==
1
?
"设备计划已生成点检任务,添加失败"
:
"设备计划已生成保养任务,添加失败"
;
// 状态==1抛出异常
if
(
hgsb002
.
getPlanStatus
()==
1
)
{
String
str
=
"设备计划已审批完成,添加失败!"
;
throw
new
PlatException
(
str
);
}
for
(
HGSB002A
hgsb002a1:
hgsb002AList
)
{
if
(
hgsb002a1
.
getDeviceCode
().
equals
(
hgsb002a
.
getDeviceCode
()))
{
String
str
=
String
.
format
(
"设备计划详情[%s]设备已添加,无法重复添加失败!"
,
hgsb002a
.
getDeviceName
());
throw
new
PlatException
(
str
);
}
}
if
(
hgsb002a
.
getId
()
==
null
||
hgsb002a
.
getId
()
==
0
)
{
hgsb002a
.
setParentId
(
parentId
);
this
.
add
(
hgsb002a
);
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB003.java
View file @
9d833bd0
...
...
@@ -6,6 +6,7 @@ import com.baosight.hggp.core.constant.CommonConstant;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sb.domain.HGSB002
;
import
com.baosight.hggp.hg.sb.domain.HGSB003
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.xs.domain.Org
;
...
...
@@ -36,23 +37,25 @@ public class ServiceHGSB003 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSB003
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
in
Info
=
super
.
query
(
inInfo
,
HGSB003
.
QUERY
,
new
HGSB003
());
out
Info
=
super
.
query
(
inInfo
,
HGSB003
.
QUERY
,
new
HGSB003
());
Map
qarma
=
new
HashMap
();
if
(!
HGSBTools
.
getRoleDataAuth
()){
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
}
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
qarma
.
clear
();
List
<
String
>
orgIds
=
HGSBTools
.
getOrgId
();
qarma
.
put
(
Org
.
FIELD_ORG_ID
,
orgIds
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BOX_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
HGSB003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);}}
);
return
inInfo
;
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
qarma
.
clear
();
Map
userCompany
=
HGSBTools
.
getUserCompany
();
qarma
.
put
(
HGSB003
.
FIELD_COMPANY_CODE
,
userCompany
.
get
(
HGSB002
.
FIELD_COMPANY_CODE
));
qarma
.
put
(
HGSB003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BOX_BLOCK_ID
),
qarma
);
return
outInfo
;
}
@Override
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB004.java
View file @
9d833bd0
...
...
@@ -37,14 +37,15 @@ public class ServiceHGSB004 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSB004
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB004
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
in
Info
=
super
.
query
(
inInfo
,
HGSB004
.
QUERY
,
new
HGSB004
());
out
Info
=
super
.
query
(
inInfo
,
HGSB004
.
QUERY
,
new
HGSB004
());
Map
qarma
=
new
HashMap
();
if
(!
HGSBTools
.
getRoleDataAuth
()){
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
}
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
qarma
.
clear
();
/*Map userCompany = HGSBTools.getUserCompany();
if (!userCompany.isEmpty()) {
...
...
@@ -54,8 +55,8 @@ public class ServiceHGSB004 extends ServiceEPBase {
qarma.clear();*/
List
<
String
>
orgIds
=
HGSBTools
.
getOrgId
();
qarma
.
put
(
Org
.
FIELD_ORG_ID
,
orgIds
);
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
return
in
Info
;
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
return
out
Info
;
}
@Override
...
...
@@ -80,6 +81,10 @@ public class ServiceHGSB004 extends ServiceEPBase {
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hgsb004
.
fromMap
(
map
);
hgsb004
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
if
(
hgsb004
.
getCheckStatus
()==
1
)
{
String
str
=
"设备点检已审批完成,无法删除!"
;
throw
new
PlatException
(
str
);
}
DaoUtils
.
update
(
HGSB004
.
DELETE_FLAG
,
hgsb004
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB004B.java
View file @
9d833bd0
...
...
@@ -33,6 +33,7 @@ public class ServiceHGSB004B extends ServiceEPBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB002
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB002
.
FIELD_TASK_STATUS
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB002
.
FIELD_PLAN_STATUS
,
CommonConstant
.
YesNo
.
YES_1
);
inInfo
=
super
.
query
(
inInfo
,
HGSB002
.
QUERY
,
new
HGSB002
());
Map
qarma
=
new
HashMap
();
if
(!
HGSBTools
.
getRoleDataAuth
()){
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB005.java
View file @
9d833bd0
...
...
@@ -34,30 +34,31 @@ public class ServiceHGSB005 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSB005
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB005
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
in
Info
=
super
.
query
(
inInfo
,
HGSB005
.
QUERY
,
new
HGSB005
());
out
Info
=
super
.
query
(
inInfo
,
HGSB005
.
QUERY
,
new
HGSB005
());
Map
qarma
=
new
HashMap
();
if
(!
HGSBTools
.
getRoleDataAuth
()){
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
}
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
qarma
.
clear
();
Map
userCompany
=
HGSBTools
.
getUserCompany
();
if
(!
userCompany
.
isEmpty
())
{
qarma
.
put
(
Org
.
FIELD_PARENT_ORG_ID
,
userCompany
.
get
(
HGSB002
.
FIELD_COMPANY_CODE
));
}
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
),
qarma
);
qarma
.
clear
();
List
<
String
>
orgIds
=
HGSBTools
.
getOrgId
();
qarma
.
put
(
Org
.
FIELD_ORG_ID
,
orgIds
);
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
/*CommonMethod.initBlock(inInfo,
Arrays.asList(DdynamicEnum.COMPANY_BOX_BLOCK_ID,DdynamicEnum.USER_BLOCK_ID,DdynamicEnum.GROUP_CODE_BOX_BLOCK_ID),null
);*/
return
in
Info
;
return
out
Info
;
}
@Override
...
...
@@ -82,6 +83,10 @@ public class ServiceHGSB005 extends ServiceEPBase {
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hgsb005
.
fromMap
(
map
);
hgsb005
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
if
(
hgsb005
.
getCheckStatus
()==
1
)
{
String
str
=
"设备保养已审批完成,无法删除!"
;
throw
new
PlatException
(
str
);
}
DaoUtils
.
update
(
HGSB005
.
DELETE_FLAG
,
hgsb005
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB006.java
View file @
9d833bd0
...
...
@@ -25,19 +25,19 @@ public class ServiceHGSB006 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSB006
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB006
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB004
.
FIELD_INIT_CHECK_STATUS
,
CommonConstant
.
YesNo
.
YES_1
);
in
Info
=
super
.
query
(
inInfo
,
HGSB006
.
QUERY
,
new
HGSB006
());
out
Info
=
super
.
query
(
inInfo
,
HGSB006
.
QUERY
,
new
HGSB006
());
Map
qarma
=
new
HashMap
();
if
(!
HGSBTools
.
getRoleDataAuth
()){
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
}
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BOX_BLOCK_ID
),
null
);
inInfo
.
getBlock
(
EiConstant
.
queryBlock
).
removeCol
(
HGSB004
.
FIELD_CHECK_STATUS
);
return
inInfo
;
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BOX_BLOCK_ID
),
null
);
//outInfo.getBlock(EiConstant.queryBlock).removeCol(HGSB004.FIELD_CHECK_STATUS);
return
outInfo
;
}
@Override
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB007.java
View file @
9d833bd0
...
...
@@ -3,6 +3,7 @@ package com.baosight.hggp.hg.sb.service;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.sb.domain.HGSB002
;
import
com.baosight.hggp.hg.sb.domain.HGSB004
;
import
com.baosight.hggp.hg.sb.domain.HGSB005
;
import
com.baosight.hggp.hg.sb.domain.HGSB007
;
...
...
@@ -27,17 +28,18 @@ public class ServiceHGSB007 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSB007
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB007
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSB005
.
FIELD_CHECK_STATUS
,
CommonConstant
.
YesNo
.
YES_1
);
in
Info
=
super
.
query
(
inInfo
,
HGSB007
.
QUERY
,
new
HGSB007
(),
false
,
new
EiBlockMeta
(),
EiConstant
.
queryBlock
,
CommonConstant
.
Field
.
DETAIL
,
CommonConstant
.
Field
.
DETAIL
);
out
Info
=
super
.
query
(
inInfo
,
HGSB007
.
QUERY
,
new
HGSB007
(),
false
,
new
EiBlockMeta
(),
EiConstant
.
queryBlock
,
CommonConstant
.
Field
.
DETAIL
,
CommonConstant
.
Field
.
DETAIL
);
Map
qarma
=
new
HashMap
();
if
(!
HGSBTools
.
getRoleDataAuth
()){
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
}
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BOX_BLOCK_ID
),
null
);
return
in
Info
;
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
DEVICE_CODE_BOX_BLOCK_ID
),
null
);
return
out
Info
;
}
@Override
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB099.java
0 → 100644
View file @
9d833bd0
package
com
.
baosight
.
hggp
.
hg
.
sb
.
service
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.sb.domain.HGSB099
;
import
com.baosight.hggp.util.FileUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.iplat4j.core.ProjectInfo
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.service.soa.XServiceManager
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author LiuYang
* @version 1.0 2024/5/23
*/
public
class
ServiceHGSB099
extends
ServiceEPBase
{
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGSB099
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
inInfo
=
super
.
query
(
inInfo
,
"HGSB099.queryRun"
,
new
HGSB099
());
}
else
{
inInfo
=
super
.
query
(
inInfo
,
"HGSB099.queryDev"
,
new
HGSB099
());
}
}
catch
(
Throwable
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
Map
resultRow
:
resultRows
)
{
HGSB099
hgsb099
=
new
HGSB099
();
hgsb099
.
fromMap
(
resultRow
);
DaoUtils
.
update
(
HGSB099
.
DELETE
,
hgsb099
);
if
(!
hgsb099
.
getDocId
().
isEmpty
())
{
this
.
delectDoc
(
hgsb099
.
getDocId
());
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
Map
resultRow
:
resultRows
)
{
HGSB099
hgsb099
=
new
HGSB099
();
hgsb099
.
fromMap
(
resultRow
);
DaoUtils
.
insert
(
HGSB099
.
INSERT
,
hgsb099
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
}
return
inInfo
;
}
/**
* 删除文件
* @param docId 文件ID
*/
public
void
delectDoc
(
String
docId
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"docId"
,
docId
);
List
<
HGDS002
>
list
=
this
.
dao
.
query
(
HGDS002
.
QUERY
,
map
);
if
(
list
.
size
()
>
0
)
{
String
realPath
=
list
.
get
(
0
).
getRealPath
();
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
projectEnv
.
equals
(
CommonConstant
.
projectEnv
.
RUN
))
{
EiInfo
queryInfo
=
new
EiInfo
();
queryInfo
.
set
(
HGSB099
.
FIELD_DOC_ID
,
list
.
get
(
0
).
getDocId
());
//获取文档信息
queryInfo
.
set
(
EiConstant
.
serviceId
,
"S_EU_0102"
);
EiInfo
docInfo
=
XServiceManager
.
call
(
queryInfo
);
//数据库
Map
docInfoMap
=
docInfo
.
getMap
(
"docMap"
);
if
(
docInfoMap
.
size
()
>
0
)
{
EiInfo
eiInfo
=
new
EiInfo
();
eiInfo
.
set
(
"data"
,
docInfoMap
.
get
(
"url"
)+
"-"
+
0
);
eiInfo
.
set
(
EiConstant
.
serviceId
,
"S_EU_0105"
);
//调用接口
EiInfo
outInfo
=
XServiceManager
.
call
(
eiInfo
);
if
(
outInfo
.
getStatus
()
==
EiConstant
.
STATUS_FAILURE
){
LogUtils
.
setDetailMsg
(
outInfo
,
new
Throwable
(),
"查询部件类型失败"
);
outInfo
.
setMsg
(
"失败"
);
}
}
}
else
{
FileUtils
.
deleteFile
(
realPath
);
}
this
.
dao
.
delete
(
HGDS002
.
DELETE
,
map
);
}
}
}
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB002.xml
View file @
9d833bd0
...
...
@@ -156,6 +156,12 @@
<isNotEmpty
prepend=
" AND "
property=
"taskStatus"
>
TASK_STATUS = #taskStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"startDate"
>
PLAN_DATE >= #startDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"endDate"
>
PLAN_DATE
<
= #endDate#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
...
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB003.xml
View file @
9d833bd0
...
...
@@ -139,7 +139,7 @@
APPLY_USER_ID = #applyUserId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyUserName"
>
APPLY_USER_NAME
= #applyUserName#
APPLY_USER_NAME
LIKE CONCAT('%', #applyUserName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
...
...
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB005.xml
View file @
9d833bd0
...
...
@@ -137,7 +137,7 @@
UPKEEP_USER_ID = #upkeepUserId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"upkeepUserName"
>
UPKEEP_USER_NAME
= #upkeepUserName#
UPKEEP_USER_NAME
LIKE CONCAT('%', #upkeepUserName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkStatus"
>
CHECK_STATUS LIKE CONCAT('%', #checkStatus#, '%')
...
...
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB099.xml
0 → 100644
View file @
9d833bd0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-05-23 20:01:22
Version : 1.0
schema : hggp
tableName : HGSB099
ACCOUNT_CODE VARCHAR NOT NULL primarykey,
DEP_CODE VARCHAR,
DOC_ID VARCHAR NOT NULL primarykey,
DIR_ID VARCHAR NOT NULL,
DOC_NAME VARCHAR NOT NULL,
CHG_NAME VARCHAR NOT NULL,
DOC_SIZE DECIMAL NOT NULL,
DOC_TAG VARCHAR NOT NULL,
CREATED_BY VARCHAR NOT NULL,
CREATED_NAME VARCHAR NOT NULL,
CREATED_TIME VARCHAR NOT NULL,
UPDATED_BY VARCHAR NOT NULL,
UPDATED_NAME VARCHAR NOT NULL,
UPDATED_TIME VARCHAR NOT NULL,
ARCHIVE_FLAG VARCHAR NOT NULL,
REAL_PATH VARCHAR,
BIZ_TYPE VARCHAR,
MAT_ID BIGINT
-->
<sqlMap
namespace=
"HGSB099"
>
<sql
id=
"column"
>
A.ACCOUNT_CODE as "accountCode",
A.DEP_CODE as "depCode",
<!-- 部门编码 -->
A.DOC_ID as "docId",
<!-- 文件标识 -->
A.DIR_ID as "dirId",
<!-- 目录标识 -->
A.DOC_NAME as "docName",
<!-- 文件名 -->
A.CHG_NAME as "chgName",
<!-- 物理文件名 -->
A.DOC_SIZE as "docSize",
<!-- 文件大小 -->
A.DOC_TAG as "docTag",
<!-- 文件标签 -->
A.CREATED_BY as "createdBy",
<!-- 记录创建者 -->
A.CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
A.CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
A.UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
A.UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
A.UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
A.ARCHIVE_FLAG as "archiveFlag",
<!-- 同步标记 -->
A.REAL_PATH as "realPath",
<!-- 物理路径 -->
A.BIZ_TYPE as "bizType",
<!-- 业务类型 -->
A.MAT_ID as "matId"
<!-- 上级ID -->
</sql>
<sql
id=
"columnDev"
>
<include
refid=
"column"
/>
,
B.DOC_NAME as "docName"
<!-- 文件名称 -->
</sql>
<sql
id=
"columnRun"
>
<include
refid=
"column"
/>
,
B.RES_CNAME as "docName"
<!-- 文件名称 -->
</sql>
<sql
id=
"authCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
A.DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCodes"
>
A.DEP_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"depCodes"
>
#depCodes[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"condition"
>
<include
refid=
"authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
A.DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"bizType"
>
A.BIZ_TYPE = #bizType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"matId"
>
A.MAT_ID = #matId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"bizTypes"
>
A.BIZ_TYPE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"bizTypes"
>
#bizTypes[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
A.DOC_ID = #docId#
</isNotEmpty>
</sql>
<!-- 开发环境 -->
<sql
id=
"conditionDev"
>
AND A.DOC_ID = B.DOC_ID
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.DOC_NAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
<!-- 正式环境 -->
<sql
id=
"conditionRun"
>
AND A.DOC_ID = B.RES_ID
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.RES_CNAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"createdDateFrom"
>
A.CREATED_TIME
>
= CONCAT(REPLACE(#createdDateFrom#, '-', ''), '000000')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateTo"
>
A.CREATED_TIME
<
= CONCAT(REPLACE(#createdDateTo#, '-', ''), '235959')
</isNotEmpty>
</sql>
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$order$
</isNotEmpty>
<isEmpty
property=
"order"
>
A.CREATED_TIME DESC
</isEmpty>
</dynamic>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.sb.domain.HGSB099"
>
SELECT
ACCOUNT_CODE as "accountCode",
DEP_CODE as "depCode",
<!-- 部门编码 -->
DOC_ID as "docId",
<!-- 文件标识 -->
DIR_ID as "dirId",
<!-- 目录标识 -->
DOC_NAME as "docName",
<!-- 文件名 -->
CHG_NAME as "chgName",
<!-- 物理文件名 -->
DOC_SIZE as "docSize",
<!-- 文件大小 -->
DOC_TAG as "docTag",
<!-- 文件标签 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
ARCHIVE_FLAG as "archiveFlag",
<!-- 同步标记 -->
REAL_PATH as "realPath",
<!-- 物理路径 -->
BIZ_TYPE as "bizType",
<!-- 业务类型 -->
MAT_ID as "matId"
<!-- 上级ID -->
FROM ${hggpSchema}.HGSB099 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME DESC ,
ACCOUNT_CODE asc,
DOC_ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"queryDev"
resultClass=
"com.baosight.hggp.hg.sb.domain.HGSB099"
>
SELECT
<include
refid=
"columnDev"
/>
FROM ${hggpSchema}.HGSB099 A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"conditionDev"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"countDev"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGSB099 A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"conditionDev"
/>
<include
refid=
"customCondition"
/>
</select>
<select
id=
"queryRun"
resultClass=
"com.baosight.hggp.hg.sb.domain.HGSB099"
>
SELECT
<include
refid=
"columnRun"
/>
FROM ${hggpSchema}.HGSB099 A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"conditionRun"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"countRun"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGSB099 A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"conditionRun"
/>
<include
refid=
"customCondition"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGSB099 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docId">
DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="dirId">
DIR_ID = #dirId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docName">
DOC_NAME = #docName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="chgName">
CHG_NAME = #chgName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docSize">
DOC_SIZE = #docSize#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docTag">
DOC_TAG = #docTag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="archiveFlag">
ARCHIVE_FLAG = #archiveFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="realPath">
REAL_PATH = #realPath#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="bizType">
BIZ_TYPE = #bizType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="matId">
MAT_ID = #matId#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGSB099 (ACCOUNT_CODE,
DEP_CODE,
<!-- 部门编码 -->
DOC_ID,
<!-- 文件标识 -->
DIR_ID,
<!-- 目录标识 -->
DOC_NAME,
<!-- 文件名 -->
CHG_NAME,
<!-- 物理文件名 -->
DOC_SIZE,
<!-- 文件大小 -->
DOC_TAG,
<!-- 文件标签 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
ARCHIVE_FLAG,
<!-- 同步标记 -->
REAL_PATH,
<!-- 物理路径 -->
BIZ_TYPE,
<!-- 业务类型 -->
MAT_ID
<!-- 上级ID -->
)
VALUES (#accountCode#, #depCode#, #docId#, #dirId#, #docName#, #chgName#, #docSize#, #docTag#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #archiveFlag#, #realPath#, #bizType#, #matId#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGSB099 WHERE
ACCOUNT_CODE = #accountCode# AND
DOC_ID = #docId#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGSB099
SET
DEP_CODE = #depCode#,
<!-- 部门编码 -->
DIR_ID = #dirId#,
<!-- 目录标识 -->
DOC_NAME = #docName#,
<!-- 文件名 -->
CHG_NAME = #chgName#,
<!-- 物理文件名 -->
DOC_SIZE = #docSize#,
<!-- 文件大小 -->
DOC_TAG = #docTag#,
<!-- 文件标签 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
ARCHIVE_FLAG = #archiveFlag#,
<!-- 同步标记 -->
REAL_PATH = #realPath#,
<!-- 物理路径 -->
BIZ_TYPE = #bizType#,
<!-- 业务类型 -->
MAT_ID = #matId#
<!-- 上级ID -->
WHERE
ACCOUNT_CODE = #accountCode# AND
DOC_ID = #docId#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ001.java
View file @
9d833bd0
...
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.dao.DaoUtils;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sj.domain.HGSJ001
;
import
com.baosight.hggp.hg.sj.domain.HGSJ002
;
import
com.baosight.hggp.hg.sj.domain.HGSJ002A
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.User
;
...
...
@@ -33,16 +34,17 @@ public class ServiceHGSJ001 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ001
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
=
super
.
query
(
inInfo
,
HGSJ001
.
QUERY
,
new
HGSJ001
());
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSJ002
());
outInfo
=
super
.
query
(
inInfo
,
HGSJ001
.
QUERY
,
new
HGSJ001
());
Map
qarma
=
new
HashMap
();
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
qarma
.
clear
();
List
orgIds
=
getOrgId
();
qarma
.
put
(
Org
.
FIELD_ORG_ID
,
orgIds
);
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
return
in
Info
;
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
qarma
);
return
out
Info
;
}
@Override
...
...
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ002.java
View file @
9d833bd0
...
...
@@ -35,12 +35,13 @@ public class ServiceHGSJ002 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ002
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
=
super
.
query
(
inInfo
,
HGSJ002
.
QUERY
,
new
HGSJ002
());
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSJ002
());
outInfo
=
super
.
query
(
inInfo
,
HGSJ002
.
QUERY
,
new
HGSJ002
());
Map
qarma
=
new
HashMap
();
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
qarma
.
put
(
User
.
FIELD_USER_ID
,
userId
);
CommonMethod
.
initBlock
(
in
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
return
in
Info
;
CommonMethod
.
initBlock
(
out
Info
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
qarma
);
return
out
Info
;
}
@Override
...
...
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ002A.java
View file @
9d833bd0
...
...
@@ -5,6 +5,7 @@ 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.OrgTypeEnum
;
import
com.baosight.hggp.hg.sj.domain.HGSJ002
;
import
com.baosight.hggp.hg.sj.domain.HGSJ002A
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.ErrorCodeUtils
;
...
...
@@ -34,12 +35,13 @@ public class ServiceHGSJ002A extends ServiceEPBase {
//inInfo.setCell(EiConstant.queryBlock,ACConstants.ROW_CODE_0,HGPZ002A.FIELD_PARENT_ID,inInfo.get("inqu_status-0-parendId"));
//inInfo.setCell(EiConstant.queryBlock,ACConstants.ROW_CODE_0,HGPZ002A.FIELD_FLOW_CODE,inInfo.get("inqu_status-0-flowCode"));
String
factoryCode
=
inInfo
.
getCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ002A
.
FIELD_FACTORY_CODE
).
toString
();
inInfo
=
super
.
query
(
inInfo
,
HGSJ002A
.
QUERY
,
new
HGSJ002A
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
),
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSJ002
());
outInfo
=
super
.
query
(
inInfo
,
HGSJ002A
.
QUERY
,
new
HGSJ002A
());
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
HGSJ002A
.
FIELD_FACTORY_CODE
,
factoryCode
);
}});
return
in
Info
;
return
out
Info
;
}
@Override
...
...
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ003.java
View file @
9d833bd0
...
...
@@ -38,7 +38,8 @@ public class ServiceHGSJ003 extends ServiceEPBase {
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
=
super
.
query
(
inInfo
,
HGSJ003
.
QUERY
,
new
HGSJ003
());
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
new
HGSJ002
());
outInfo
=
super
.
query
(
inInfo
,
HGSJ003
.
QUERY
,
new
HGSJ003
());
List
asList
=
new
ArrayList
<>();
Map
qarma
=
new
HashMap
();
String
userId
=
"admin"
.
equals
(
UserSessionUtils
.
getUserId
())?
""
:
UserSessionUtils
.
getUserId
();
...
...
@@ -56,8 +57,8 @@ public class ServiceHGSJ003 extends ServiceEPBase {
qarma
.
put
(
HGSJ002A
.
FIELD_FACTORY_CODE
,
org
.
getOrgId
());
}
}
CommonMethod
.
initBlock
(
in
Info
,
asList
,
qarma
);
return
in
Info
;
CommonMethod
.
initBlock
(
out
Info
,
asList
,
qarma
);
return
out
Info
;
}
@Override
...
...
src/main/java/com/baosight/hggp/util/contants/ACConstants.java
View file @
9d833bd0
...
...
@@ -12,6 +12,16 @@ public class ACConstants {
public
static
final
char
ROW_CODE_0
=
0
;
/**
* sql 条件开始日期
*/
public
static
final
String
SQL_START_DATE
=
"startDate"
;
/**
* sql 条件结束日期
*/
public
static
final
String
SQL_END_DATE
=
"endDate"
;
/**
* sql 条件统计数目方法
*/
public
static
final
String
SQL_COUNT
=
"count"
;
...
...
src/main/webapp/HG/SB/HGSB001.jsp
View file @
9d833bd0
...
...
@@ -46,28 +46,28 @@
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="
true" width="120" required="tru
e"
maxLength="16" readonly="
false" width="120" required="fals
e"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="groupCode" cname="设备区域"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="
tru
e" width="120" required="true"
maxLength="16" readonly="
fals
e" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="group_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="deviceType" cname="设备类型"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" width="80" readonly="
tru
e" required="true"
maxLength="16" width="80" readonly="
fals
e" required="true"
align="center" filter="contains" sort="true">
<EF:EFCodeOption codeName="hpjx.hpsb.deviceType" />
</EF:EFComboColumn>
<EF:EFColumn ename="deviceCode" cname="设备编码" width="100" enable="true" readonly="true" align="center" required="true"/>
<EF:EFColumn ename="deviceName" cname="设备名称" width="160" enable="true" readonly="
tru
e" align="center" required="true"/>
<EF:EFColumn ename="deviceModel" cname="设备型号" width="120" enable="true" readonly="
tru
e" align="center" required="true"/>
<EF:EFColumn ename="purchaseDate" cname="购置日期" width="120" enable="true" readonly="
tru
e" align="center" editType="date"
<EF:EFColumn ename="deviceName" cname="设备名称" width="160" enable="true" readonly="
fals
e" align="center" required="true"/>
<EF:EFColumn ename="deviceModel" cname="设备型号" width="120" enable="true" readonly="
fals
e" align="center" required="true"/>
<EF:EFColumn ename="purchaseDate" cname="购置日期" width="120" enable="true" readonly="
fals
e" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="maintainDate" cname="保养日期" width="120" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" readonly="false" required="true"/>
...
...
src/main/webapp/HG/SB/HGSB002.js
View file @
9d833bd0
...
...
@@ -260,6 +260,7 @@ let save = function (btnNode) {
let
planStartDate
=
item
.
get
(
"planStartDate"
);
let
planEndDate
=
item
.
get
(
"planEndDate"
);
let
planUserId
=
item
.
get
(
"planUserId"
);
let
planStatus
=
item
.
get
(
"planStatus"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -295,6 +296,11 @@ let save = function (btnNode) {
flag
=
false
;
return
false
;
}
if
(
planStatus
==
1
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
已经审批完成
\"
,不能修改!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
@@ -307,23 +313,25 @@ let save = function (btnNode) {
}
function
updateStatus
(
id
,
deviceStatus
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-planStatus"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB002'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
JSUtils
.
confirm
(
"确定是否
\"
审批完成
\"
操作? "
,
{
ok
:
function
()
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-planStatus"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB002'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
}
)
}
);
});
}
/**
...
...
src/main/webapp/HG/SB/HGSB002.jsp
View file @
9d833bd0
...
...
@@ -33,8 +33,9 @@
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.hgsb.planType"/>
</EF:EFSelect>
<EF:EFDatePicker blockId="inqu_status" row="0" ename="planDate" cname="计划日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="planUserName" cname="计划人" placeholder="模糊查询" colWidth="3"/>
<EF:EFDatePicker blockId="inqu_status" row="0" ename="startDate" cname="计划开始日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFDatePicker blockId="inqu_status" row="0" ename="endDate" cname="计划结束日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
</div>
</EF:EFRegion>
...
...
@@ -47,24 +48,24 @@
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="
tru
e" width="120" required="true"
maxLength="16" readonly="
fals
e" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="groupCode" cname="设备区域"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="
tru
e" width="120" required="true"
maxLength="16" readonly="
fals
e" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="group_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="planDate" cname="计划日期" width="100" enable="true" readonly="
tru
e" align="center" editType="date"
<EF:EFColumn ename="planDate" cname="计划日期" width="100" enable="true" readonly="
fals
e" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="planCode" cname="计划单号" width="120" enable="false" readonly="true" align="center"/>
<EF:EFComboColumn ename="planType" cname="计划类型"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" width="100" readonly="
tru
e" required="true"
maxLength="16" width="100" readonly="
fals
e" required="true"
align="center" filter="contains" sort="true">
<EF:EFCodeOption codeName="hggp.hgsb.planType" />
</EF:EFComboColumn>
...
...
@@ -79,7 +80,7 @@
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="planStatus" cname="审批状态" width="80" align="center"
readonly
="false" required="true" defaultValue="0">
<EF:EFComboColumn ename="planStatus" cname="审批状态" width="80" align="center"
enable
="false" required="true" defaultValue="0">
<EF:EFCodeOption codeName="hggp.hgsb.approveStatus"/>
</EF:EFComboColumn>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
...
...
src/main/webapp/HG/SB/HGSB003.js
View file @
9d833bd0
...
...
@@ -30,7 +30,7 @@ $(function () {
let
template
=
''
;
if
(
item
.
id
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="uploadFile('
+
item
.
id
+
')" >附件
上传
</a>'
;
+
'onclick="uploadFile('
+
item
.
id
+
')" >附件
详情
</a>'
;
}
if
(
item
.
id
)
{
if
(
auditStatus
==
0
)
{
...
...
@@ -88,7 +88,7 @@ $(function () {
}
return
dataItem
[
"deviceCode"
]
}
},
{
},
/*
{
field: "docId",
template: function (item) {
let template = '';
...
...
@@ -99,7 +99,7 @@ $(function () {
}
return template;
}
},
{
},
*/
{
field
:
"applyUserId"
,
title
:
"申请人"
,
template
:
function
(
dataItem
)
{
...
...
@@ -201,6 +201,7 @@ let save = function (btnNode) {
let
deviceCode
=
item
.
get
(
"deviceCode"
);
let
checkItem
=
item
.
get
(
"checkItem"
);
let
applyUserId
=
item
.
get
(
"applyUserId"
);
let
status
=
item
.
get
(
"status"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -226,6 +227,11 @@ let save = function (btnNode) {
flag
=
false
;
return
false
;
}
if
(
status
==
1
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
审批完成
\"
,不能修改!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
@@ -238,25 +244,29 @@ let save = function (btnNode) {
}
function
updateStatus
(
id
,
deviceStatus
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-status"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB003'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
ei
)
{
if
(
ei
.
status
==
"-1"
)
{
NotificationUtil
({
msg
:
ei
.
msg
,
detailMsg
:
ei
.
detailMsg
},
"error"
);
}
else
{
NotificationUtil
(
ei
.
msg
);
query
();
JSUtils
.
confirm
(
"确定是否
\"
审批完成
\"
操作? "
,
{
ok
:
function
()
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-status"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB003'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
ei
)
{
if
(
ei
.
status
==
"-1"
)
{
NotificationUtil
({
msg
:
ei
.
msg
,
detailMsg
:
ei
.
detailMsg
},
"error"
);
}
else
{
NotificationUtil
(
ei
.
msg
);
query
();
}
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
}
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
);
}
);
}
);
}
/**
...
...
@@ -266,11 +276,11 @@ function updateStatus(id,deviceStatus) {
*/
function
uploadFile
(
id
)
{
JSColorbox
.
open
({
href
:
"HGSB0
03A?methodName=initLoad&inqu_status-0-id="
+
id
,
href
:
"HGSB0
99?methodName=initLoad&inqu_status-0-matId="
+
id
+
"&inqu_status-0-bizType=SB003"
,
title
:
"<div style='text-align: center;'>附件上传</div>"
,
width
:
"60%"
,
height
:
"50%"
,
callbackName
:
uploadFileCallback
//
callbackName: uploadFileCallback
});
}
...
...
src/main/webapp/HG/SB/HGSB003.jsp
View file @
9d833bd0
...
...
@@ -16,7 +16,7 @@
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="loginName" value="<%=loginName%>" />
<EF:EFPage title="
设备维修
申请">
<EF:EFPage title="
维保
申请">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains">
...
...
@@ -40,17 +40,17 @@
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="
tru
e" width="120" required="true"
maxLength="16" readonly="
fals
e" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="applyDate" cname="申请日期" width="120" enable="true" readonly="
tru
e" align="center" editType="date"
<EF:EFColumn ename="applyDate" cname="申请日期" width="120" enable="true" readonly="
fals
e" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="applyCode" cname="申请单号" width="100" enable="false" readonly="true" align="center"/>
<EF:EFComboColumn ename="deviceCode" cname="设备名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="
tru
e" width="120" required="true"
maxLength="16" readonly="
fals
e" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="deviceCodeBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
...
...
@@ -63,10 +63,10 @@
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="status" cname="审批状态" width="80" align="center"
readonly
="false" required="true" defaultValue="0">
<EF:EFComboColumn ename="status" cname="审批状态" width="80" align="center"
enable
="false" required="true" defaultValue="0">
<EF:EFCodeOption codeName="hggp.hgsb.approveStatus"/>
</EF:EFComboColumn>
<
EF:EFColumn ename="docId" cname="维修图片" width="100" enable="false" readonly="true" align="center"/
>
<
%--<EF:EFColumn ename="docId" cname="维修图片" width="100" enable="false" readonly="true" align="center"/>--%
>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false" enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="120" readonly="true" required="false"
...
...
src/main/webapp/HG/SB/HGSB003A.js
View file @
9d833bd0
...
...
@@ -6,15 +6,15 @@ $(function () {
success
:
function
(
e
)
{
let
docId
=
e
.
response
.
docId
;
let
docName
=
e
.
response
.
docName
;
let
id
=
$
(
"#inqu_status-0-
i
d"
).
val
()
let
id
=
$
(
"#inqu_status-0-
matI
d"
).
val
()
if
(
isBlank
(
docId
))
{
return
;
}
$
(
"#fileDocId"
).
val
(
docId
);
NotificationUtil
(
"附件上传成功"
);
//
saveTemp(e);
saveTemp
(
e
);
try
{
parent
.
JSColorbox
.
setValueCallback
(
{
"id"
:
id
,
"docId"
:
docId
,
"docName"
:
docName
}
);
parent
.
JSColorbox
.
setValueCallback
(
e
.
response
);
parent
.
JSColorbox
.
close
();
}
catch
(
e
){
}
...
...
@@ -36,7 +36,7 @@ $(function () {
result
.
set
(
"result-0-realPath"
,
docUrl
);
result
.
set
(
"result-0-bizType"
,
$
(
"#inqu_status-0-bizType"
).
val
());
result
.
set
(
"result-0-matId"
,
$
(
"#inqu_status-0-matId"
).
val
());
EiCommunicator
.
send
(
"H
P
DS002"
,
"insert"
,
result
,
{
EiCommunicator
.
send
(
"H
G
DS002"
,
"insert"
,
result
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
if
(
ei
.
getStatus
()
==
0
)
{
...
...
src/main/webapp/HG/SB/HGSB003A.jsp
View file @
9d833bd0
...
...
@@ -13,9 +13,10 @@
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<EF:EFPage title="附件上传">
<EF:EFInput blockId="inqu_status" row="0" ename="id" cname="ID" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="matId" cname="ID" type="hidden"/>
<EF:EFInput cname="业务类型" ename="bizType" blockId="inqu_status" row="0" type="hidden"/>
<EF:EFRegion id="result">
<EF:EFUpload blockId="result" ename="uploadFile" docTag="hg_file003" path="
A
"/>
<EF:EFUpload blockId="result" ename="uploadFile" docTag="hg_file003" path="
HGSB
"/>
</EF:EFRegion>
<EF:EFInput ename="fileDocId" cname="" hidden="true"/>
</EF:EFPage>
src/main/webapp/HG/SB/HGSB004.js
View file @
9d833bd0
...
...
@@ -37,8 +37,8 @@ $(function () {
if
(
auditStatus
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >审批完成</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',-1)" >审批未通过</a>'
;
/*
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' +
'onclick="updateStatus(' + item.id + ',-1)" >审批未通过</a>';
*/
}
if
(
auditStatus
==
-
1
){
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
...
...
@@ -207,6 +207,7 @@ let save = function (btnNode) {
let
planStartDate
=
item
.
get
(
"planStartDate"
);
let
planEndDate
=
item
.
get
(
"planEndDate"
);
let
inspecUserId
=
item
.
get
(
"inspecUserId"
);
let
checkStatus
=
item
.
get
(
"checkStatus"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -232,6 +233,11 @@ let save = function (btnNode) {
flag
=
false
;
return
false
;
}
if
(
checkStatus
==
1
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
审核完成
\"
,不能修改!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
@@ -244,22 +250,25 @@ let save = function (btnNode) {
}
function
updateStatus
(
id
,
deviceStatus
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-checkStatus"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB004'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
JSUtils
.
confirm
(
"确定是否
\"
审批完成
\"
操作? "
,
{
ok
:
function
()
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-checkStatus"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB004'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
}
);
}
);
})
}
...
...
src/main/webapp/HG/SB/HGSB004.jsp
View file @
9d833bd0
...
...
@@ -59,7 +59,7 @@
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="checkStatus" cname="审核状态" width="80" align="center" readonly="false" required="true" defaultValue="1">
<EF:EFComboColumn ename="checkStatus" cname="审核状态" width="80" align="center"
enable="false"
readonly="false" required="true" defaultValue="1">
<EF:EFCodeOption codeName="hggp.hgsb.approveStatus"/>
</EF:EFComboColumn>
<%--<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
...
...
src/main/webapp/HG/SB/HGSB004B.jsp
View file @
9d833bd0
...
...
@@ -58,7 +58,7 @@
</EF:EFComboColumn>
<EF:EFColumn ename="planDate" cname="计划日期" width="120" enable="true" readonly="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="planCode" cname="计划单号" width="1
0
0" enable="false" readonly="true" align="center" required="true"/>
<EF:EFColumn ename="planCode" cname="计划单号" width="1
4
0" enable="false" readonly="true" align="center" required="true"/>
<EF:EFComboColumn ename="planType" cname="计划类型"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
...
...
src/main/webapp/HG/SB/HGSB005.js
View file @
9d833bd0
...
...
@@ -37,8 +37,8 @@ $(function () {
if
(
auditStatus
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >审批完成</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',-1)" >审批未通过</a>'
;
/*
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' +
'onclick="updateStatus(' + item.id + ',-1)" >审批未通过</a>';
*/
}
if
(
auditStatus
==
-
1
){
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
...
...
@@ -207,6 +207,7 @@ let save = function (btnNode) {
let
planStartDate
=
item
.
get
(
"planStartDate"
);
let
planEndDate
=
item
.
get
(
"planEndDate"
);
let
upkeepUserId
=
item
.
get
(
"upkeepUserId"
);
let
checkStatus
=
item
.
get
(
"checkStatus"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -232,6 +233,11 @@ let save = function (btnNode) {
flag
=
false
;
return
false
;
}
if
(
checkStatus
==
1
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
审核完成
\"
,不能修改!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
@@ -244,22 +250,25 @@ let save = function (btnNode) {
}
function
updateStatus
(
id
,
deviceStatus
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-checkStatus"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB005'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
JSUtils
.
confirm
(
"确定是否
\"
审批完成
\"
操作? "
,
{
ok
:
function
()
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-checkStatus"
,
deviceStatus
);
EiCommunicator
.
send
(
'HGSB005'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
}
);
}
);
})
}
...
...
src/main/webapp/HG/SB/HGSB005.jsp
View file @
9d833bd0
...
...
@@ -43,7 +43,7 @@
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="upkeepDate" cname="保养日期" width="120" enable="true" align="center" editType="date"
<EF:EFColumn ename="upkeepDate" cname="保养日期" width="120" enable="true"
readonly="false"
align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="upkeepCode" cname="保养单号" width="100" enable="false" readonly="true" align="center" required="true"/>
<EF:EFColumn ename="planCode" cname="计划单号" width="100" enable="false" readonly="true" align="center" required="true"/>
...
...
@@ -58,7 +58,7 @@
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="checkStatus" cname="审核状态" width="80" align="center"
readonly
="false" required="true" defaultValue="1">
<EF:EFComboColumn ename="checkStatus" cname="审核状态" width="80" align="center"
enable
="false" required="true" defaultValue="1">
<EF:EFCodeOption codeName="hggp.hgsb.approveStatus"/>
</EF:EFComboColumn>
<%--<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
...
...
src/main/webapp/HG/SB/HGSB099.js
0 → 100644
View file @
9d833bd0
$
(
function
()
{
IPLATUI
.
EFGrid
=
{
"result"
:
{
columns
:
[{
field
:
"operator"
,
template
:
function
(
item
)
{
let
template
=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'href="'
+
downloadHref
(
item
.
docId
)
+
'" target="_blank">附件下载</a>'
;
return
template
;
}
}],
loadComplete
:
function
(
grid
){
// 附件上传
$
(
"#UPLOAD_FILE"
).
on
(
"click"
,
uploadFile
);
// 删除
$
(
"#BTN_DELETE"
).
on
(
"click"
,
deleteFunc
);
},
dataBound
:
function
()
{
}
}
};
$
(
"#ef_form_head"
).
hide
();
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
});
/**
* 页面加载时执行
*/
$
(
window
).
load
(
function
()
{
// 初始化查询
query
();
});
/**
* 查询
*/
var
query
=
function
(
e
)
{
resultGrid
.
dataSource
.
page
(
1
);
}
/**
* 文件上传
*
* @param id
*/
function
uploadFile
(
id
)
{
JSColorbox
.
open
({
href
:
"HGSB003A?methodName=initLoad&inqu_status-0-bizType="
+
$
(
"#inqu_status-0-bizType"
).
val
()
+
"&inqu_status-0-matId="
+
$
(
"#inqu_status-0-matId"
).
val
(),
title
:
"<div style='text-align: center;'>附件上传</div>"
,
width
:
"60%"
,
height
:
"50%"
,
callbackName
:
uploadFileCallback
});
}
/**
* 附件上传回调
*
* @param docId
*/
function
uploadFileCallback
(
item
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-matId"
,
$
(
"#inqu_status-0-matId"
).
val
());
inEiInfo
.
set
(
"result-0-docId"
,
item
.
docId
);
inEiInfo
.
set
(
"result-0-docName"
,
item
.
docName
);
inEiInfo
.
set
(
"result-0-docSize"
,
item
.
docSize
);
inEiInfo
.
set
(
"result-0-docTag"
,
item
.
docTag
);
inEiInfo
.
set
(
"result-0-realPath"
,
item
.
docUrl
);
inEiInfo
.
set
(
"result-0-bizType"
,
$
(
"#inqu_status-0-bizType"
).
val
());
EiCommunicator
.
send
(
'HGSB099'
,
'insert'
,
inEiInfo
,
{
onSuccess
(
response
)
{
resultGrid
.
dataSource
.
page
(
1
);
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
});
}
/**
* 删除
*/
function
deleteFunc
()
{
var
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
==
0
)
{
message
(
"请先勾选数据!"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
删除
\"
操作?"
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGSB099"
,
"delete"
,
true
);
}
})
}
\ No newline at end of file
src/main/webapp/HG/SB/HGSB099.jsp
0 → 100644
View file @
9d833bd0
<%--
Created by IntelliJ IDEA.
User: 1
Date: 2024/5/23
Time: 19:53
To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<EF:EFPage title="附件清单">
<EF:EFRegion id="inqu" title="查询区域" type="query">
<EF:EFInput cname="主表ID" ename="matId" blockId="inqu_status" row="0" type="hidden"/>
<EF:EFInput cname="业务类型" ename="bizType" blockId="inqu_status" row="0" type="hidden"/>
<div class="row">
<EF:EFInput cname="文件名称" ename="docName" blockId="inqu_status" row="0" colWidth="3" />
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="override" checkMode="row" isFloat="true">
<EF:EFColumn ename="id" cname="ID" hidden="true"/>
<EF:EFColumn ename="docId" cname="文件ID" enable="false" width="150"/>
<EF:EFColumn ename="docName" cname="文件名称" enable="false" width="150"/>
<EF:EFColumn ename="createdTime" cname="创建时间" enable="false" width="140" align="center"
parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/>
<EF:EFColumn ename="operator" cname="操作" enable="false" width="200" align="center"/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
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